[31678] trunk/dports/devel/slib-guile16/Portfile

ryandesign at macports.org ryandesign at macports.org
Sun Dec 2 15:22:52 PST 2007


Revision: 31678
          http://trac.macosforge.org/projects/macports/changeset/31678
Author:   ryandesign at macports.org
Date:     2007-12-02 15:22:49 -0800 (Sun, 02 Dec 2007)

Log Message:
-----------
slib-guile16: fix it to know about the new names of guile16 and guile16-config following breakage caused by r30860. Closes #13319.

Modified Paths:
--------------
    trunk/dports/devel/slib-guile16/Portfile

Modified: trunk/dports/devel/slib-guile16/Portfile
===================================================================
--- trunk/dports/devel/slib-guile16/Portfile	2007-12-02 23:13:39 UTC (rev 31677)
+++ trunk/dports/devel/slib-guile16/Portfile	2007-12-02 23:22:49 UTC (rev 31678)
@@ -3,7 +3,7 @@
 PortSystem 1.0
 name		slib-guile16
 version		1.0
-revision	0
+revision	1
 categories	devel
 maintainers	nomaintainer
 platforms	darwin
@@ -17,13 +17,17 @@
 
 build {}
 
+set guile		${prefix}/bin/guile16
+set guile-config	${prefix}/bin/guile16-config
+set guile-branch	[join [lrange [split [exec ${guile-config} info guileversion] .] 0 1] .]
+
 destroot {
 	system "mkdir -p ${workpath}/destroot/${prefix}/share/guile"
-	system "mkdir -p ${workpath}/destroot/${prefix}/share/guile/`guile-config info guileversion | cut -d . -f 1-2`"
-	system "ln -s ${prefix}/lib/slib ${workpath}/destroot/${prefix}/share/guile/`guile-config info guileversion | cut -d . -f 1-2`/slib"
+	system "mkdir -p ${workpath}/destroot/${prefix}/share/guile/${guile-branch}"
+	system "ln -s ${prefix}/lib/slib ${workpath}/destroot/${prefix}/share/guile/${guile-branch}/slib"
 	file link -s ${workpath}/destroot/${prefix}/share/guile/slib ${prefix}/lib/slib
 }
 
 post-activate {
-	system "${prefix}/bin/guile -c \"(use-modules (ice-9 slib)) (require 'new-catalog)\""
+	system "${guile} -c \"(use-modules (ice-9 slib)) (require 'new-catalog)\""
 }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071202/e0407427/attachment.html


More information about the macports-changes mailing list