net-nntp/sabnzbd: Fix starting when default Python is not 2.x
authorMichał Kępień <github@kempniu.pl>
Sun, 20 Nov 2016 23:21:37 +0000 (00:21 +0100)
committerJustin Bronder <jsbronder@gentoo.org>
Mon, 21 Nov 2016 14:04:20 +0000 (09:04 -0500)
Gentoo-Bug: 600356

net-nntp/sabnzbd/sabnzbd-1.1.0.ebuild
net-nntp/sabnzbd/sabnzbd-1.1.1.ebuild

index e5f0860d7e02ede17a8ce16e08b9f0b3e9719738..2f83ae5c577d9fca44b0a16118fef4817ddc7d06 100644 (file)
@@ -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}
index 322add75b054f14031d08abb81c72dc455a232fc..abf6bc4a263e60f60938885c1e2d67dfb74aa64f 100644 (file)
@@ -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}"