|
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 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | PortGroup xcode 1.0 |
|---|
| 5 | |
|---|
| 6 | name Freecell |
|---|
| 7 | version 2.1 |
|---|
| 8 | categories aqua games |
|---|
| 9 | platforms darwin |
|---|
| 10 | maintainers nomaintainer |
|---|
| 11 | |
|---|
| 12 | description classic solitaire game |
|---|
| 13 | long_description The imaginatively-titled âFreecellâ is a Mac OS X \ |
|---|
| 14 | version of the classic solitaire game. |
|---|
| 15 | |
|---|
| 16 | homepage http://randomoracle.com/freecell/ |
|---|
| 17 | master_sites macports |
|---|
| 18 | use_bzip2 yes |
|---|
| 19 | |
|---|
| 20 | checksums md5 05c41aa87c3a6c390f83c12db7c4ff3d \ |
|---|
| 21 | sha1 2e609fe0548f44a316f77f15db39581aad7a587f \ |
|---|
| 22 | rmd160 0dbb3cbb23730654244091f4683c51a590a373ab |
|---|
| 23 | |
|---|
| 24 | variant 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 |
|---|
| 34 | if {![info exists applications_dir]} { |
|---|
| 35 | set applications_dir /Applications/MacPorts |
|---|
| 36 | } |
|---|
| 37 | |
|---|
| 38 | post-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 | |
|---|
| 49 | livecheck.check regex |
|---|
| 50 | livecheck.regex "${name} (\\d+(?:\\.\\d+)*)" |
|---|