summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgdt <gdt@pkgsrc.org>2008-01-12 19:13:07 +0000
committergdt <gdt@pkgsrc.org>2008-01-12 19:13:07 +0000
commit88391cfdcc92cb293960c94c20928b73f5eaf851 (patch)
tree49cd9c2a2595a89950ca0b1c6ecf5a6850e3c7ba
parent9a26e7434e23974db9c761f76f13dc6828a9a182 (diff)
downloadpkgsrc-88391cfdcc92cb293960c94c20928b73f5eaf851.tar.gz
Most of destdir support, based on a patch from Klaus Heinz.
# 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.
-rw-r--r--devel/guile-slib/Makefile17
1 files changed, 12 insertions, 5 deletions
diff --git a/devel/guile-slib/Makefile b/devel/guile-slib/Makefile
index 9e17d3c6b64..15875e6d3e6 100644
--- a/devel/guile-slib/Makefile
+++ b/devel/guile-slib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2007/12/01 15:56:25 gdt Exp $
+# $NetBSD: Makefile,v 1.36 2008/01/12 19:13:07 gdt Exp $
DISTNAME= guile-slib-3.1.5
CATEGORIES= devel
@@ -9,6 +9,11 @@ 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
+
# tested with 3.1.5
DEPENDS+= slib>=3.1.2nb1:../../devel/slib
@@ -17,12 +22,14 @@ NO_CHECKSUM= yes
NO_BUILD= yes
WRKSRC= ${WRKDIR}
-INSTALLATION_DIRS= share/guile
+INSTALLATION_DIRS= share/guile share/guile/site
do-install:
- ${LN} -sf ${PREFIX}/share/slib ${PREFIX}/share/guile/site/slib
- ${RM} -f ${PREFIX}/share/guile/slibcat
- cd ${PREFIX}/share/guile/site/slib; \
+ ${LN} -sf ${PREFIX}/share/slib \
+ ${DESTDIR}${PREFIX}/share/guile/site/slib
+ ${RM} -f ${DESTDIR}${PREFIX}/share/guile/slibcat
+ cd ${DESTDIR}${PREFIX}/share/guile/site/slib && \
+ GUILE_LOAD_PATH=${PREFIX}/share \
guile -q -c "(begin (use-modules (ice-9 slib)) (require 'new-catalog))"
# Our 1.8.2 package applies a necessary patch.