summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2012-03-02 03:12:08 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2012-03-02 03:12:08 +0000
commit78cffdc5eb7efc962e3ac38fccb2769eea3740df (patch)
tree1d32ed5b66f2145508a134854257ad59692baa5c
parentFix regression from 2.42 ebuild series and use external libnatpmp again. (diff)
downloadgentoo-2-78cffdc5eb7efc962e3ac38fccb2769eea3740df.tar.gz
gentoo-2-78cffdc5eb7efc962e3ac38fccb2769eea3740df.tar.bz2
gentoo-2-78cffdc5eb7efc962e3ac38fccb2769eea3740df.zip
old
(Portage version: 2.2.0_alpha89/cvs/Linux x86_64)
-rw-r--r--net-p2p/transmission/ChangeLog10
-rw-r--r--net-p2p/transmission/files/transmission-2.33-0001-configure.ac.patch47
-rw-r--r--net-p2p/transmission/files/transmission-2.33-0002-config.in-4-qt.pro.patch72
-rw-r--r--net-p2p/transmission/files/transmission-2.41-0003-system-miniupnpc.patch281
-rw-r--r--net-p2p/transmission/files/transmission-2.41-noutp.patch14
-rw-r--r--net-p2p/transmission/transmission-2.41.ebuild161
-rw-r--r--net-p2p/transmission/transmission-2.50.ebuild166
7 files changed, 9 insertions, 742 deletions
diff --git a/net-p2p/transmission/ChangeLog b/net-p2p/transmission/ChangeLog
index 3368e6d72b61..bf81f1c5f662 100644
--- a/net-p2p/transmission/ChangeLog
+++ b/net-p2p/transmission/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for net-p2p/transmission
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/ChangeLog,v 1.174 2012/03/02 03:10:04 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/ChangeLog,v 1.175 2012/03/02 03:12:07 ssuominen Exp $
+
+ 02 Mar 2012; Samuli Suominen <ssuominen@gentoo.org>
+ -files/transmission-2.33-0001-configure.ac.patch,
+ -files/transmission-2.33-0002-config.in-4-qt.pro.patch,
+ -transmission-2.41.ebuild,
+ -files/transmission-2.41-0003-system-miniupnpc.patch,
+ -files/transmission-2.41-noutp.patch, -transmission-2.50.ebuild:
+ old
*transmission-2.50-r1 (02 Mar 2012)
diff --git a/net-p2p/transmission/files/transmission-2.33-0001-configure.ac.patch b/net-p2p/transmission/files/transmission-2.33-0001-configure.ac.patch
deleted file mode 100644
index 75e6594962c4..000000000000
--- a/net-p2p/transmission/files/transmission-2.33-0001-configure.ac.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-From fc34254a20735efaeb903365e0960d4a009463b3 Mon Sep 17 00:00:00 2001
-From: Peter Volkov <pva@gentoo.org>
-Date: Thu, 16 Jun 2011 12:46:48 +0400
-Subject: [PATCH 1/3] configure.ac: Drop redudant code/indentation.
-
----
- configure.ac | 16 ++++------------
- 1 files changed, 4 insertions(+), 12 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 7dcbcf0..421946f 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -214,26 +214,18 @@ AC_CHECK_LIB([rt],
-
- AC_MSG_CHECKING([µTP])
- build_utp="no"
--if test "x$CXX" = "x" ; then
-- have_utp="no"
--else
-- have_utp="yes"
--fi
- AC_ARG_ENABLE([utp],
- AS_HELP_STRING([--enable-utp],[build µTP support]),
- [want_utp=${enableval}],
-- [want_utp=${have_utp}])
-+ [want_utp="yes"])
- if test "x$want_utp" = "xyes" ; then
-- if test "x$have_utp" = "xyes"; then
-+ if test "x$CXX" != "x" ; then
- LIBUTP_CFLAGS="-I\$(top_srcdir)/third-party/"
-- LIBUTP_LIBS="\$(top_builddir)/third-party/libutp/libutp.a"
-- if test "x$libutp_extra_libs" != "x" ; then
-- LIBUTP_LIBS="$LIBUTP_LIBS $libutp_extra_libs"
-- fi
-+ LIBUTP_LIBS="\$(top_builddir)/third-party/libutp/libutp.a $libutp_extra_libs"
- AC_DEFINE([WITH_UTP],[1])
- build_utp="yes"
- else
-- AC_MSG_ERROR("Unable to build uTP support -- C++ compiler not found")
-+ AC_MSG_ERROR("Unable to build uTP support -- C++ compiler not found; consider --disable-utp")
- fi
- fi
- AC_SUBST(LIBUTP_CFLAGS)
---
-1.7.3.4
-
diff --git a/net-p2p/transmission/files/transmission-2.33-0002-config.in-4-qt.pro.patch b/net-p2p/transmission/files/transmission-2.33-0002-config.in-4-qt.pro.patch
deleted file mode 100644
index 106079509f4c..000000000000
--- a/net-p2p/transmission/files/transmission-2.33-0002-config.in-4-qt.pro.patch
+++ /dev/null
@@ -1,72 +0,0 @@
-From 9b55e6ce1a98b4c2f32349982d4172d0971601c6 Mon Sep 17 00:00:00 2001
-From: Peter Volkov <pva@gentoo.org>
-Date: Thu, 16 Jun 2011 12:48:11 +0400
-Subject: [PATCH 2/3] Add qt/config to make qmake aware about ./configure results. This simplifies use of system third-party tools. Fixes build issue caused by ordering of make/qmake run: bugs.gentoo.org/368523.
-
----
- configure.ac | 5 ++++-
- qt/config.in | 1 +
- qt/qtr.pro | 6 +++---
- 3 files changed, 8 insertions(+), 4 deletions(-)
- create mode 100644 qt/config.in
-
-diff --git a/configure.ac b/configure.ac
-index 421946f..bf0622b 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -222,6 +222,7 @@ if test "x$want_utp" = "xyes" ; then
- if test "x$CXX" != "x" ; then
- LIBUTP_CFLAGS="-I\$(top_srcdir)/third-party/"
- LIBUTP_LIBS="\$(top_builddir)/third-party/libutp/libutp.a $libutp_extra_libs"
-+ LIBUTP_LIBS_QT="\$\${TRANSMISSION_TOP}/third-party/libutp/libutp.a $libutp_extra_libs"
- AC_DEFINE([WITH_UTP],[1])
- build_utp="yes"
- else
-@@ -230,6 +231,7 @@ if test "x$want_utp" = "xyes" ; then
- fi
- AC_SUBST(LIBUTP_CFLAGS)
- AC_SUBST(LIBUTP_LIBS)
-+AC_SUBST(LIBUTP_LIBS_QT)
- AM_CONDITIONAL([BUILD_UTP],[test "x$build_utp" = "xyes"])
- AC_MSG_RESULT([$build_utp])
-
-@@ -484,7 +486,8 @@ AC_CONFIG_FILES([Makefile
- web/javascript/Makefile
- web/javascript/jquery/Makefile
- web/stylesheets/Makefile
-- po/Makefile.in])
-+ po/Makefile.in
-+ qt/config])
-
- AC_OUTPUT
-
-diff --git a/qt/config.in b/qt/config.in
-new file mode 100644
-index 0000000..3340d1a
---- /dev/null
-+++ b/qt/config.in
-@@ -0,0 +1 @@
-+LIBUTP_LIBS = @LIBUTP_LIBS_QT@
-diff --git a/qt/qtr.pro b/qt/qtr.pro
-index ce138a2..4e28e98 100644
---- a/qt/qtr.pro
-+++ b/qt/qtr.pro
-@@ -16,12 +16,12 @@ QT += network
- PKGCONFIG = fontconfig libcurl openssl libevent
-
- TRANSMISSION_TOP = ..
-+include(config)
-+
- INCLUDEPATH = $${EVENT_TOP}/include $${INCLUDEPATH}
- INCLUDEPATH += $${TRANSMISSION_TOP}
- LIBS += $${TRANSMISSION_TOP}/libtransmission/libtransmission.a
--exists( $${TRANSMISSION_TOP}/third-party/libutp/libutp.a ) {
-- LIBS += $${TRANSMISSION_TOP}/third-party/libutp/libutp.a
--}
-+LIBS += $${LIBUTP_LIBS}
- LIBS += $${TRANSMISSION_TOP}/third-party/dht/libdht.a
- LIBS += $${TRANSMISSION_TOP}/third-party/miniupnp/libminiupnp.a
- LIBS += $${TRANSMISSION_TOP}/third-party/libnatpmp/libnatpmp.a
---
-1.7.3.4
-
diff --git a/net-p2p/transmission/files/transmission-2.41-0003-system-miniupnpc.patch b/net-p2p/transmission/files/transmission-2.41-0003-system-miniupnpc.patch
deleted file mode 100644
index e4b6271ba771..000000000000
--- a/net-p2p/transmission/files/transmission-2.41-0003-system-miniupnpc.patch
+++ /dev/null
@@ -1,281 +0,0 @@
-=== modified file 'cli/Makefile.am'
---- cli/Makefile.am 2011-10-19 10:26:45 +0000
-+++ cli/Makefile.am 2011-10-19 10:37:21 +0000
-@@ -18,8 +18,8 @@
-
- transmission_cli_LDADD = \
- $(top_builddir)/libtransmission/libtransmission.a \
-+ @LIBUPNP_LIBS@ \
- $(top_builddir)/third-party/libnatpmp/libnatpmp.a \
-- $(top_builddir)/third-party/miniupnp/libminiupnp.a \
- @DHT_LIBS@ \
- @LIBUTP_LIBS@ \
- @LIBEVENT_LIBS@ \
-
-=== modified file 'configure.ac'
---- configure.ac 2011-10-19 10:36:21 +0000
-+++ configure.ac 2011-10-19 10:37:21 +0000
-@@ -229,6 +229,77 @@
-
- dnl ----------------------------------------------------------------------------
- dnl
-+dnl Allow usage of system miniupnp library
-+LIBUPNP_CFLAGS="-I\$(top_srcdir)/third-party/"
-+LIBUPNP_LIBS="\$(top_builddir)/third-party/miniupnp/libminiupnp.a"
-+LIBUPNP_LIBS_QT="\$\${TRANSMISSION_TOP}/third-party/miniupnp/libminiupnp.a"
-+build_bundled_miniupnp="yes"
-+AC_ARG_ENABLE([external-miniupnp],
-+ AS_HELP_STRING([--enable-external-miniupnp],[Use system external-miniupnp]),
-+ [want_external_miniupnp=${enableval}],
-+ [want_external_miniupnp=no])
-+if test "x$want_external_miniupnp" != "xno" ; then
-+ AC_DEFINE([SYSTEM_MINIUPNP])
-+ ac_save_LIBS="$LIBS"
-+ LIBS="-lminiupnpc"
-+ # Check miniupnp 1.5
-+ AC_TRY_LINK([
-+ #include <stdlib.h>
-+ #include <miniupnpc/miniupnpc.h>
-+ #include <miniupnpc/upnpcommands.h>
-+ ],[
-+ struct UPNPDev * devlist;
-+ struct UPNPUrls urls;
-+ struct IGDdatas data;
-+ char lanaddr[16];
-+ char portStr[8];
-+ char intPort[8];
-+ char intClient[16];
-+ upnpDiscover( 2000, NULL, NULL, 0 );
-+ UPNP_GetValidIGD( devlist, &urls, &data, lanaddr, sizeof( lanaddr ) );
-+ UPNP_GetSpecificPortMappingEntry( urls.controlURL, data.first.servicetype,
-+ portStr, "TCP", intClient, intPort );
-+ ],[
-+ AC_DEFINE(HAVE_MINIUPNP_15, 1, [Define to 1 if you have miniupnpc version 1.5])
-+ build_bundled_miniupnp="no"])
-+
-+ # Check miniupnp 1.6
-+ AC_TRY_LINK([
-+ #include <stdlib.h>
-+ #include <errno.h>
-+ #include <miniupnpc/miniupnpc.h>
-+ #include <miniupnpc/upnpcommands.h>
-+ ],[
-+ struct UPNPDev * devlist;
-+ struct UPNPUrls urls;
-+ struct IGDdatas data;
-+ char lanaddr[16];
-+ char portStr[8];
-+ char intPort[8];
-+ char intClient[16];
-+ upnpDiscover( 2000, NULL, NULL, 0, 0, &errno );
-+ UPNP_GetValidIGD( devlist, &urls, &data, lanaddr, sizeof( lanaddr ) );
-+ UPNP_GetSpecificPortMappingEntry( urls.controlURL, data.first.servicetype,
-+ portStr, "TCP", intClient, intPort, NULL, NULL, NULL );
-+ ],[
-+ AC_DEFINE(HAVE_MINIUPNP_16, 1, [Define to 1 if you have miniupnpc version 1.6])
-+ build_bundled_miniupnp="no"])
-+
-+ if test "x$build_bundled_miniupnp" = "xno" ; then
-+ LIBUPNP_CFLAGS=""
-+ LIBUPNP_LIBS="-lminiupnpc"
-+ LIBUPNP_LIBS_QT="-lminiupnpc"
-+ else
-+ AC_MSG_ERROR("Requested system libminiupnp but it is not found")
-+ fi
-+ LIBS="$ac_save_LIBS"
-+fi
-+AM_CONDITIONAL([BUILD_MINIUPNP],[test "x$build_bundled_miniupnp" = "xyes"])
-+AC_SUBST(LIBUPNP_CFLAGS)
-+AC_SUBST(LIBUPNP_LIBS)
-+AC_SUBST(LIBUPNP_LIBS_QT)
-+dnl ----------------------------------------------------------------------------
-+dnl
- dnl detection for the GTK+ client
-
- PKG_CHECK_MODULES(GTK,
-@@ -401,7 +472,7 @@
- libtransmission/Makefile
- utils/Makefile
- third-party/Makefile
-- third-party/miniupnp/Makefile
-+ third-party/miniupnp/Makefile
- third-party/libnatpmp/Makefile
- third-party/libutp/Makefile
- third-party/dht/Makefile
-
-=== modified file 'daemon/Makefile.am'
---- daemon/Makefile.am 2011-10-19 10:26:45 +0000
-+++ daemon/Makefile.am 2011-10-19 10:37:21 +0000
-@@ -20,7 +20,7 @@
-
- LDADD = \
- $(top_builddir)/libtransmission/libtransmission.a \
-- $(top_builddir)/third-party/miniupnp/libminiupnp.a \
-+ @LIBUPNP_LIBS@ \
- $(top_builddir)/third-party/libnatpmp/libnatpmp.a \
- @DHT_LIBS@ \
- @LIBUTP_LIBS@ \
-
-=== modified file 'gtk/Makefile.am'
---- gtk/Makefile.am 2011-10-19 10:26:45 +0000
-+++ gtk/Makefile.am 2011-10-19 10:37:21 +0000
-@@ -84,7 +84,7 @@
-
- transmission_gtk_LDADD = \
- $(top_builddir)/libtransmission/libtransmission.a \
-- $(top_builddir)/third-party/miniupnp/libminiupnp.a \
-+ @LIBUPNP_LIBS@ \
- $(top_builddir)/third-party/libnatpmp/libnatpmp.a \
- @DHT_LIBS@ \
- @LIBUTP_LIBS@ \
-
-=== modified file 'libtransmission/Makefile.am'
---- libtransmission/Makefile.am 2011-10-19 10:26:45 +0000
-+++ libtransmission/Makefile.am 2011-10-19 10:37:21 +0000
-@@ -8,6 +8,7 @@
- AM_CFLAGS = \
- @DHT_CFLAGS@ \
- @LIBUTP_CFLAGS@ \
-+ @LIBUPNP_CFLAGS@ \
- @LIBEVENT_CFLAGS@ \
- @LIBCURL_CFLAGS@ \
- @OPENSSL_CFLAGS@ \
-@@ -139,7 +140,7 @@
-
- apps_ldadd = \
- ./libtransmission.a \
-- $(top_builddir)/third-party/miniupnp/libminiupnp.a \
-+ @LIBUPNP_LIBS@ \
- $(top_builddir)/third-party/libnatpmp/libnatpmp.a \
- @INTLLIBS@ \
- @DHT_LIBS@ \
-
-=== modified file 'libtransmission/upnp.c'
---- libtransmission/upnp.c 2011-10-19 10:26:45 +0000
-+++ libtransmission/upnp.c 2011-10-19 10:37:21 +0000
-@@ -13,8 +13,13 @@
- #include <assert.h>
- #include <errno.h>
-
-+#ifdef SYSTEM_MINIUPNP
-+#include <miniupnpc/miniupnpc.h>
-+#include <miniupnpc/upnpcommands.h>
-+#else
- #include <miniupnp/miniupnpc.h>
- #include <miniupnp/upnpcommands.h>
-+#endif
-
- #include "transmission.h"
- #include "port-forwarding.h"
-@@ -97,7 +102,12 @@
- {
- struct UPNPDev * devlist;
- errno = 0;
-- devlist = upnpDiscover( 2000, NULL, NULL, 0, 0, &errno );
-+#ifdef HAVE_MINIUPNP_16
-+ devlist = upnpDiscover( 2000, NULL, NULL, 0, 0, &errno );
-+#else
-+ devlist = upnpDiscover( 2000, NULL, NULL, 0 );
-+#endif
-+
- if( devlist == NULL )
- {
- tr_ndbg(
-@@ -144,9 +154,17 @@
-
- tr_snprintf( portStr, sizeof( portStr ), "%d", handle->port );
- if( UPNP_GetSpecificPortMappingEntry( handle->urls.controlURL, handle->data.first.servicetype,
-- portStr, "TCP", intClient, intPort, NULL, NULL, NULL ) != UPNPCOMMAND_SUCCESS ||
-+#ifdef HAVE_MINIUPNP_16
-+ portStr, "TCP", intClient, intPort, NULL, NULL, NULL ) != UPNPCOMMAND_SUCCESS ||
-+#else
-+ portStr, "TCP", intClient, intPort ) != UPNPCOMMAND_SUCCESS ||
-+#endif
- UPNP_GetSpecificPortMappingEntry( handle->urls.controlURL, handle->data.first.servicetype,
-+#ifdef HAVE_MINIUPNP_16
- portStr, "UDP", intClient, intPort, NULL, NULL, NULL ) != UPNPCOMMAND_SUCCESS )
-+#else
-+ portStr, "UDP", intClient, intPort ) != UPNPCOMMAND_SUCCESS )
-+#endif
- {
- tr_ninf( getKey( ), _( "Port %d isn't forwarded" ), handle->port );
- handle->isMapped = false;
-@@ -198,7 +216,11 @@
- err_tcp = UPNP_AddPortMapping( handle->urls.controlURL,
- handle->data.first.servicetype,
- portStr, portStr, handle->lanaddr,
-+#ifdef HAVE_MINIUPNP_16
- desc, "TCP", NULL, NULL );
-+#else
-+ desc, "TCP", NULL );
-+#endif
- if( err_tcp )
- tr_ndbg( getKey( ), "TCP Port forwarding failed with error %d (errno %d - %s)",
- err_tcp, errno, tr_strerror( errno ) );
-@@ -207,7 +229,11 @@
- err_udp = UPNP_AddPortMapping( handle->urls.controlURL,
- handle->data.first.servicetype,
- portStr, portStr, handle->lanaddr,
-+#ifdef HAVE_MINIUPNP_16
- desc, "UDP", NULL, NULL );
-+#else
-+ desc, "UDP", NULL );
-+#endif
- if( err_udp )
- tr_ndbg( getKey( ), "UDP Port forwarding failed with error %d (errno %d - %s)",
- err_udp, errno, tr_strerror( errno ) );
-
-=== modified file 'qt/config.in'
---- qt/config.in 2011-10-19 10:36:21 +0000
-+++ qt/config.in 2011-10-19 10:37:01 +0000
-@@ -1,1 +1,3 @@
- LIBUTP_LIBS = @LIBUTP_LIBS_QT@
-+MINIUPNP_LIBS = @LIBUPNP_LIBS_QT@
-+
-
-=== modified file 'qt/qtr.pro'
---- qt/qtr.pro 2011-10-19 10:36:21 +0000
-+++ qt/qtr.pro 2011-10-19 10:37:26 +0000
-@@ -23,7 +23,7 @@
- LIBS += $${TRANSMISSION_TOP}/libtransmission/libtransmission.a
- LIBS += $${LIBUTP_LIBS}
- LIBS += $${TRANSMISSION_TOP}/third-party/dht/libdht.a
--LIBS += $${TRANSMISSION_TOP}/third-party/miniupnp/libminiupnp.a
-+LIBS += $${MINIUPNP_LIBS}
- LIBS += $${TRANSMISSION_TOP}/third-party/libnatpmp/libnatpmp.a
- unix: LIBS += -L$${EVENT_TOP}/lib -lz -lrt
- win32:DEFINES += QT_DBUS
-
-=== modified file 'third-party/Makefile.am'
---- third-party/Makefile.am 2011-10-19 10:26:45 +0000
-+++ third-party/Makefile.am 2011-10-19 10:37:26 +0000
-@@ -1,11 +1,14 @@
- if BUILD_UTP
- UTP_DIR = libutp
- endif
-+if BUILD_MINIUPNP
-+ MINIUPNP_DIR = miniupnp
-+endif
-
- SUBDIRS = \
- dht \
- libnatpmp \
-- miniupnp \
-+ $(MINIUPNP_DIR) \
- $(UTP_DIR)
-
- EXTRA_DIST = \
-
-=== modified file 'utils/Makefile.am'
---- utils/Makefile.am 2011-10-19 10:26:45 +0000
-+++ utils/Makefile.am 2011-10-19 10:37:26 +0000
-@@ -26,7 +26,7 @@
-
- transmission_create_LDADD = \
- $(top_builddir)/libtransmission/libtransmission.a \
-- $(top_builddir)/third-party/miniupnp/libminiupnp.a \
-+ @LIBUPNP_LIBS@ \
- $(top_builddir)/third-party/libnatpmp/libnatpmp.a \
- @INTLLIBS@ \
- @DHT_LIBS@ \
-
diff --git a/net-p2p/transmission/files/transmission-2.41-noutp.patch b/net-p2p/transmission/files/transmission-2.41-noutp.patch
deleted file mode 100644
index 141102162809..000000000000
--- a/net-p2p/transmission/files/transmission-2.41-noutp.patch
+++ /dev/null
@@ -1,14 +0,0 @@
---- third-party/libutp/utypes.h.orig Wed Sep 28 19:46:15 2011
-+++ third-party/libutp/utypes.h Wed Sep 28 19:47:06 2011
-@@ -36,7 +36,11 @@ typedef const char * cstr;
- typedef char * str;
-
- #ifndef __cplusplus
-+#ifdef HAVE_STDBOOL_H
-+#include <stdbool.h>
-+#else
- typedef uint8 bool;
-+#endif
- #endif
-
- #endif //__UTYPES_H__
diff --git a/net-p2p/transmission/transmission-2.41.ebuild b/net-p2p/transmission/transmission-2.41.ebuild
deleted file mode 100644
index cc3a7bd1f211..000000000000
--- a/net-p2p/transmission/transmission-2.41.ebuild
+++ /dev/null
@@ -1,161 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/transmission-2.41.ebuild,v 1.5 2012/01/03 07:59:40 scarabeus Exp $
-
-EAPI=4
-inherit eutils fdo-mime gnome2-utils qt4-r2 autotools
-
-MY_P="${P/_beta/b}"
-
-DESCRIPTION="A Fast, Easy and Free BitTorrent client"
-HOMEPAGE="http://www.transmissionbt.com/"
-SRC_URI="http://download.transmissionbt.com/${PN}/files/${MY_P}.tar.xz"
-
-LICENSE="MIT GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="gtk kde nls qt4 utp"
-
-RDEPEND="
- >=dev-libs/libevent-2.0.10
- >=dev-libs/openssl-0.9.4
- >=net-misc/curl-7.16.3[ssl]
- >=net-libs/miniupnpc-1.6
- sys-libs/zlib
- gtk? (
- >=dev-libs/dbus-glib-0.70
- >=dev-libs/glib-2.28:2
- >=x11-libs/gtk+-2.22:2
- )
- qt4? ( x11-libs/qt-gui:4[dbus] )"
-DEPEND="${RDEPEND}
- dev-util/intltool
- dev-util/pkgconfig
- sys-apps/sed
- sys-devel/gettext
- >=sys-devel/libtool-2.2.6b
- nls? (
- >=dev-util/intltool-0.40
- sys-devel/gettext
- )"
-# Intltool/gettext are required as far as we eautoreconf for
-# its autotools macros.
-# If the source is not eautoreconfed we can keep it in nls.
-
-S="${WORKDIR}/${MY_P}"
-
-REQUIRED_USE="gtk? ( nls )"
-
-DOCS="AUTHORS NEWS qt/README.txt"
-
-pkg_setup() {
- enewgroup transmission
- enewuser transmission -1 -1 -1 transmission
-}
-
-src_prepare() {
- # https://trac.transmissionbt.com/ticket/4323
- epatch "${FILESDIR}/${PN}-2.33-0001-configure.ac.patch"
- epatch "${FILESDIR}/${PN}-2.33-0002-config.in-4-qt.pro.patch"
- epatch "${FILESDIR}/${P}-0003-system-miniupnpc.patch"
-
- # Fix build failure with USE=-utp, bug #290737
- epatch "${FILESDIR}/${P}-noutp.patch"
-
- # Upstream is not interested in this: https://trac.transmissionbt.com/ticket/4324
- sed -e 's|noinst\(_PROGRAMS = $(TESTS)\)|check\1|' -i libtransmission/Makefile.am || die
-
- eautoreconf
-
- sed -i -e 's:-ggdb3::g' configure || die
- # Magnet link support
- if use kde; then
- cat > qt/transmission-magnet.protocol <<-EOF
- [Protocol]
- exec=transmission-qt '%u'
- protocol=magnet
- Icon=transmission
- input=none
- output=none
- helper=true
- listing=
- reading=false
- writing=false
- makedir=false
- deleting=false
- EOF
- fi
-}
-
-src_configure() {
- # cli and daemon doesn't have external deps and are enabled by default
- econf \
- $(use_enable nls) \
- $(use_enable utp) \
- $(use_enable gtk) \
- --enable-external-miniupnp
-
- use qt4 && cd qt && eqmake4 qtr.pro
-}
-
-src_compile() {
- emake
- use qt4 && cd qt && emake
-}
-
-src_install() {
- default
-
- rm -f "${ED}"/usr/share/${PN}/web/LICENSE
-
- newinitd "${FILESDIR}"/${PN}-daemon.initd.8 ${PN}-daemon
- newconfd "${FILESDIR}"/${PN}-daemon.confd.3 ${PN}-daemon
-
- keepdir /var/{transmission/{config,downloads},log/transmission}
- fowners -R transmission:transmission /var/{transmission/{,config,downloads},log/transmission}
-
- if use qt4; then
- cd qt
- emake INSTALL_ROOT="${D}/usr" install
- insinto /usr/share/applications/
- doins transmission-qt.desktop
- mv icons/transmission{,-qt}.png
- doicon icons/transmission-qt.png
- if use kde; then
- insinto /usr/share/kde4/services/
- doins transmission-magnet.protocol
- fi
- fi
-}
-
-pkg_preinst() {
- gnome2_icon_savelist
-}
-
-pkg_postinst() {
- fdo-mime_desktop_database_update
- gnome2_icon_cache_update
-
- ewarn "If you use transmission-daemon, please, set 'rpc-username' and"
- ewarn "'rpc-password' (in plain text, transmission-daemon will hash it on"
- ewarn "start) in settings.json file located at /var/transmission/config or"
- ewarn "any other appropriate config directory."
- elog
- elog "To enable sound emerge media-libs/libcanberra and check that at least"
- elog "some sound them is selected. For this go:"
- elog "Gnome/system/preferences/sound themes tab and 'sound theme: default'"
- elog
- if use utp; then
- ewarn
- ewarn "Since uTP is enabled ${PN} needs large kernel buffers for the UDP socket."
- ewarn "Please, add into /etc/sysctl.conf following lines:"
- ewarn " net.core.rmem_max = 4194304"
- ewarn " net.core.wmem_max = 1048576"
- ewarn "and run sysctl -p"
- fi
-}
-
-pkg_postrm() {
- fdo-mime_desktop_database_update
- gnome2_icon_cache_update
-}
diff --git a/net-p2p/transmission/transmission-2.50.ebuild b/net-p2p/transmission/transmission-2.50.ebuild
deleted file mode 100644
index a3dd70ffb79d..000000000000
--- a/net-p2p/transmission/transmission-2.50.ebuild
+++ /dev/null
@@ -1,166 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/transmission-2.50.ebuild,v 1.2 2012/03/01 23:42:33 ssuominen Exp $
-
-EAPI=4
-LANGS="en es kk lt pt_BR ru"
-inherit autotools eutils fdo-mime gnome2-utils qt4-r2
-
-DESCRIPTION="A Fast, Easy and Free BitTorrent client"
-HOMEPAGE="http://www.transmissionbt.com/"
-SRC_URI="http://download.transmissionbt.com/${PN}/files/${P}.tar.xz"
-
-LICENSE="GPL-2 MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
-IUSE="ayatana gtk kde nls qt4 xfs"
-
-# net-libs/libnatpmp, see src_configure() switch for temporary build problem
-RDEPEND="
- >=dev-libs/libevent-2.0.10
- dev-libs/openssl:0
- >=net-libs/miniupnpc-1.6
- >=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+-3.2:3
- ayatana? ( dev-libs/libappindicator:3 )
- )
- qt4? (
- x11-libs/qt-core:4
- x11-libs/qt-gui:4[dbus]
- )"
-
-DEPEND="${RDEPEND}
- dev-util/intltool
- dev-util/pkgconfig
- sys-devel/gettext
- virtual/os-headers
- nls? (
- >=dev-util/intltool-0.40
- sys-devel/gettext
- )
- xfs? ( sys-fs/xfsprogs )"
-# note: gettext is always a depend with eautoreconf
-
-REQUIRED_USE="
- ayatana? ( gtk )
- kde? ( qt4 )"
-
-DOCS="AUTHORS NEWS qt/README.txt"
-
-pkg_setup() {
- enewgroup ${PN}
- enewuser ${PN} -1 -1 -1 ${PN}
-}
-
-src_prepare() {
- sed -i -e '/CFLAGS/s:-ggdb3::' configure.ac
- use ayatana || sed -i -e '/^LIBAPPINDICATOR_MINIMUM/s:=.*:=9999:' configure.ac
-
- # http://trac.transmissionbt.com/ticket/4324
- sed -i -e 's|noinst\(_PROGRAMS = $(TESTS)\)|check\1|' lib${PN}/Makefile.am || die
-
- eautoreconf
-
- if use kde; then
- cat <<-EOF > "${T}"/${PN}-magnet.protocol
- [Protocol]
- exec=transmission-qt '%u'
- protocol=magnet
- Icon=transmission
- input=none
- output=none
- helper=true
- listing=
- reading=false
- writing=false
- makedir=false
- deleting=false
- EOF
- fi
-}
-
-src_configure() {
- export ac_cv_header_xfs_xfs_h=$(usex xfs)
-
- econf \
- --disable-external-natpmp \
- $(use_enable nls) \
- $(use_with gtk)
-
- use qt4 && cd qt && eqmake4 qtr.pro
-}
-
-src_compile() {
- emake
- use qt4 && cd qt && emake
-}
-
-src_install() {
- default
-
- rm -f "${ED}"/usr/share/${PN}/web/LICENSE
-
- newinitd "${FILESDIR}"/${PN}-daemon.initd.8 ${PN}-daemon
- newconfd "${FILESDIR}"/${PN}-daemon.confd.3 ${PN}-daemon
-
- keepdir /var/{transmission/{config,downloads},log/transmission}
- fowners -R transmission:transmission /var/{transmission/{,config,downloads},log/transmission}
-
- if use qt4; then
- pushd qt >/dev/null
- emake INSTALL_ROOT="${D}"/usr install
-
- domenu ${PN}-qt.desktop
- doicon icons/${PN}-qt.png
-
- if use nls; then
- insinto /usr/share/qt4/translations
- local lang
- for lang in ${LANGS}; do
- if use linguas_${lang}; then
- lrelease translations/${PN}_${lang}.ts || die
- doins translations/${PN}_${lang}.qm
- fi
- done
- fi
-
- if use kde; then
- insinto /usr/share/kde4/services
- doins "${T}"/${PN}-magnet.protocol
- fi
- popd >/dev/null
- fi
-}
-
-pkg_preinst() {
- gnome2_icon_savelist
-}
-
-pkg_postinst() {
- fdo-mime_desktop_database_update
- gnome2_icon_cache_update
-
- ewarn "If you use transmission-daemon, please, set 'rpc-username' and"
- ewarn "'rpc-password' (in plain text, transmission-daemon will hash it on"
- ewarn "start) in settings.json file located at /var/transmission/config or"
- ewarn "any other appropriate config directory."
- elog
- elog "To enable sound emerge media-libs/libcanberra and check that at least"
- elog "some sound them is selected. For this go:"
- elog "Gnome/system/preferences/sound themes tab and 'sound theme: default'"
- elog
- ewarn "Since uTP is enabled ${PN} needs large kernel buffers for the UDP socket."
- ewarn "Please, add into /etc/sysctl.conf following lines:"
- ewarn " net.core.rmem_max = 4194304"
- ewarn " net.core.wmem_max = 1048576"
- ewarn "and run sysctl -p"
-}
-
-pkg_postrm() {
- fdo-mime_desktop_database_update
- gnome2_icon_cache_update
-}