[96969] trunk/dports/aqua/xrg/Portfile

snc at macports.org snc at macports.org
Thu Aug 23 06:42:24 PDT 2012


Revision: 96969
          https://trac.macports.org/changeset/96969
Author:   snc at macports.org
Date:     2012-08-23 06:42:20 -0700 (Thu, 23 Aug 2012)
Log Message:
-----------
xrg: update to 1.7.0

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

Modified: trunk/dports/aqua/xrg/Portfile
===================================================================
--- trunk/dports/aqua/xrg/Portfile	2012-08-23 08:47:29 UTC (rev 96968)
+++ trunk/dports/aqua/xrg/Portfile	2012-08-23 13:42:20 UTC (rev 96969)
@@ -5,10 +5,10 @@
 PortGroup       xcode 1.0
 
 name            xrg
-version         1.6.0
+version         1.7.0
 categories-append   sysutils
 maintainers     snc openmaintainer
-license             Permissive
+license             GPL-2+
 description     XRG is an open source system monitor for Mac OS X.
 long_description \
     XRG allows you to monitor CPU activity, memory \
@@ -22,28 +22,37 @@
     graphs on system usage.
 homepage        http://www.gauchosoft.com/Products/XRG/
 master_sites    http://download.gauchosoft.com/${name}/
-distname        [string toupper ${name}]-src-${version}
-checksums           rmd160  095c2bef9948e8d5bfac37b55d6ddc4456dfacf4 \
-                    sha256  6d0a6b801b55837046b5ba912e90247a114073bd09a93420b98e8dd01ef95324
+supported_archs     i386 x86_64
 
-worksrcdir          [string toupper ${name}]
+worksrcdir          [string toupper ${name}].app
 
 pre-fetch {
-    platform darwin {
-        if {${os.major} < 8} {
-            ui_error "${name} requires OS X 10.4 or newer."
-            return -code error "incompatible OS X version"
-        }
+    if {${os.major} < 10} {
+        ui_error "${name} requires OS X 10.6 or newer."
+        return -code error "incompatible OS X version"
+    }
+}
+use_zip             yes
+distname        [string toupper ${name}]-release-${version}
 
-        if {${build_arch} == "x86_64"} {
-            if {${os.major} < 10} {
-                ui_error "${name} requires OS X 10.6 or newer."
-                return -code error "incompatible OS X version"
-            }
-        }
+checksums           rmd160  e217b454cb646739be69b010c1d26c0cb5d7f2c6 \
+                    sha256  2abedda2bf31443ee33e26fd16a235cbf1718cbce6d39a144c1e64809d6ed21f
+
+use_configure       no
+configure.universal_archs i386 x86_64
+
+build {
+    if {![variant_isset universal]} {
+        system -W ${worksrcpath}/Contents/MacOS "lipo -extract ${configure.build_arch} ${name} -output ${name}"
     }
 }
 
+destroot {
+    copy ${worksrcpath}  ${destroot}${applications_dir}
+}
+
+variant universal {}
+
 livecheck.type      regex
 livecheck.url       ${homepage}
-livecheck.regex     [string toupper ${name}]-src-(\\d+(\\.\\d+)+)${extract.suffix}
+livecheck.regex     [string toupper ${name}]-\\w+-(\\d+(\\.\\d+)+)${extract.suffix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120823/d61db084/attachment.html>


More information about the macports-changes mailing list