Ignore:
Timestamp:
Jul 31, 2008, 4:32:07 AM (12 years ago)
Author:
ryandesign@…
Message:

minivmac: use ${applications_dir}; don't hardcode /Applications/MacPorts

File:
1 edited

Legend:

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

    r38616 r38772  
    55name                minivmac
    66version             2.8.2
    7 revision            1
     7revision            2
    88categories          emulators aqua
    99maintainers         ryandesign
     
    4040                rmd160 dc7a827fc1821014b2ac0f9b5cd025e1133d83ef
    4141
    42 set appdir /Applications/MacPorts
     42# Can be removed once MacPorts 1.7.0 is released
     43if {![info exists applications_dir]} {
     44    set applications_dir /Applications/MacPorts
     45}
     46
    4347set romfile vMac.ROM
    4448set romfile_model "Macintosh Plus or 512Ke"
     
    5256
    5357destroot {
    54         xinstall -m 755 -d ${destroot}${appdir}
     58        xinstall -m 755 -d ${destroot}${applications_dir}
    5559        file copy ${worksrcpath}/minivmac.app \
    56                 ${destroot}${appdir}/Mini\ vMac.app
     60                ${destroot}${applications_dir}/Mini\ vMac.app
    5761}
    5862
    5963post-install {
    60         if { ! [file exists ${appdir}/${romfile}] } {
     64        if { ! [file exists ${applications_dir}/${romfile}] } {
    6165                ui_msg "**************************************************************"
    6266                ui_msg "Mini vMac requires a ROM file from the type of machine you're"
     
    6872                ui_msg "that you own. Run the CopyRoms program there, then transfer"
    6973                ui_msg "the ROM file back to this Mac, name it ${romfile},"
    70                 ui_msg "and put it in ${appdir}."
     74                ui_msg "and put it in ${applications_dir}."
    7175                ui_msg "**************************************************************"
    7276        }
Note: See TracChangeset for help on using the changeset viewer.