Lines 1-56
Link Here
|
1 |
# Copyright 1999-2009 Gentoo Foundation |
1 |
# Copyright 1999-2009 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/transmission-1.42.ebuild,v 1.4 2009/01/02 21:00:15 ssuominen Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
EAPI=2 |
5 |
EAPI=2 |
6 |
|
6 |
|
7 |
inherit autotools eutils fdo-mime gnome2-utils |
7 |
inherit autotools eutils fdo-mime gnome2-utils |
8 |
|
8 |
|
9 |
DESCRIPTION="A Fast, Easy and Free BitTorrent client" |
9 |
DESCRIPTION="BitTorrent client" |
10 |
HOMEPAGE="http://www.transmissionbt.com" |
10 |
HOMEPAGE="http://www.transmissionbt.com/" |
11 |
SRC_URI="http://download.${PN}bt.com/${PN}/files/${P}.tar.bz2" |
11 |
SRC_URI="http://mirrors.m0k.org/transmission/files/${P}.tar.bz2" |
12 |
|
12 |
|
13 |
LICENSE="MIT GPL-2" |
13 |
LICENSE="MIT GPL-2" |
14 |
SLOT="0" |
14 |
SLOT="0" |
15 |
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" |
15 |
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" |
16 |
IUSE="gtk libnotify" |
16 |
IUSE="gtk libnotify" |
17 |
|
17 |
|
18 |
RDEPEND=">=dev-libs/openssl-0.9.4 |
18 |
RDEPEND="|| ( >=net-misc/curl-7.16.3[ssl] >=net-misc/curl-7.16.3[gnutls] ) |
19 |
|| ( >=net-misc/curl-7.16.3[ssl] >=net-misc/curl-7.16.3[gnutls] ) |
19 |
>=dev-libs/openssl-0.9.8 |
20 |
gtk? ( >=dev-libs/glib-2.15.5 |
20 |
gtk? ( >=dev-libs/glib-2.16 |
21 |
>=x11-libs/gtk+-2.6 |
21 |
>=x11-libs/gtk+-2.6 |
22 |
>=dev-libs/dbus-glib-0.70 |
22 |
>=dev-libs/dbus-glib-0.70 |
23 |
libnotify? ( >=x11-libs/libnotify-0.4.4 ) )" |
23 |
libnotify? ( >=x11-libs/libnotify-0.4.3 ) )" |
24 |
DEPEND="${RDEPEND} |
24 |
DEPEND="${RDEPEND} |
25 |
sys-devel/gettext |
25 |
sys-devel/gettext |
26 |
dev-util/intltool |
26 |
>=dev-util/pkgconfig-0.19 |
27 |
dev-util/pkgconfig" |
27 |
>=dev-util/intltool-0.35" |
28 |
|
|
|
29 |
src_prepare() { |
30 |
epatch "${FILESDIR}"/${P}-respect_flags.patch |
31 |
eautoreconf |
32 |
} |
33 |
|
28 |
|
34 |
src_configure() { |
29 |
src_configure() { |
35 |
local myconf="--disable-dependency-tracking --with-wx-config=no" |
30 |
local myconf="--disable-dependency-tracking --with-wx-config=no" |
36 |
|
31 |
|
37 |
econf \ |
32 |
econf \ |
38 |
$(use_enable gtk) \ |
33 |
$(use_enable gtk) \ |
39 |
$(use_enable libnotify) \ |
34 |
$(use_enable libnotify) \ |
40 |
${myconf} |
35 |
${myconf} |
41 |
} |
36 |
} |
42 |
|
37 |
|
43 |
pkg_preinst() { |
38 |
pkg_preinst() { |
44 |
gnome2_icon_savelist |
39 |
gnome2_icon_savelist |
45 |
} |
40 |
} |
46 |
|
41 |
|
47 |
src_install() { |
|
|
48 |
emake DESTDIR="${D}" install || die "emake install failed." |
49 |
dodoc AUTHORS NEWS |
50 |
rm -f "${D}"/usr/share/${PN}/web/LICENSE |
51 |
doinitd "${FILESDIR}"/transmission-daemon |
52 |
} |
53 |
|
54 |
pkg_postinst() { |
42 |
pkg_postinst() { |
55 |
fdo-mime_desktop_database_update |
43 |
fdo-mime_desktop_database_update |
56 |
gnome2_icon_cache_update |
44 |
gnome2_icon_cache_update |
Lines 58-62
Link Here
|
58 |
|
46 |
|
59 |
pkg_postrm() { |
47 |
pkg_postrm() { |
60 |
fdo-mime_desktop_database_update |
48 |
fdo-mime_desktop_database_update |
61 |
gnome2_icon_cache_update |
49 |
} |
|
|
50 |
|
51 |
src_install() { |
52 |
emake DESTDIR="${D}" install || die "emake install failed" |
53 |
dodoc AUTHORS NEWS |
54 |
|
55 |
if [ ${PV/./} -ge 140 ]; then |
56 |
newinitd "${FILESDIR}"/transmission-1.5x transmission |
57 |
newconfd "${FILESDIR}"/transmission-confd-1.5x transmission |
58 |
else |
59 |
doinitd "${FILESDIR}"/transmission |
60 |
newconfd "${FILESDIR}"/transmission-confd transmission |
61 |
fi |
62 |
diropts -m 755 -o nobody -g nogroup |
63 |
dodir /var/transmission/config |
64 |
dodir /var/transmission/downloads |
65 |
ewarn "" |
66 |
ewarn "Check and configure options by editing /etc/conf.d/transmission" |
67 |
ewarn "the default init.d script runs the daemon as user nobody, and" |
68 |
ewarn "stores everything under /var/transmission ." |
69 |
ewarn "" |
62 |
} |
70 |
} |