[96759] trunk/dports/sysutils/cliclick/Portfile

ryandesign at macports.org ryandesign at macports.org
Sat Aug 18 04:46:39 PDT 2012


Revision: 96759
          https://trac.macports.org/changeset/96759
Author:   ryandesign at macports.org
Date:     2012-08-18 04:46:35 -0700 (Sat, 18 Aug 2012)
Log Message:
-----------
cliclick: update to 2.0; support non-universal install

Modified Paths:
--------------
    trunk/dports/sysutils/cliclick/Portfile

Modified: trunk/dports/sysutils/cliclick/Portfile
===================================================================
--- trunk/dports/sysutils/cliclick/Portfile	2012-08-18 09:22:00 UTC (rev 96758)
+++ trunk/dports/sysutils/cliclick/Portfile	2012-08-18 11:46:35 UTC (rev 96759)
@@ -4,12 +4,13 @@
 PortSystem                  1.0
 
 name                        cliclick
-version                     1.3.1
+version                     2.0
 platforms                   macosx
 categories                  sysutils
 maintainers                 ryandesign
 license                     freeware
 supported_archs             i386 ppc
+configure.universal_archs   i386 ppc
 
 description                 a command-line utility for simulating mouse clicks
 
@@ -24,27 +25,24 @@
 distname                    ${name}
 dist_subdir                 ${name}/${version}
 
-checksums                   md5     acac7d3bc2f289a2cb397f048d421858 \
-                            sha1    f1c5ea9db95c950fc1d3ccac7766935fa41c0a17 \
-                            rmd160  ec57707aa3564889cbd77e3ce0f6623221f22e8a
+checksums                   rmd160  d2f8b80e183a1d40b7b06e1596f66d69ade04763 \
+                            sha256  537683c8458ae2cea9038732c574e501d34b164e719f6a9437cd6a1ffe7b2edc
 
 use_configure               no
 
-build {}
+build {
+    if {![variant_isset universal]} {
+        system -W ${worksrcpath} "lipo -extract ${configure.build_arch} ${name} -output ${name}"
+    }
+}
 
 destroot {
     xinstall -W ${worksrcpath} ${name} ${destroot}${prefix}/bin
     xinstall -d ${destroot}${prefix}/share/doc/${name}
-    xinstall -m 644 -W ${worksrcpath} {Read me.rtf} ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 644 -W ${worksrcpath} {Read me.html} ${destroot}${prefix}/share/doc/${name}
 }
 
-default_variants +universal
 variant universal {}
-pre-fetch {
-    if {![variant_isset universal]} {
-        return -code error "${name} is only available in a universal version"
-    }
-}
 
 livecheck.type              regex
 livecheck.regex             {Version: ([0-9.]+)}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120818/1b50b4f4/attachment.html>


More information about the macports-changes mailing list