From fuyuki@nigredo.org  Mon Dec 15 16:27:05 2003
Return-Path: <fuyuki@nigredo.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C87D216A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 15 Dec 2003 16:27:05 -0800 (PST)
Received: from mgate11.so-net.ne.jp (mgate11.so-net.ne.jp [210.139.254.158])
	by mx1.FreeBSD.org (Postfix) with ESMTP id CD0D643D36
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 15 Dec 2003 16:27:03 -0800 (PST)
	(envelope-from fuyuki@nigredo.org)
Received: from mail.dg8.so-net.ne.jp (mspool12.so-net.ne.jp [210.139.248.12])
	by mgate11.so-net.ne.jp  with ESMTP id hBG0R1f25064
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Dec 2003 09:27:02 +0900 (JST)
Received: from ns.nigredo.org (pdd7448.spprac00.ap.so-net.ne.jp [218.221.116.72])
	by mail.dg8.so-net.ne.jp  with ESMTP id hBG0R1E21135
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Dec 2003 09:27:01 +0900 (JST)
Received: from ns.nigredo.org (localhost [IPv6:::1])
	by ns.nigredo.org (Postfix) with ESMTP id C87C420B9
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Dec 2003 09:27:00 +0900 (JST)
Message-Id: <86vfohy5d7.wl%fuyuki@nigredo.org>
Date: Tue, 16 Dec 2003 09:27:00 +0900
From: Kimura Fuyuki <fuyuki@nigredo.org>
To: FreeBSD-gnats-submit@freebsd.org
Subject: New port: lang/slib-gauche (including patch to lang/gauche)

>Number:         60282
>Category:       ports
>Synopsis:       New port: lang/slib-gauche (including patch to lang/gauche)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pav
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 15 16:30:10 PST 2003
>Closed-Date:    Wed Dec 17 05:15:19 PST 2003
>Last-Modified:  Wed Dec 17 05:15:19 PST 2003
>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@exec %%LOCALBASE%%/bin/gosh -uslib -E"require 'new-catalog" -Eexit
X@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@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@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:
State-Changed-From-To: open->feedback 
State-Changed-By: pav 
State-Changed-When: Tue Dec 16 11:20:19 PST 2003 
State-Changed-Why:  
Asked maintainer of lang/gauche for approval. 


Responsible-Changed-From-To: freebsd-ports-bugs->pav 
Responsible-Changed-By: pav 
Responsible-Changed-When: Tue Dec 16 11:20:19 PST 2003 
Responsible-Changed-Why:  
I'll watch this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=60282 

From: Pav Lucistnik <pav@FreeBSD.org>
To: erik@smluc.org
Cc: freebsd-gnats-submit@FreeBSD.org, fuyuki@nigredo.org
Subject: Re: ports/60282: New port: lang/slib-gauche (including patch to
	lang/gauche)
Date: Tue, 16 Dec 2003 20:19:55 +0100

 Dear maintainer of port lang/gauche, please take a look at this PR:
 
 http://www.freebsd.org/cgi/query-pr.cgi?pr=60282
 
 Do you approve this modification of lang/gauche port?
 
 -- 
 Pav Lucistnik <pav@FreeBSD.org>
               <pav@oook.cz>
State-Changed-From-To: feedback->closed 
State-Changed-By: pav 
State-Changed-When: Wed Dec 17 05:15:11 PST 2003 
State-Changed-Why:  
New port added, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=60282 
>Unformatted:
