1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
9 inherit eutils multilib python
11 DESCRIPTION="A graphical newsreader written in Python"
12 HOMEPAGE="http://xpn.altervista.org/index-en.html"
14 mirror://debian/pool/main/x/${PN}/${PN}_${PV}-5.debian.tar.gz
15 http://xpn.altervista.org/codice/${P}.tar.gz"
19 KEYWORDS="~amd64 ~x86"
23 for i in ${LANGS} ; do
24 IUSE="${IUSE} linguas_${i}"
33 python_set_active_version 2
34 python_convert_shebangs -r 2 .
39 epatch "${WORKDIR}"/debian/patches/0{1..4}*.patch
43 for i in ${LANGS} ; do
44 insinto /usr/share/locale
45 use linguas_${i} && doins -r lang/${i}
48 insinto $(python_get_sitedir)/${PN}/
49 doins -r pixmaps xpn_src ${PN}.py
51 newicon pixmaps/xpn-icon.png ${PN}.png
52 make_desktop_entry "${PN} -d" ${PN} /usr/share/pixmaps/${PN}.png "Network;News"
54 dodoc AUTHORS ChangeLog README
57 make_wrapper ${PN} "python2 ${PN}.py" $(python_get_sitedir)/${PN}
63 python_mod_optimize ${PN}
67 python_mod_cleanup ${PN}