pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/slib Install a symlink from ${PREFIX}/share/slib...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/26f7bd804136
branches:  trunk
changeset: 352483:26f7bd804136
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Sep 15 14:02:08 2016 +0000

description:
Install a symlink from ${PREFIX}/share/slib/slib to ${PREFIX}/share/slib.

Needed by guile-slib with guile20-2.0.12.

Bump PKGREVISION.

diffstat:

 devel/slib/Makefile |  10 ++++++----
 devel/slib/PLIST    |   3 ++-
 2 files changed, 8 insertions(+), 5 deletions(-)

diffs (56 lines):

diff -r 480b72b1b10d -r 26f7bd804136 devel/slib/Makefile
--- a/devel/slib/Makefile       Thu Sep 15 13:57:00 2016 +0000
+++ b/devel/slib/Makefile       Thu Sep 15 14:02:08 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.36 2016/09/15 00:08:12 gdt Exp $
+# $NetBSD: Makefile,v 1.37 2016/09/15 14:02:08 wiz Exp $
 
 DISTNAME=      slib-3b5
 #
@@ -9,6 +9,7 @@
 # Also update guile-slib
 #
 PKGNAME=       slib-3.2.5
+PKGREVISION=   1
 CATEGORIES=    devel
 MASTER_SITES=  http://swissnet.ai.mit.edu/ftpdir/scm/
 
@@ -25,7 +26,7 @@
 DOCDIR=                ${PREFIX}/share/doc/slib
 INFO_FILES=    yes
 
-INSTALLATION_DIRS=     ${PKGINFODIR}
+INSTALLATION_DIRS=     ${PKGINFODIR} share/slib share/doc/slib
 
 SUBST_CLASSES+=                scmpath
 SUBST_STAGE.scmpath=   post-patch
@@ -33,9 +34,10 @@
 SUBST_SED.scmpath=     -e "s|/usr/share/slib|${PREFIX}/share/slib|"
 
 do-install:
-       ${INSTALL_DATA_DIR} ${DESTDIR}${SLIBDIR}
+       # symlink is a workaround for guile-slib with guile20-2.0.12
+       # remove when not needed any longer
+       cd ${DESTDIR}${SLIBDIR} && ${LN} -s . slib
        cd ${WRKSRC}; ${INSTALL_DATA} *.scm *.init ${DESTDIR}${SLIBDIR}
-       ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
        cd ${WRKSRC}; ${INSTALL_DATA} README FAQ ${DESTDIR}${DOCDIR}
        cd ${WRKSRC}; for f in slib.info slib.info-[0-9]*; do           \
                ${TEST} ! -f "$$f" ||                                   \
diff -r 480b72b1b10d -r 26f7bd804136 devel/slib/PLIST
--- a/devel/slib/PLIST  Thu Sep 15 13:57:00 2016 +0000
+++ b/devel/slib/PLIST  Thu Sep 15 14:02:08 2016 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.16 2016/09/15 00:08:12 gdt Exp $
+@comment $NetBSD: PLIST,v 1.17 2016/09/15 14:02:08 wiz Exp $
 info/slib.info
 share/doc/slib/FAQ
 share/doc/slib/README
@@ -143,6 +143,7 @@
 share/slib/sierpinski.scm
 share/slib/simetrix.scm
 share/slib/sisc.init
+share/slib/slib
 share/slib/solid.scm
 share/slib/sort.scm
 share/slib/soundex.scm



Home | Main Index | Thread Index | Old Index