diff options
author | obache <obache@pkgsrc.org> | 2010-02-20 13:51:12 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2010-02-20 13:51:12 +0000 |
commit | e2f0cf964aa5e9bc915b03a1c6df6d29e763f0ee (patch) | |
tree | 02b3430bade0cd5697c24266bb654f7f273fa497 /lang/gauche | |
parent | 978c1a2c02dd09a6022e8541803894105f559505 (diff) | |
download | pkgsrc-e2f0cf964aa5e9bc915b03a1c6df6d29e763f0ee.tar.gz |
Add user-destdir support, inspired by Gauche.spec in source tarball.
Diffstat (limited to 'lang/gauche')
-rw-r--r-- | lang/gauche/Makefile | 11 | ||||
-rw-r--r-- | lang/gauche/PLIST | 5 |
2 files changed, 9 insertions, 7 deletions
diff --git a/lang/gauche/Makefile b/lang/gauche/Makefile index 711c2fd6a7b..fdb0c8bac36 100644 --- a/lang/gauche/Makefile +++ b/lang/gauche/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.52 2009/11/27 09:26:06 enami Exp $ +# $NetBSD: Makefile,v 1.53 2010/02/20 13:51:12 obache Exp $ # DISTNAME= Gauche-0.9 @@ -13,8 +13,7 @@ COMMENT= R5RS Scheme implementation aimed to be a handy tool for daily works DEPENDS+= slib-[0-9]*:../../devel/slib -# XXX Wants to execute bin/gosh during installation -#PKG_DESTDIR_SUPPORT= user-destdir +PKG_DESTDIR_SUPPORT= user-destdir NOT_FOR_BULK_PLATFORM= HPUX-*-* .include "options.mk" @@ -26,7 +25,6 @@ GNU_CONFIGURE= yes CONFIGURE_ARGS+= --with-slib=${SLIB_PREFIX}/share/slib CONFIGURE_ARGS+= --enable-threads=pthreads CONFIGURE_ARGS+= --with-iconv=${BUILDLINK_PREFIX.iconv} -MAKEVARS+= DESTDIR CHECK_BUILTIN.iconv:= no .include "../../converters/libiconv/builtin.mk" @@ -41,7 +39,10 @@ ALL_ENV+= \ USE_LIBTOOL= yes USE_TOOLS+= gzip makeinfo TEST_TARGET= check -INFO_FILES= # PLIST +INFO_FILES= yes + +# refer %install in ${WRKSRC}/Gauche.spec +INSTALL_TARGET= install-pkg install-doc .include "../../mk/dlopen.buildlink3.mk" .include "../../mk/pthread.buildlink3.mk" diff --git a/lang/gauche/PLIST b/lang/gauche/PLIST index 46f343d53f7..d2891fd3fe2 100644 --- a/lang/gauche/PLIST +++ b/lang/gauche/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.22 2009/11/27 09:26:06 enami Exp $ +@comment $NetBSD: PLIST,v 1.23 2010/02/20 13:51:12 obache Exp $ bin/gauche-cesconv bin/gauche-config bin/gauche-install @@ -220,7 +220,7 @@ share/gauche/${PKGVERSION}/lib/rfc/sha1.scm share/gauche/${PKGVERSION}/lib/rfc/uri.scm share/gauche/${PKGVERSION}/lib/rfc/zlib.scm share/gauche/${PKGVERSION}/lib/slib.scm -share/gauche/${PKGVERSION}/lib/slibcat +@unexec ${RM} -f %D/share/gauche/${PKGVERSION}/lib/slibcat || ${TRUE} share/gauche/${PKGVERSION}/lib/srfi-0.scm share/gauche/${PKGVERSION}/lib/srfi-1.scm share/gauche/${PKGVERSION}/lib/srfi-11.scm @@ -288,3 +288,4 @@ share/gauche/${PKGVERSION}/template.module.scm share/gauche/${PKGVERSION}/template.test.scm @pkgdir lib/gauche/site/${PKGVERSION}/${MACHINE_GNU_PLATFORM} @pkgdir share/gauche/site/lib +@exec %D/bin/gosh -ftest -uslib -E"require 'new-catalog" -Eexit || ${TRUE} |