[60623] trunk/dports/lang/gambit-c/Portfile

snc at macports.org snc at macports.org
Tue Nov 17 16:17:58 PST 2009


Revision: 60623
          http://trac.macports.org/changeset/60623
Author:   snc at macports.org
Date:     2009-11-17 16:17:53 -0800 (Tue, 17 Nov 2009)
Log Message:
-----------
rename binary, ticket #21657. fix master_sites

Modified Paths:
--------------
    trunk/dports/lang/gambit-c/Portfile

Modified: trunk/dports/lang/gambit-c/Portfile
===================================================================
--- trunk/dports/lang/gambit-c/Portfile	2009-11-17 18:21:23 UTC (rev 60622)
+++ trunk/dports/lang/gambit-c/Portfile	2009-11-18 00:17:53 UTC (rev 60623)
@@ -5,6 +5,7 @@
 
 name                    gambit-c
 version                 4.5.3
+revision                1
 set branch              [join [lrange [split ${version} .] 0 1] .]
 categories              lang scheme
 platforms               darwin
@@ -25,7 +26,7 @@
                         numbers), and complex numbers.
 
 homepage                http://dynamo.iro.umontreal.ca/~gambit/wiki/index.php/Main_Page
-master_sites            ${homepage}download/gambit/v${branch}/source/
+master_sites            http://dynamo.iro.umontreal.ca/~gambit/download/gambit/v${branch}/source/
 distname                gambc-v[strsed ${version} {g/\./_/}]
 extract.suffix          .tgz
 checksums           md5     716ed47b7a73d90c9426a240e9536f67 \
@@ -37,11 +38,18 @@
                         --enable-single-host \
                         --docdir=${prefix}/share/doc
 
+# gsc conficts with a binary installed by Ghostscript. Recommended
+# option (based on mailing list posts from Arch Linux and FreeBSD
+# projects) is to rename gsc to gambit-gsc
+set gsc "gambit-gsc"
+set gsi "gambit-gsi"
+
 post-extract {
     # Get rid of the incompatible version-specific installation structure
     reinplace "s|PACKAGE_SUBDIR=\"/${version}\"|PACKAGE_SUBDIR=\"\"|g" ${worksrcpath}/configure.ac
     reinplace "s|&& \$(LN_S) \.\$(PACKAGE_SUBDIR) current||g" ${worksrcpath}/makefile.in
     reinplace "s|rm -f \$(prefix)/current \$(prefix)/current.lnk||g" ${worksrcpath}/makefile.in
+    reinplace "s|.B gsc|.B ${gsc}|g" ${worksrcpath}/doc/gsi.1
 
     # Fix target paths since the configure options are not properly used in the makefiles
     foreach makefile [exec find ${worksrcpath} -name makefile.in] {
@@ -53,6 +61,15 @@
     }
 }
 
+post-destroot {
+    file rename "${destroot}${prefix}/bin/gsc" "${destroot}${prefix}/bin/${gsc}"
+    file delete "${destroot}${prefix}/bin/gsc-script"
+    ln -s "${gsc}" "${destroot}${prefix}/bin/gsc-script"
+    # Create a matching link for gambit-gsi for symmetry, even though the
+    # original gsi binary doesn't conflict and isn't being removed.
+    ln -s "gsi" "${destroot}${prefix}/bin/${gsi}"
+}
+
 variant optimized description "Use expensive GCC optimizations to improve speed and compactness" {
     configure.args-append --enable-gcc-opts
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091117/73a884ff/attachment.html>


More information about the macports-changes mailing list