Depending gettext makes the package unavailable on uclibc and its not necessary.
Created attachment 152075 [details] transmission-1.11.ebuild The ebuild also removes a hardcoded -O3 -funroll-loops (the sed stuff) --- transmission-1.11.ebuild.orig 2008-05-06 08:33:07 +0000 +++ transmission-1.11.ebuild 2008-05-06 08:30:30 +0000 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/transmission-1.11.ebuild,v 1.1 2008/04/20 04:32:38 compnerd Exp $ -inherit autotools eutils +inherit autotools eutils flag-o-matic DESCRIPTION="Simple BitTorrent client" HOMEPAGE="http://www.transmissionbt.com/" @@ -11,22 +11,27 @@ LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" -IUSE="gtk libnotify" +IUSE="gtk libnotify nls" RDEPEND=">=dev-libs/glib-2.16 >=dev-libs/openssl-0.9.8 gtk? ( >=x11-libs/gtk+-2.6 ) libnotify? ( >=x11-libs/libnotify-0.4.4 )" DEPEND="${RDEPEND} - sys-devel/gettext + nls? ( sys-devel/gettext ) >=dev-util/pkgconfig-0.19 gtk? ( >=dev-util/intltool-0.35 )" src_unpack() { unpack ${A} cd "${S}" - + epatch "${FILESDIR}/transmission-1.11-libnotify-option.patch" + # builds without NLS if the macro _() is defined. + use nls || append-flags -D"_\(a\)=\(a\)" + sed -e 's:CFLAGS=.*:CFLAGS="${CFLAGS}":' \ + -e 's:CXXFLAGS=.*:CXXFLAGS="${CXXFLAGS}":' \ + -i ${S}/configure.ac AT_M4DIR="${S}/m4" eautoreconf }
Patch is also submitted upstream to support proper --disable-nls configure options rather than adding a _() define to CFLAGS. http://trac.transmissionbt.com/ticket/916
Id rather get this fixed properly from upstream.
fwiw, seems like gettext is not needed for 1.20.
reopening bug. The 1.20 ebuild should not depend on gettext. It works just fine without. The glib dependency should only be there if USE=gtk. fixing those issues and it compiles like a charm on uclibc (-nls).
Created attachment 153043 [details] transmission-1.20.ebuild --- transmission-1.20.ebuild.orig 2008-05-13 12:49:20 +0000 +++ transmission-1.20.ebuild 2008-05-13 12:46:36 +0000 @@ -13,12 +13,11 @@ KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" IUSE="gtk libnotify" -RDEPEND=">=dev-libs/glib-2.16 +RDEPEND="gtk? ( >=dev-libs/glib-2.16 ) >=dev-libs/openssl-0.9.8 gtk? ( >=x11-libs/gtk+-2.6 ) libnotify? ( >=x11-libs/libnotify-0.4.4 )" DEPEND="${RDEPEND} - sys-devel/gettext >=dev-util/pkgconfig-0.19 gtk? ( >=dev-util/intltool-0.35 )"
Created attachment 154665 [details] transmission-daemon.initd My local overlay includes an init.d and conf.d script and works on uclibc. I'm dumping what I got in case there would be any interest in supporting uclibc in main gentoo tree.
Created attachment 154667 [details] transmission-daemon.confd
Created attachment 154669 [details] transmission-1.20.ebuild The configure script will detect and use gettext if its there so the dependency is not needed anymore. This ebuild also sets up a transmission user to be used for the transmission-daemon. --- /usr/portage/net-p2p/transmission/transmission-1.20.ebuild 2008-05-13 02:54:27 +0000 +++ /usr/alpine-portage/net-p2p/transmission/transmission-1.20.ebuild 2008-05-19 12:02:30 +0000 @@ -13,23 +13,40 @@ KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" IUSE="gtk libnotify" -RDEPEND=">=dev-libs/glib-2.16 +RDEPEND="gtk? ( >=dev-libs/glib-2.16 ) >=dev-libs/openssl-0.9.8 gtk? ( >=x11-libs/gtk+-2.6 ) libnotify? ( >=x11-libs/libnotify-0.4.4 )" DEPEND="${RDEPEND} - sys-devel/gettext >=dev-util/pkgconfig-0.19 gtk? ( >=dev-util/intltool-0.35 )" src_compile() { - econf $(use_with gtk) $(use_enable libnotify) --with-wx-config=no || die "configure failed" + econf \ + $(use_with gtk) \ + $(use_enable libnotify) \ + --with-wx-config=no || die "configure failed" emake || die "build failed" } src_install() { make DESTDIR="${D}" install || die "install failed" dodoc AUTHORS NEWS + keepdir /var/run/transmission + fperms 0750 /var/run/transmission + fowners transmission:transmission /var/run/transmission - doinitd "${FILESDIR}/transmission-daemon" + keepdir /var/lib/transmission + fperms 0770 /var/lib/transmission + fowners transmission:transmission /var/lib/transmission + + newinitd "${FILESDIR}/transmission-daemon.initd" transmission-daemon + newconfd "${FILESDIR}/transmission-daemon.confd" transmission-daemon +} + +pkg_setup() { + enewgroup transmission + enewuser transmission -1 -1 /var/lib/transmission transmission } + +
(In reply to comment #9) > The configure script will detect and use gettext if its there so the dependency > is not needed anymore. Sorry but that's just wrong. Either it needs to depend on it unconditionally or one needs to fix build-system to support --enable/--disable-nls. http://www.gentoo.org/proj/en/qa/automagic.xml
(In reply to comment #10) > (In reply to comment #9) > > The configure script will detect and use gettext if its there so the dependency > > is not needed anymore. > > Sorry but that's just wrong. Either it needs to depend on it unconditionally or > one needs to fix build-system to support --enable/--disable-nls. > > http://www.gentoo.org/proj/en/qa/automagic.xml > hm... well, it builds just fine without gettext so saying that it is required is not any better. What about this: DEPEND="gtk? ( sys-devel/gettext ) ..." Upstream won't do --enable/--disable-nls because current behaviour WORKSFORTHEM http://trac.transmissionbt.com/ticket/916
They did not say that at all. What they said is that the patch still needs work. Marking as WONTFIX again.