summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2012-03-02 09:30:04 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2012-03-02 09:30:04 +0000
commit6735dc99ad19a778338499f835c0932ce238eda5 (patch)
tree81c389190b040bad69460d70e1b02435df586aa1 /net-p2p
parentVersion bump subvertpy to 0.8.10. (diff)
downloadgentoo-2-6735dc99ad19a778338499f835c0932ce238eda5.tar.gz
gentoo-2-6735dc99ad19a778338499f835c0932ce238eda5.tar.bz2
gentoo-2-6735dc99ad19a778338499f835c0932ce238eda5.zip
a lot of minor changes, check changelog for hightlights
(Portage version: 2.2.0_alpha89/cvs/Linux x86_64)
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/transmission/ChangeLog8
-rw-r--r--net-p2p/transmission/metadata.xml3
-rw-r--r--net-p2p/transmission/transmission-2.50-r1.ebuild92
3 files changed, 60 insertions, 43 deletions
diff --git a/net-p2p/transmission/ChangeLog b/net-p2p/transmission/ChangeLog
index 45f8f0b5fdea..be6a364f81db 100644
--- a/net-p2p/transmission/ChangeLog
+++ b/net-p2p/transmission/ChangeLog
@@ -1,6 +1,12 @@
# 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.176 2012/03/02 03:13:45 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/ChangeLog,v 1.177 2012/03/02 09:30:04 ssuominen Exp $
+
+ 02 Mar 2012; Samuli Suominen <ssuominen@gentoo.org>
+ transmission-2.50-r1.ebuild, metadata.xml:
+ Remove USE="kde" and always install transmission-magnet.protocol file.
+ USE="lightweight" for low-resource systems. Run lrelease in compile phase
+ instead of install phase.
02 Mar 2012; Samuli Suominen <ssuominen@gentoo.org>
-files/transmission-2.33-0001-configure.ac.patch,
diff --git a/net-p2p/transmission/metadata.xml b/net-p2p/transmission/metadata.xml
index 74ec7cf46ebd..151c89518c8e 100644
--- a/net-p2p/transmission/metadata.xml
+++ b/net-p2p/transmission/metadata.xml
@@ -12,6 +12,7 @@
</maintainer>
<use>
<flag name='libcanberra'>Enable sound event support with <pkg>media-libs/libcanberra</pkg></flag>
- <flag name='xfs'>Use <pkg>sys-fs/xfsprogs</pkg> headers in building of fdlimit(.c)</flag>
+ <flag name='lightweight'>Optimize transmission for low-resource systems (smaller cache size, prefer unencrypted peer connections, etc.)</flag>
+ <flag name='xfs'>Enable XFS filesystem capabilities by using <pkg>sys-fs/xfsprogs</pkg> headers (in building of fdlimit(.c))</flag>
</use>
</pkgmetadata>
diff --git a/net-p2p/transmission/transmission-2.50-r1.ebuild b/net-p2p/transmission/transmission-2.50-r1.ebuild
index 532666caf027..550667826609 100644
--- a/net-p2p/transmission/transmission-2.50-r1.ebuild
+++ b/net-p2p/transmission/transmission-2.50-r1.ebuild
@@ -1,6 +1,6 @@
# 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-r1.ebuild,v 1.1 2012/03/02 03:10:04 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/transmission-2.50-r1.ebuild,v 1.2 2012/03/02 09:30:04 ssuominen Exp $
EAPI=4
LANGS="en es kk lt pt_BR ru"
@@ -13,7 +13,7 @@ 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"
+IUSE="ayatana gtk lightweight nls qt4 xfs"
RDEPEND="
>=dev-libs/libevent-2.0.10
@@ -33,21 +33,21 @@ RDEPEND="
x11-libs/qt-gui:4[dbus]
)"
-DEPEND="${RDEPEND}
+EAUTORECONF_DEPEND="
dev-util/intltool
+ sys-devel/gettext"
+
+DEPEND="${RDEPEND}
+ ${EAUTORECONF_DEPEND}
dev-util/pkgconfig
- sys-devel/gettext
virtual/os-headers
nls? (
- >=dev-util/intltool-0.40
+ dev-util/intltool
sys-devel/gettext
)
xfs? ( sys-fs/xfsprogs )"
-# note: gettext is always a depend with eautoreconf
-REQUIRED_USE="
- ayatana? ( gtk )
- kde? ( qt4 )"
+REQUIRED_USE="ayatana? ( gtk )"
DOCS="AUTHORS NEWS qt/README.txt"
@@ -57,7 +57,7 @@ pkg_setup() {
}
src_prepare() {
- epatch "${FILESDIR}"/${P}-build-with-natpmp1.patch
+ epatch "${FILESDIR}"/${P}-build-with-natpmp1.patch #376647
sed -i -e '/CFLAGS/s:-ggdb3::' configure.ac
use ayatana || sed -i -e '/^LIBAPPINDICATOR_MINIMUM/s:=.*:=9999:' configure.ac
@@ -67,12 +67,12 @@ src_prepare() {
eautoreconf
- if use kde; then
+ if use qt4; then
cat <<-EOF > "${T}"/${PN}-magnet.protocol
[Protocol]
- exec=transmission-qt '%u'
+ exec=${PN}-qt '%u'
protocol=magnet
- Icon=transmission
+ Icon=${PN}
input=none
output=none
helper=true
@@ -91,14 +91,31 @@ src_configure() {
econf \
--enable-external-natpmp \
$(use_enable nls) \
+ $(use_enable lightweight) \
$(use_with gtk)
- use qt4 && cd qt && eqmake4 qtr.pro
+ if use qt4; then
+ pushd qt >/dev/null
+ eqmake4 qtr.pro
+ popd >/dev/null
+ fi
}
src_compile() {
- emake
- use qt4 && cd qt && emake
+ default
+
+ if use qt4; then
+ pushd qt >/dev/null
+ emake
+
+ local l
+ for l in ${LANGS}; do
+ if use linguas_${l}; then
+ lrelease translations/${PN}_${l}.ts
+ fi
+ done
+ popd >/dev/null
+ fi
}
src_install() {
@@ -109,8 +126,8 @@ src_install() {
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}
+ keepdir /var/{${PN}/{config,downloads},log/${PN}}
+ fowners -R ${PN}:${PN} /var/{${PN}/{,config,downloads},log/${PN}}
if use qt4; then
pushd qt >/dev/null
@@ -119,21 +136,18 @@ src_install() {
domenu ${PN}-qt.desktop
doicon icons/${PN}-qt.png
+ insinto /usr/share/kde4/services
+ doins "${T}"/${PN}-magnet.protocol
+
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
+ local l
+ for l in ${LANGS}; do
+ if use linguas_${l}; then
+ doins translations/${PN}_${l}.qm
fi
done
fi
-
- if use kde; then
- insinto /usr/share/kde4/services
- doins "${T}"/${PN}-magnet.protocol
- fi
popd >/dev/null
fi
}
@@ -146,20 +160,16 @@ 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 you use ${PN}-daemon, please, set 'rpc-username' and"
+ elog "'rpc-password' (in plain text, ${PN}-daemon will hash it on"
+ elog "start) in settings.json file located at /var/${PN}/config or"
+ elog "any other appropriate config directory."
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"
+ elog "Since µTP is enabled by default, ${PN} needs large kernel buffers for"
+ elog "the UDP socket. You can append following lines into /etc/sysctl.conf:"
+ elog " net.core.rmem_max = 4194304"
+ elog " net.core.wmem_max = 1048576"
+ elog "and run sysctl -p"
}
pkg_postrm() {