source: trunk/dports/emulators/lisaem/Portfile @ 38613

Last change on this file since 38613 was 38613, checked in by ryandesign@…, 12 years ago

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.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 38613 2008-07-26 05:16:39Z ryandesign@macports.org $
2
3PortSystem              1.0
4
5name                    lisaem
6version                 1.2.6
7revision                1
8maintainers             ryandesign
9platforms               darwin
10categories              emulators
11homepage                http://lisa.sunder.net/
12master_sites            ${homepage}downloads/
13use_bzip2               yes
14use_parallel_build      no
15
16description \
17    Apple Lisa emulator
18
19long_description \
20    ${description}
21
22checksums \
23    md5 b236d7fa06c7589bb0de5d13ed680c9a \
24    sha1 c3552eb2fc89ff6e47994767aa4e524de7000dc7 \
25    rmd160 bc541ef181b417ee369ed960f29637f87cc1308a
26
27depends_lib \
28    port:wxWidgets
29
30patchfiles \
31    patch-build.sh.diff
32
33use_configure           no
34universal_variant       no
35
36build.cmd               ./build.sh
37build.target            build
38
39# Can be removed once MacPorts 1.7.0 is released
40if {![info exists applications_dir]} {
41    set applications_dir /Applications/MacPorts
42}
43
44destroot.cmd            ${build.cmd}
45destroot.target         install
46destroot.destdir
47destroot.env            PREFIXAPP=${destroot}${applications_dir} \
48                        PREFIXBIN=${destroot}${prefix}/bin \
49                        PREFIXLIB=${destroot}${prefix}/share
50
51pre-destroot {
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    }
65}
66
67livecheck.check         regex
68livecheck.url           ${homepage}downloads.html
69livecheck.regex         ${name}-(\[0-9.\]+)\\.tar
Note: See TracBrowser for help on using the repository browser.