[38699] trunk/dports/science/mapm3

ryandesign at macports.org ryandesign at macports.org
Tue Jul 29 00:26:23 PDT 2008


Revision: 38699
          http://trac.macosforge.org/projects/macports/changeset/38699
Author:   ryandesign at macports.org
Date:     2008-07-29 00:26:21 -0700 (Tue, 29 Jul 2008)
Log Message:
-----------
mapmaker: install a wrapper so the user doesn't have to set the MAPM_LIB environment variable himself

Modified Paths:
--------------
    trunk/dports/science/mapm3/Portfile

Added Paths:
-----------
    trunk/dports/science/mapm3/files/wrapper.in

Modified: trunk/dports/science/mapm3/Portfile
===================================================================
--- trunk/dports/science/mapm3/Portfile	2008-07-29 05:33:02 UTC (rev 38698)
+++ trunk/dports/science/mapm3/Portfile	2008-07-29 07:26:21 UTC (rev 38699)
@@ -4,7 +4,7 @@
 
 name                mapm3
 version             3
-revision			1
+revision            2
 platforms           darwin
 maintainers         nomaintainer
 categories          science
@@ -32,8 +32,15 @@
                        system "mkdir -p ${destroot}${prefix}/bin "
                     }
 
+post-destroot {
+    xinstall -d ${destroot}${prefix}/lib/${name}
+    foreach prog {mapmaker qtl} {
+        move ${destroot}${prefix}/bin/${prog} ${destroot}${prefix}/lib/${name}
+        xinstall -m 755 ${filespath}/wrapper.in ${destroot}${prefix}/bin/${prog}
+        reinplace "s%@PREFIX@%${prefix}%g" ${destroot}${prefix}/bin/${prog}
+    }
+}
 
-
 variant   large_datasets  { 
 					post-patch { reinplace \
                                    "s|^SYS= -D_SYS_DARWIN -DUSE_RAND48|SYS= -D_SYS_DARWIN -DUSE_RAND48 -D_BIG_DATASETS|g" \

Added: trunk/dports/science/mapm3/files/wrapper.in
===================================================================
--- trunk/dports/science/mapm3/files/wrapper.in	                        (rev 0)
+++ trunk/dports/science/mapm3/files/wrapper.in	2008-07-29 07:26:21 UTC (rev 38699)
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+cd "@PREFIX@/lib/mapm3"
+MAPM_LIB="@PREFIX@/bin" ./`basename "$0"` "$@"


Property changes on: trunk/dports/science/mapm3/files/wrapper.in
___________________________________________________________________
Name: svn:executable
   + *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080729/e74fcd14/attachment.html 


More information about the macports-changes mailing list