diff options
author | uebayasi <uebayasi> | 2011-06-15 12:52:59 +0000 |
---|---|---|
committer | uebayasi <uebayasi> | 2011-06-15 12:52:59 +0000 |
commit | c085349603c1fd77b62b9a9ce32c25437e644862 (patch) | |
tree | bf33f690ae722c922d460b56d186de3cecf48061 /devel | |
parent | 4eac827b4de624e31bcfd37d3a5f05e021447803 (diff) | |
download | pkgsrc-c085349603c1fd77b62b9a9ce32c25437e644862.tar.gz |
Support user-destdir.
Generate catalog file in ${DESTDIR}, then package it. This should
work, because the catalog file (${PREFIX}/share/guile/1.8/slibcat)
is only provided for slib to know what interpreter is using slib;
i.e., the file is written once at installation.
(Let's see if this theory is correct. If not, we'll revisit this.)
Reviewed By: gdt (maintainer)
Diffstat (limited to 'devel')
-rw-r--r-- | devel/guile-slib/Makefile | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/devel/guile-slib/Makefile b/devel/guile-slib/Makefile index 6f4d0b0bc35..3f83835d635 100644 --- a/devel/guile-slib/Makefile +++ b/devel/guile-slib/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.42 2010/03/24 19:43:23 asau Exp $ +# $NetBSD: Makefile,v 1.43 2011/06/15 12:52:59 uebayasi Exp $ DISTNAME= guile-slib-3.2.2 PKGREVISION= 2 @@ -10,17 +10,14 @@ MAINTAINER= gdt@NetBSD.org HOMEPAGE= http://swissnet.ai.mit.edu/~jaffer/SLIB.html COMMENT= SLIB glue files for guile 1.8 -# This does not quite work. The problem is that new-catalog writes -# the catalog in /usr/pkg/share/guile/site, rarther than the proper -# place in the destdir. -#PKG_DESTDIR_SUPPORT= user-destdir +PKG_DESTDIR_SUPPORT= user-destdir DEPENDS+= slib>=3.2.2:../../devel/slib NO_BUILD= yes WRKSRC= ${WRKDIR} -INSTALLATION_DIRS= share/guile share/guile/site +INSTALLATION_DIRS= share/guile share/guile/1.8 share/guile/site do-install: ${LN} -sf ${PREFIX}/share/slib \ @@ -28,6 +25,7 @@ do-install: ${RM} -f ${DESTDIR}${PREFIX}/share/guile/slibcat cd ${DESTDIR}${PREFIX}/share/guile/site/slib && \ GUILE_LOAD_PATH=${PREFIX}/share \ + GUILE_IMPLEMENTATION_PATH=${DESTDIR}${PREFIX}/share/guile/1.8 \ guile -q -c "(begin (use-modules (ice-9 slib)) (require 'new-catalog))" # Our 1.8.2 package applies a necessary patch. |