[145288] trunk/dports/net/transmission-x11/Portfile
khindenburg at macports.org
khindenburg at macports.org
Sat Jan 30 18:30:16 PST 2016
Revision: 145288
https://trac.macports.org/changeset/145288
Author: khindenburg at macports.org
Date: 2016-01-30 18:30:16 -0800 (Sat, 30 Jan 2016)
Log Message:
-----------
transmission-x11: update port from net/transmission; add default +gtk variant #50452
Modified Paths:
--------------
trunk/dports/net/transmission-x11/Portfile
Modified: trunk/dports/net/transmission-x11/Portfile
===================================================================
--- trunk/dports/net/transmission-x11/Portfile 2016-01-31 02:05:06 UTC (rev 145287)
+++ trunk/dports/net/transmission-x11/Portfile 2016-01-31 02:30:16 UTC (rev 145288)
@@ -16,7 +16,9 @@
Linux/NetBSD/FreeBSD/OpenBSD (GTK+ interface) and BeOS \
(native interface). This is the GTK+ version.
homepage http://www.transmissionbt.com/
-master_sites sourceforge:transmission.mirror
+master_sites http://download.m0k.org/transmission/files/ \
+ http://download.transmissionbt.com/files/ \
+ https://transmission.cachefly.net/
platforms darwin freebsd
@@ -28,35 +30,48 @@
checksums rmd160 9d209bdf0ebeb6f4d6d9dc726cf8bf9e9c8ccb40 \
sha256 a9fc1936b4ee414acc732ada04e84339d6755cd0d097bcbd11ba2cfc540db9eb
-depends_build port:gsed \
- port:intltool \
+depends_build port:intltool \
port:pkgconfig \
port:autoconf \
port:automake \
port:libtool
-depends_lib port:desktop-file-utils \
- port:gtk3 \
+depends_lib port:miniupnpc \
path:lib/libssl.dylib:openssl \
port:curl \
port:gettext \
port:libevent
-depends_run port:gnome-themes-standard
-
# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
configure.cmd ./autogen.sh
configure.args --enable-daemon \
--enable-cli \
- --with-gtk \
+ --without-gtk \
--disable-mac
+default_variants +gtk
+
variant aqua description {Build Aqua front-end} {
configure.args-replace --disable-mac --enable-mac
}
+variant gtk description {Build Gtk3 front-end} {
+ depends_lib-append port:gtk3 \
+ port:libnotify \
+ port:desktop-file-utils
+
+ depends_run port:gnome-themes-standard
+
+ configure.args-replace --without-gtk --with-gtk
+
+ post-activate {
+ system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
+ system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
+ }
+}
+
platform darwin 8 {
pre-fetch {
ui_error "${name} requires Mac OS X 10.5 or greater."
@@ -64,11 +79,5 @@
}
}
-post-activate {
- system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
- system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
-}
-
-livecheck.type regex
-livecheck.url http://sourceforge.net/projects/transmission.mirror/files/
-livecheck.regex "transmission-(\\d+(?:\\.\\d+)*)${extract.suffix}"
+livecheck.url ${homepage}/download.php
+livecheck.regex The current release version is <b>(.*)</b>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160130/5e77c1b4/attachment.html>
More information about the macports-changes
mailing list