Summary: | net-p2p/transmission-2.50 make x11-libs/gtk+:3 and other dependencies optional | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Vasiliy Temnikov <vaka> |
Component: | New packages | Assignee: | Peter Volkov (RETIRED) <pva> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | alexanderyt, net-p2p, ssuominen |
Priority: | Normal | Keywords: | EBUILD, PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | ebuild for transmission-2.50 without gtk3 and other |
Description
Vasiliy Temnikov
2012-03-26 18:29:30 UTC
Comment on attachment 306779 [details]
ebuild for transmission-2.50 without gtk3 and other
--- transmission-2.50-r1.ebuild 2012-03-24 18:55:59.000000000 +0100
+++ - 2012-03-26 20:47:33.948458829 +0200
@@ -22,18 +22,24 @@
LICENSE="GPL-2 MIT"
SLOT="0"
-IUSE="ayatana gtk lightweight qt4 xfs"
+IUSE="ayatana gtk gtk3 lightweight qt4 xfs natpmp upnp"
RDEPEND="
>=dev-libs/libevent-2.0.10
dev-libs/openssl:0
- net-libs/libnatpmp
- >=net-libs/miniupnpc-1.6
+ upnp? ( >=net-libs/miniupnpc-1.6 )
+ natpmp? ( net-libs/libnatpmp )
>=net-misc/curl-7.16.3[ssl]
sys-libs/zlib
gtk? (
>=dev-libs/dbus-glib-0.98
>=dev-libs/glib-2.28
+ >=x11-libs/gtk+-2.22:2
+ ayatana? ( dev-libs/libappindicator:3 )
+ )
+ gtk3? (
+ >=dev-libs/dbus-glib-0.98
+ >=dev-libs/glib-2.28
>=x11-libs/gtk+-3.2:3
ayatana? ( dev-libs/libappindicator:3 )
)
@@ -72,7 +78,9 @@
./update-version-h.sh
fi
- epatch "${FILESDIR}"/${PN}-2.50-build-with-natpmp1.patch #376647
+ if use natpmp; then
+ epatch "${FILESDIR}"/${PN}-2.50-build-with-natpmp1.patch #376647
+ fi
epatch "${FILESDIR}"/${PN}-2.50-punt_broken_CXX_check.patch #407137
sed -i -e '/CFLAGS/s:-ggdb3::' configure.ac
@@ -105,10 +113,21 @@
src_configure() {
export ac_cv_header_xfs_xfs_h=$(usex xfs)
+ local myconf
+
+ if use gtk3 ; then
+ myconf="${myconf} $(use_with gtk) --with-gtk=3"
+ elif use gtk ; then
+ myconf="${myconf} $(use_with gtk) --with-gtk=2"
+ fi
+
+ if use natpmp ; then
+ myconf="${myconf} --enable-external-natpmp"
+ fi
+
econf \
- --enable-external-natpmp \
$(use_enable lightweight) \
- $(use_with gtk)
+ ${myconf}
if use qt4; then
pushd qt >/dev/null
We always want GTK+-3.x wrt bug 374057 and we always want external libraries (so USE natpmp won't be required) *** This bug has been marked as a duplicate of bug 374057 *** |