Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 543002
Collapse All | Expand All

(-)nicotine+-1.2.16.ebuild (-10 / +11 lines)
Lines 2-11 Link Here
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/nicotine+/nicotine+-1.2.16.ebuild,v 1.8 2015/02/18 19:08:02 rhill Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-p2p/nicotine+/nicotine+-1.2.16.ebuild,v 1.8 2015/02/18 19:08:02 rhill Exp $
4
4
5
EAPI="3"
5
EAPI=5
6
PYTHON_DEPEND="2"
7
6
8
inherit distutils
7
PYTHON_COMPAT=( python2_7 )
8
DISTUTILS_SINGLE_IMPL=1
9
10
inherit distutils-r1
9
11
10
DESCRIPTION="A fork of nicotine, a Soulseek client in Python"
12
DESCRIPTION="A fork of nicotine, a Soulseek client in Python"
11
HOMEPAGE="http://nicotine-plus.sourceforge.net"
13
HOMEPAGE="http://nicotine-plus.sourceforge.net"
Lines 13-45 Link Here
13
15
14
LICENSE="GPL-3 LGPL-3"
16
LICENSE="GPL-3 LGPL-3"
15
SLOT="0"
17
SLOT="0"
16
KEYWORDS="amd64 ppc x86 ~x86-fbsd"
18
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
17
IUSE=""
19
IUSE=""
18
20
19
RDEPEND=">=dev-python/pygtk-2.12
21
RDEPEND=">=dev-python/pygtk-2.12[${PYTHON_USEDEP}]
20
	gnome-base/librsvg"
22
	gnome-base/librsvg"
21
23
22
DEPEND="${RDEPEND}"
24
DEPEND="${RDEPEND}"
23
25
24
PYTHON_MODNAME="pynicotine"
25
26
26
pkg_setup() {
27
pkg_setup() {
27
	python_set_active_version 2
28
	python-single-r1_pkg_setup
28
}
29
}
29
30
30
src_prepare() {
31
src_prepare() {
32
	distutils-r1_src_prepare
31
	sed -i -e 's:\(Icon=\).*:\1nicotine-plus-32px:' \
33
	sed -i -e 's:\(Icon=\).*:\1nicotine-plus-32px:' \
32
		"${S}"/files/nicotine.desktop
34
		"${S}"/files/nicotine.desktop
33
}
35
}
34
36
35
src_install() {
37
src_install() {
36
	distutils_src_install
38
	distutils-r1_src_install
37
	python_convert_shebangs -r 2 "${D}"
39
	python_fix_shebang "${D}"
38
	dosym nicotine.py /usr/bin/nicotine
40
	dosym nicotine.py /usr/bin/nicotine
39
}
41
}
40
42
41
pkg_postinst() {
43
pkg_postinst() {
42
	distutils_pkg_postinst
43
	echo
44
	echo
44
	elog "You may want to install these packages to add additional features"
45
	elog "You may want to install these packages to add additional features"
45
	elog "to Nicotine+:"
46
	elog "to Nicotine+:"

Return to bug 543002