Changeset 38613


Ignore:
Timestamp:
Jul 26, 2008, 5:16:39 AM (11 years ago)
Author:
ryandesign@…
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

The referenced patchfile was committed in r38627.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/emulators/lisaem/Portfile

    r38610 r38613  
    55name                    lisaem
    66version                 1.2.6
     7revision                1
    78maintainers             ryandesign
    89platforms               darwin
     
    2728    port:wxWidgets
    2829
     30patchfiles \
     31    patch-build.sh.diff
     32
    2933use_configure           no
    3034universal_variant       no
     
    3337build.target            build
    3438
     39# Can be removed once MacPorts 1.7.0 is released
     40if {![info exists applications_dir]} {
     41    set applications_dir /Applications/MacPorts
     42}
     43
    3544destroot.cmd            ${build.cmd}
    3645destroot.target         install
    3746destroot.destdir
    38 destroot.env            PREFIX=${destroot}/Applications/MacPorts
     47destroot.env            PREFIXAPP=${destroot}${applications_dir} \
     48                        PREFIXBIN=${destroot}${prefix}/bin \
     49                        PREFIXLIB=${destroot}${prefix}/share
    3950
    4051pre-destroot {
    41     xinstall -d ${destroot}/Applications/MacPorts
     52    xinstall -d ${destroot}${applications_dir}
     53}
     54
     55post-activate {
     56    # lisaem 1.2.6_0 installed items to /usr/local/bin; remove them if found
     57    foreach file {lisadiskinfo lisafsh-tool} {
     58        set filepath /usr/local/bin/${file}
     59        if {[file exists ${filepath}]} {
     60            if {[catch {delete ${filepath}}]} {
     61                ui_warn "Cannot delete ${filepath}; please remove it manually"
     62            }
     63        }
     64    }
    4265}
    4366
Note: See TracChangeset for help on using the changeset viewer.