[29893] trunk/dports/aqua/Freecell/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Sun Oct 14 09:02:10 PDT 2007


Revision: 29893
          http://trac.macosforge.org/projects/macports/changeset/29893
Author:   nox at macports.org
Date:     2007-10-14 09:02:10 -0700 (Sun, 14 Oct 2007)

Log Message:
-----------
Freecell:
 * Ported to xcode portgroup.
 * Added universal support.
 * Now fetches sources from MacPorts distfiles repository.
 * Added livecheck.

Modified Paths:
--------------
    trunk/dports/aqua/Freecell/Portfile

Modified: trunk/dports/aqua/Freecell/Portfile
===================================================================
--- trunk/dports/aqua/Freecell/Portfile	2007-10-14 16:00:59 UTC (rev 29892)
+++ trunk/dports/aqua/Freecell/Portfile	2007-10-14 16:02:10 UTC (rev 29893)
@@ -1,6 +1,7 @@
 # $Id$
 
-PortSystem  1.0
+PortSystem      1.0
+PortGroup       xcode 1.0
 
 name            Freecell
 version         2.1
@@ -10,35 +11,31 @@
 description     classic solitaire game
 
 long_description \
-    ${description}
+    The imaginatively-titled “Freecell” is a Mac OS X version of the classic solitaire game.
 
 homepage        http://randomoracle.com/freecell/
-master_sites    ${homepage}downloads/
-dist_subdir     ${name}/${version}
-distname        freecell
+master_sites    macports
+use_bzip2       yes
 
-checksums       md5 87a4c96424247ed0f17f7949acadf967 \
-                sha1 f5e937c6322f78d42dc7b864a0d456fb253f7fd3 \
-                rmd160 68c29c3b6697ad66a11ca87d4754cfde1bbdb770
+checksums       md5 05c41aa87c3a6c390f83c12db7c4ff3d \
+                sha1 2e609fe0548f44a316f77f15db39581aad7a587f \
+                rmd160 0dbb3cbb23730654244091f4683c51a590a373ab
 
-worksrcdir      Freecell
-
-use_configure   no
-
-build.type      pbx
-build.target    -configuration Deployment
-
-set xcodebuilddir   build
-platform darwin 8 {
-    if {$xcodeversion == "2.1"} {
-        set xcodebuilddir   build/Deployment
+variant universal {
+    post-patch {
+        reinplace -E "/OTHER_CFLAGS/s|\"\"|\"${configure.universal_cflags}\"|" \
+            ${worksrcpath}/Freecell.pbproj/project.pbxproj
+        reinplace -E "/OTHER_LDFLAGS/s|\"\"|\"${configure.universal_ldflags}\"|" \
+            ${worksrcpath}/Freecell.pbproj/project.pbxproj
     }
 }
 
-destroot {
-    xinstall -m 755 -d ${destroot}/Applications/MacPorts
-    file copy ${worksrcpath}/${xcodebuilddir}/${name}.app \
-        ${destroot}/Applications/MacPorts/
+post-destroot {
+    xinstall -d ${destroot}/Applications/MacPorts
+    copy ${worksrcpath}/build/UninstalledProducts/Freecell.app \
+        ${destroot}/Applications/MacPorts
 }
 
-universal_variant   no
+livecheck.check regex
+livecheck.regex "${name} (\\d+(?:\\.\\d+)*)"
+

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071014/e0891bcf/attachment-0001.html


More information about the macports-changes mailing list