ports/60282: New port: lang/slib-gauche (including patch to lang/gauche)

Kimura Fuyuki fuyuki at nigredo.org
Tue Dec 16 00:30:16 UTC 2003


>Number:         60282
>Category:       ports
>Synopsis:       New port: lang/slib-gauche (including patch to lang/gauche)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 15 16:30:10 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Kimura Fuyuki
>Release:        FreeBSD 5.2-RC i386
>Organization:
>Environment:

  FreeBSD ns.nigredo.org 5.2-RC i386

>Description:

This is a SLIB installation for Gauche. Note that lang/gauche needs to
be patched to tell Gauche the correct path to SLIB and make sure
"slibcat" is not created. By this splitting lang/gauche won't get
bothered with the "slibcat" phantom.

>How-To-Repeat:

>Fix:

Index: Makefile
===================================================================
RCS file: /cvs/FreeBSD/ports/lang/gauche/Makefile,v
retrieving revision 1.19
diff -u -r1.19 Makefile
--- Makefile	6 Oct 2003 20:48:23 -0000	1.19
+++ Makefile	26 Oct 2003 23:53:10 -0000
@@ -28,14 +28,15 @@
 		gauche-config.1
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--enable-threads=${GAUCHE_THREADS} \
-		--enable-multibyte=${GAUCHE_ENCODING}
+		--enable-multibyte=${GAUCHE_ENCODING} \
+		--with-slib=${PREFIX}/share/slib
 PLIST_SUB=	VERSION="${PORTVERSION}" \
 		TARGET="${CONFIGURE_TARGET}" \
 		INFOSECTION="${INFOSECTION}"
 
 post-install:
 	${STRIP_CMD} ${PREFIX}/bin/gosh
-	-${PREFIX}/bin/gosh -u slib -e "(require 'logical)" -e "(exit 0)"
+	${RM} -f ${PREFIX}/share/gauche/${PORTVERSION}/lib/slibcat
 .if !defined(NOPORTDOCS)
 	${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${MANPREFIX}/man/man1/
 	${INSTALL_DATA} ${WRKSRC}/doc/*.info ${PREFIX}/info/

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	slib-gauche
#	slib-gauche/pkg-descr
#	slib-gauche/pkg-plist
#	slib-gauche/Makefile
#
echo c - slib-gauche
mkdir -p slib-gauche > /dev/null 2>&1
echo x - slib-gauche/pkg-descr
sed 's/^X//' >slib-gauche/pkg-descr << 'END-of-slib-gauche/pkg-descr'
XTo use the features offered by the SLIB library, add the following
Xconstruct to your programs:
X
X	(use slib)
END-of-slib-gauche/pkg-descr
echo x - slib-gauche/pkg-plist
sed 's/^X//' >slib-gauche/pkg-plist << 'END-of-slib-gauche/pkg-plist'
X at exec %%LOCALBASE%%/bin/gosh -uslib -E"require 'new-catalog" -Eexit
X at unexec rm -f %%LOCALBASE%%/share/gauche/%%VERSION%%/lib/slibcat
END-of-slib-gauche/pkg-plist
echo x - slib-gauche/Makefile
sed 's/^X//' >slib-gauche/Makefile << 'END-of-slib-gauche/Makefile'
X# New ports collection makefile for:	SLIB for Gauche
X# Date created:			27 October 2003
X# Whom:				Kimura Fuyuki <fuyuki at nigredo.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	slib
XPORTVERSION=	3a1 # Keep this in sync with devel/slib
XCATEGORIES=	lang scheme
XMASTER_SITES=	# empty
XPKGNAMESUFFIX=	-gauche
XDISTFILES=	# empty
X
XMAINTAINER=	fuyuki at nigredo.org
XCOMMENT=	SLIB installation for Gauche
X
XBUILD_DEPENDS=	${LOCALBASE}/share/slib/require.scm:${PORTSDIR}/lang/slib \
X		gosh:${PORTSDIR}/lang/gauche
XRUN_DEPENDS=	${BUILD_DEPENDS}
X
XNO_BUILD=	yes
XPLIST_SUB=	VERSION="`gauche-config -V`"
X
Xdo-install:
X	${LOCALBASE}/bin/gosh -uslib -E"require 'new-catalog" -Eexit
X
X.include <bsd.port.mk>
END-of-slib-gauche/Makefile
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list