summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Kępień <github@kempniu.pl>2016-11-21 00:21:37 +0100
committerJustin Bronder <jsbronder@gentoo.org>2016-11-21 09:04:20 -0500
commit044d6132af9c2f73de5870d07aad860ec98bdfd9 (patch)
tree47366babdec32b2227aab56981b1c80c60f40af7 /net-nntp/sabnzbd
parentdev-vcs/subversion: remove unused patch/file (diff)
downloadgentoo-044d6132af9c2f73de5870d07aad860ec98bdfd9.tar.gz
gentoo-044d6132af9c2f73de5870d07aad860ec98bdfd9.tar.bz2
gentoo-044d6132af9c2f73de5870d07aad860ec98bdfd9.zip
net-nntp/sabnzbd: Fix starting when default Python is not 2.x
Gentoo-Bug: 600356
Diffstat (limited to 'net-nntp/sabnzbd')
-rw-r--r--net-nntp/sabnzbd/sabnzbd-1.1.0.ebuild2
-rw-r--r--net-nntp/sabnzbd/sabnzbd-1.1.1.ebuild1
2 files changed, 2 insertions, 1 deletions
diff --git a/net-nntp/sabnzbd/sabnzbd-1.1.0.ebuild b/net-nntp/sabnzbd/sabnzbd-1.1.0.ebuild
index e5f0860d7e02..2f83ae5c577d 100644
--- a/net-nntp/sabnzbd/sabnzbd-1.1.0.ebuild
+++ b/net-nntp/sabnzbd/sabnzbd-1.1.0.ebuild
@@ -80,9 +80,9 @@ src_install() {
dodir /usr/share/${PN}/sabnzbd
insinto /usr/share/${PN}/
+ python_convert_shebangs 2 SABnzbd.py
doins SABnzbd.py
fperms +x /usr/share/${PN}/SABnzbd.py
- dobin "${FILESDIR}"/sabnzbd
for d in cherrypy email icons interfaces locale po sabnzbd tools util; do
insinto /usr/share/${PN}/${d}
diff --git a/net-nntp/sabnzbd/sabnzbd-1.1.1.ebuild b/net-nntp/sabnzbd/sabnzbd-1.1.1.ebuild
index 322add75b054..abf6bc4a263e 100644
--- a/net-nntp/sabnzbd/sabnzbd-1.1.1.ebuild
+++ b/net-nntp/sabnzbd/sabnzbd-1.1.1.ebuild
@@ -88,6 +88,7 @@ src_install() {
insopts -m 0755
doins SABnzbd.py
+ python_fix_shebang "${D}usr/share/${PN}"
python_optimize "${D}usr/share/${PN}"
newinitd "${FILESDIR}/${PN}.initd" "${PN}"