[38613] trunk/dports/emulators/lisaem/Portfile

ryandesign at macports.org ryandesign at macports.org
Fri Jul 25 22:16:40 PDT 2008


Revision: 38613
          http://trac.macosforge.org/projects/macports/changeset/38613
Author:   ryandesign at macports.org
Date:     2008-07-25 22:16:39 -0700 (Fri, 25 Jul 2008)
Log Message:
-----------
lisaem:

 * lisadiskinfo and lisafsh-tool get installed to ${prefix}/bin instead of /usr/local/bin
 * install app to ${applications_dir} instead of assuming /Applications/MacPorts
 * root is no longer required to install

Modified Paths:
--------------
    trunk/dports/emulators/lisaem/Portfile

Modified: trunk/dports/emulators/lisaem/Portfile
===================================================================
--- trunk/dports/emulators/lisaem/Portfile	2008-07-26 01:09:54 UTC (rev 38612)
+++ trunk/dports/emulators/lisaem/Portfile	2008-07-26 05:16:39 UTC (rev 38613)
@@ -4,6 +4,7 @@
 
 name                    lisaem
 version                 1.2.6
+revision                1
 maintainers             ryandesign
 platforms               darwin
 categories              emulators
@@ -26,21 +27,43 @@
 depends_lib \
     port:wxWidgets
 
+patchfiles \
+    patch-build.sh.diff
+
 use_configure           no
 universal_variant       no
 
 build.cmd               ./build.sh
 build.target            build
 
+# Can be removed once MacPorts 1.7.0 is released
+if {![info exists applications_dir]} {
+    set applications_dir /Applications/MacPorts
+}
+
 destroot.cmd            ${build.cmd}
 destroot.target         install
 destroot.destdir
-destroot.env            PREFIX=${destroot}/Applications/MacPorts
+destroot.env            PREFIXAPP=${destroot}${applications_dir} \
+                        PREFIXBIN=${destroot}${prefix}/bin \
+                        PREFIXLIB=${destroot}${prefix}/share
 
 pre-destroot {
-    xinstall -d ${destroot}/Applications/MacPorts
+    xinstall -d ${destroot}${applications_dir}
 }
 
+post-activate {
+    # lisaem 1.2.6_0 installed items to /usr/local/bin; remove them if found
+    foreach file {lisadiskinfo lisafsh-tool} {
+        set filepath /usr/local/bin/${file}
+        if {[file exists ${filepath}]} {
+            if {[catch {delete ${filepath}}]} {
+                ui_warn "Cannot delete ${filepath}; please remove it manually"
+            }
+        }
+    }
+}
+
 livecheck.check         regex
 livecheck.url           ${homepage}downloads.html
 livecheck.regex         ${name}-(\[0-9.\]+)\\.tar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080725/d7c5328d/attachment.html 


More information about the macports-changes mailing list