You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-p2p/nicotine+/nicotine+-1.2.16.ebuild

52 lines
1.1 KiB

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="3"
PYTHON_DEPEND="2"
inherit distutils
DESCRIPTION="A fork of nicotine, a Soulseek client in Python"
HOMEPAGE="http://nicotine-plus.sourceforge.net"
SRC_URI="mirror://sourceforge/nicotine-plus/${P}.tar.bz2"
LICENSE="GPL-3 LGPL-3"
SLOT="0"
KEYWORDS="amd64 ppc x86 ~x86-fbsd"
IUSE=""
RDEPEND=">=dev-python/pygtk-2.12
gnome-base/librsvg"
DEPEND="${RDEPEND}"
PYTHON_MODNAME="pynicotine"
pkg_setup() {
python_set_active_version 2
}
src_prepare() {
sed -i -e 's:\(Icon=\).*:\1nicotine-plus-32px:' \
"${S}"/files/nicotine.desktop
}
src_install() {
distutils_src_install
python_convert_shebangs -r 2 "${D}"
dosym nicotine.py /usr/bin/nicotine
}
pkg_postinst() {
distutils_pkg_postinst
echo
elog "You may want to install these packages to add additional features"
elog "to Nicotine+:"
elog
elog "dev-python/geoip-python Country lookup and flag display"
elog "media-libs/mutagen Media metadata extraction"
elog "net-libs/miniupnpc UPnP portmapping"
echo
}