From 5d45c75941a5fd40b933e9f9d04d9dc9f25dcaf6 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Wed, 16 Mar 2016 13:03:24 -0400 Subject: net-p2p/transmission: Fix building against recent libsystemd Package-Manager: portage-2.2.28_p60 --- net-p2p/transmission/files/libsystemd.patch | 11 +++++++++++ net-p2p/transmission/transmission-2.92.ebuild | 8 ++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 net-p2p/transmission/files/libsystemd.patch (limited to 'net-p2p/transmission') diff --git a/net-p2p/transmission/files/libsystemd.patch b/net-p2p/transmission/files/libsystemd.patch new file mode 100644 index 000000000000..5db47ef39bd9 --- /dev/null +++ b/net-p2p/transmission/files/libsystemd.patch @@ -0,0 +1,11 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -245,7 +245,7 @@ + [Add support for systemd startup notification (default is autodetected)]), + [USE_SYSTEMD_DAEMON=$withval], [USE_SYSTEMD_DAEMON=auto]) + AS_IF([test "x$USE_SYSTEMD_DAEMON" != "xno"], [ +- PKG_CHECK_MODULES([SYSTEMD_DAEMON], [libsystemd-daemon], ++ PKG_CHECK_MODULES([SYSTEMD_DAEMON], [libsystemd], + [AC_DEFINE(USE_SYSTEMD_DAEMON,1,[Use systemd startup notification])], + [AS_IF([test "x$USE_SYSTEMD_DAEMON" = "xyes"], + [AC_MSG_ERROR([systemd startup notification support requested, but libsystemd-daemon not found.])] diff --git a/net-p2p/transmission/transmission-2.92.ebuild b/net-p2p/transmission/transmission-2.92.ebuild index 96c12efa4813..68a80b363dd9 100644 --- a/net-p2p/transmission/transmission-2.92.ebuild +++ b/net-p2p/transmission/transmission-2.92.ebuild @@ -30,7 +30,7 @@ RDEPEND=">=dev-libs/libevent-2.0.10:= >=x11-libs/gtk+-3.4:3= ayatana? ( >=dev-libs/libappindicator-0.4.90:3= ) ) - systemd? ( sys-apps/systemd:= ) + systemd? ( >=sys-apps/systemd-209:= ) qt4? ( dev-qt/qtcore:4 dev-qt/qtgui:4 @@ -56,6 +56,10 @@ REQUIRED_USE="ayatana? ( gtk ) ?? ( qt4 qt5 )" DOCS="AUTHORS NEWS qt/README.txt" +PATCHES=( + "${FILESDIR}"/libsystemd.patch +) + src_prepare() { sed -i -e '/CFLAGS/s:-ggdb3::' configure.ac || die @@ -68,7 +72,7 @@ src_prepare() { # http://trac.transmissionbt.com/ticket/4324 sed -i -e 's|noinst\(_PROGRAMS = $(TESTS)\)|check\1|' libtransmission/Makefile.am || die - eapply_user + default eautoreconf } -- cgit v1.2.3-65-gdbad