Sat Jan 12 19:13:07 2008 UTC ()
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.


(gdt)
diff -r1.35 -r1.36 pkgsrc/devel/guile-slib/Makefile

cvs diff -r1.35 -r1.36 pkgsrc/devel/guile-slib/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/guile-slib/Makefile 2007/12/01 15:56:25 1.35
+++ pkgsrc/devel/guile-slib/Makefile 2008/01/12 19:13:07 1.36
@@ -1,31 +1,38 @@ @@ -1,31 +1,38 @@
1# $NetBSD: Makefile,v 1.35 2007/12/01 15:56:25 gdt Exp $ 1# $NetBSD: Makefile,v 1.36 2008/01/12 19:13:07 gdt Exp $
2 2
3DISTNAME= guile-slib-3.1.5 3DISTNAME= guile-slib-3.1.5
4CATEGORIES= devel 4CATEGORIES= devel
5MASTER_SITES= # empty 5MASTER_SITES= # empty
6DISTFILES= # empty 6DISTFILES= # empty
7 7
8MAINTAINER= gdt@NetBSD.org 8MAINTAINER= gdt@NetBSD.org
9HOMEPAGE= http://swissnet.ai.mit.edu/~jaffer/SLIB.html 9HOMEPAGE= http://swissnet.ai.mit.edu/~jaffer/SLIB.html
10COMMENT= SLIB glue files for guile 1.8 10COMMENT= SLIB glue files for guile 1.8
11 11
 12# This does not quite work. The problem is that new-catalog writes
 13# the catalog in /usr/pkg/share/guile/site, rarther than the proper
 14# place in the destdir.
 15#PKG_DESTDIR_SUPPORT= user-destdir
 16
12# tested with 3.1.5 17# tested with 3.1.5
13DEPENDS+= slib>=3.1.2nb1:../../devel/slib 18DEPENDS+= slib>=3.1.2nb1:../../devel/slib
14 19
15EXTRACT_ONLY= # empty 20EXTRACT_ONLY= # empty
16NO_CHECKSUM= yes 21NO_CHECKSUM= yes
17NO_BUILD= yes 22NO_BUILD= yes
18WRKSRC= ${WRKDIR} 23WRKSRC= ${WRKDIR}
19 24
20INSTALLATION_DIRS= share/guile 25INSTALLATION_DIRS= share/guile share/guile/site
21 26
22do-install: 27do-install:
23 ${LN} -sf ${PREFIX}/share/slib ${PREFIX}/share/guile/site/slib 28 ${LN} -sf ${PREFIX}/share/slib \
24 ${RM} -f ${PREFIX}/share/guile/slibcat 29 ${DESTDIR}${PREFIX}/share/guile/site/slib
25 cd ${PREFIX}/share/guile/site/slib; \ 30 ${RM} -f ${DESTDIR}${PREFIX}/share/guile/slibcat
 31 cd ${DESTDIR}${PREFIX}/share/guile/site/slib && \
 32 GUILE_LOAD_PATH=${PREFIX}/share \
26 guile -q -c "(begin (use-modules (ice-9 slib)) (require 'new-catalog))" 33 guile -q -c "(begin (use-modules (ice-9 slib)) (require 'new-catalog))"
27 34
28# Our 1.8.2 package applies a necessary patch. 35# Our 1.8.2 package applies a necessary patch.
29BUILDLINK_API_DEPENDS.guile+= guile>=1.8.2 36BUILDLINK_API_DEPENDS.guile+= guile>=1.8.2
30.include "../../lang/guile/buildlink3.mk" 37.include "../../lang/guile/buildlink3.mk"
31.include "../../mk/bsd.pkg.mk" 38.include "../../mk/bsd.pkg.mk"