1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python2_7 )
6 inherit eutils python-single-r1
8 DESCRIPTION="Directory browser for Radio and TV streams"
9 HOMEPAGE="http://tunapie.sourceforge.net"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
14 KEYWORDS="~amd64 ~x86"
18 $(python_gen_cond_dep '
19 >=dev-python/wxpython-2.6[${PYTHON_MULTI_USEDEP}]
24 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
30 sed -i -e 's@../pixmaps@../../share/pixmaps@' \
31 src/tunapie2_main.py || die
33 # the original script requires more sed than code,
34 cat > tunapie <<-_EOF_ || die
36 exec ${EPYTHON} /usr/lib/tunapie/Tunapie.py
43 dodoc CHANGELOG README
45 python_moduleinto /usr/lib/tunapie
46 python_domodule src/{*.py,*.png}
49 domenu tunapie.desktop
52 usex offensive 1 0 > "${ED%/}"/etc/tunapie.config || die