Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

root/trunk/dports/aqua/Freecell/Portfile

Revision 38865, 1.6 KB (checked in by ryandesign@…, 5 months ago)

Freecell: fix install when not root

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1# $Id$
2
3PortSystem              1.0
4PortGroup               xcode 1.0
5
6name                    Freecell
7version                 2.1
8categories              aqua games
9platforms               darwin
10maintainers             nomaintainer
11
12description             classic solitaire game
13long_description        The imaginatively-titled “Freecell” is a Mac OS X \
14                        version of the classic solitaire game.
15
16homepage                http://randomoracle.com/freecell/
17master_sites            macports
18use_bzip2               yes
19
20checksums               md5 05c41aa87c3a6c390f83c12db7c4ff3d \
21                        sha1 2e609fe0548f44a316f77f15db39581aad7a587f \
22                        rmd160 0dbb3cbb23730654244091f4683c51a590a373ab
23
24variant universal {
25    post-patch {
26        reinplace -E "/OTHER_CFLAGS/s|\"\"|\"${configure.universal_cflags}\"|" \
27            ${worksrcpath}/Freecell.pbproj/project.pbxproj
28        reinplace -E "/OTHER_LDFLAGS/s|\"\"|\"${configure.universal_ldflags}\"|" \
29            ${worksrcpath}/Freecell.pbproj/project.pbxproj
30    }
31}
32
33# Can be removed once MacPorts 1.7.0 is released
34if {![info exists applications_dir]} {
35    set applications_dir /Applications/MacPorts
36}
37
38post-destroot {
39    fs-traverse dir ${worksrcpath}/build {
40        if {[file isdirectory ${dir}]} {
41            file attributes ${dir} -permissions u+w
42        }
43    }
44    xinstall -d ${destroot}${applications_dir}
45    copy ${worksrcpath}/build/UninstalledProducts/Freecell.app \
46        ${destroot}${applications_dir}
47}
48
49livecheck.check         regex
50livecheck.regex         "${name} (\\d+(?:\\.\\d+)*)"
Note: See TracBrowser for help on using the browser.