commit:     044d6132af9c2f73de5870d07aad860ec98bdfd9
Author:     Michał Kępień <github <AT> kempniu <DOT> pl>
AuthorDate: Sun Nov 20 23:21:37 2016 +0000
Commit:     Justin Bronder <jsbronder <AT> gentoo <DOT> org>
CommitDate: Mon Nov 21 14:04:20 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=044d6132

net-nntp/sabnzbd: Fix starting when default Python is not 2.x

Gentoo-Bug: 600356

 net-nntp/sabnzbd/sabnzbd-1.1.0.ebuild | 2 +-
 net-nntp/sabnzbd/sabnzbd-1.1.1.ebuild | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/net-nntp/sabnzbd/sabnzbd-1.1.0.ebuild 
b/net-nntp/sabnzbd/sabnzbd-1.1.0.ebuild
index e5f0860..2f83ae5 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 322add7..abf6bc4 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}"

Reply via email to