[34494] trunk/dports/x11
ryandesign at macports.org
ryandesign at macports.org
Tue Feb 26 14:47:29 PST 2008
Revision: 34494
http://trac.macosforge.org/projects/macports/changeset/34494
Author: ryandesign at macports.org
Date: 2008-02-26 14:47:28 -0800 (Tue, 26 Feb 2008)
Log Message:
-----------
winetricks: new port
Added Paths:
-----------
trunk/dports/x11/winetricks/
trunk/dports/x11/winetricks/Portfile
trunk/dports/x11/winetricks/files/
trunk/dports/x11/winetricks/files/patch-gsha1sum.diff
trunk/dports/x11/winetricks/files/patch-x11prefix.diff
Added: trunk/dports/x11/winetricks/Portfile
===================================================================
--- trunk/dports/x11/winetricks/Portfile (rev 0)
+++ trunk/dports/x11/winetricks/Portfile 2008-02-26 22:47:28 UTC (rev 34494)
@@ -0,0 +1,64 @@
+# $Id$
+
+PortSystem 1.0
+
+name winetricks
+version 20080222
+categories x11
+maintainers ryandesign
+homepage http://www.kegel.com/wine/
+master_sites ${homepage}
+platforms darwin
+distname ${name}
+dist_subdir ${name}/${version}
+extract.suffix
+extract.mkdir yes
+use_configure no
+universal_variant no
+
+description \
+ downloads and installs various redistributable runtime libraries
+
+long_description \
+ ${name} can help you prepare your system for Windows applications \
+ that mistakenly assume all users' systems have all the needed \
+ redistributable runtime libraries or fonts.
+
+checksums \
+ md5 a077e40a9b2489bc98041ae2eb366301 \
+ sha1 f3594e3a3cb160b45000538cb333b0cccc4ee4df \
+ rmd160 e9115d1de7e11957fe8c561e9b9236c7a5513b6b
+
+patchfiles \
+ patch-x11prefix.diff
+
+# wget is required until we write and submit upstream a patch to allow it to use curl instead of wget
+depends_run \
+ port:cabextract \
+ port:wget \
+ port:wine
+
+# coreutils is required until we write and submit upstream a patch to let it use openssl dgst -sha1 instead of sha1sum
+platform darwin {
+ depends_run-append \
+ port:coreutils
+ patchfiles-append \
+ patch-gsha1sum.diff
+}
+
+extract {
+ copy ${distpath}/${name} ${worksrcpath}
+}
+
+build {
+ reinplace "s%@X11PREFIX@%${x11prefix}%" ${worksrcpath}/${name}
+}
+
+destroot {
+ xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/${name}
+}
+
+
+livecheck.check regex
+livecheck.url [lindex ${master_sites} 0]${name}
+livecheck.regex {Winetricks version (\d+)}
Property changes on: trunk/dports/x11/winetricks/Portfile
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: trunk/dports/x11/winetricks/files/patch-gsha1sum.diff
===================================================================
--- trunk/dports/x11/winetricks/files/patch-gsha1sum.diff (rev 0)
+++ trunk/dports/x11/winetricks/files/patch-gsha1sum.diff 2008-02-26 22:47:28 UTC (rev 34494)
@@ -0,0 +1,11 @@
+--- winetricks 2008-02-26 15:55:39.000000000 -0600
++++ winetricks 2008-02-26 15:56:18.000000000 -0600
+@@ -251,7 +251,7 @@
+ if [ "$3"x != ""x ]
+ then
+ echo "$3 $cache/$file" > $cache/$file.sha1sum
+- try sha1sum --status -c $cache/$file.sha1sum
++ try gsha1sum --status -c $cache/$file.sha1sum
+ fi
+ }
+
Added: trunk/dports/x11/winetricks/files/patch-x11prefix.diff
===================================================================
--- trunk/dports/x11/winetricks/files/patch-x11prefix.diff (rev 0)
+++ trunk/dports/x11/winetricks/files/patch-x11prefix.diff 2008-02-26 22:47:28 UTC (rev 34494)
@@ -0,0 +1,11 @@
+--- winetricks 2008-02-26 16:08:33.000000000 -0600
++++ winetricks 2008-02-26 16:08:52.000000000 -0600
+@@ -176,7 +176,7 @@
+ shift
+ done
+ (echo "$title"; echo ""; echo "$text") > /tmp/x_showmenu.txt
+- xmessage -print -file /tmp/x_showmenu.txt -buttons "Cancel,$args" | sed 's/Cancel//'
++ @X11PREFIX@/bin/xmessage -print -file /tmp/x_showmenu.txt -buttons "Cancel,$args" | sed 's/Cancel//'
+ }
+
+ showmenu()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080226/fd115881/attachment.html
More information about the macports-changes
mailing list