commit:     57a79f77b3ba9751622666956c52a558ec72de51
Author:     Steve Arnold <nerdboy <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 11 01:08:33 2021 +0000
Commit:     Steve Arnold <nerdboy <AT> gentoo <DOT> org>
CommitDate: Sun Apr 11 01:08:33 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57a79f77

net-misc/ntpsec: switch to distutils-r1, fix shebangs

Should also fix bug 779880

Closes: https://bugs.gentoo.org/778011
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Steve Arnold <nerdboy <AT> gentoo.org>

 net-misc/ntpsec/{ntpsec-1.2.0.ebuild => ntpsec-1.2.0-r1.ebuild} | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/net-misc/ntpsec/ntpsec-1.2.0.ebuild 
b/net-misc/ntpsec/ntpsec-1.2.0-r1.ebuild
similarity index 96%
rename from net-misc/ntpsec/ntpsec-1.2.0.ebuild
rename to net-misc/ntpsec/ntpsec-1.2.0-r1.ebuild
index a5193f99590..640727916e0 100644
--- a/net-misc/ntpsec/ntpsec-1.2.0.ebuild
+++ b/net-misc/ntpsec/ntpsec-1.2.0-r1.ebuild
@@ -3,10 +3,11 @@
 
 EAPI=6
 
-PYTHON_COMPAT=( python3_{7..9} )
+PYTHON_COMPAT=( python3_{6..9} )
 PYTHON_REQ_USE='threads(+)'
+DISTUTILS_USE_SETUPTOOLS=no
 
-inherit flag-o-matic python-r1 waf-utils systemd
+inherit distutils-r1 flag-o-matic waf-utils systemd
 
 if [[ ${PV} == *9999* ]]; then
        inherit git-r3
@@ -72,6 +73,7 @@ src_prepare() {
        fi
        # remove extra default pool servers
        sed -i '/use-pool/s/^/#/' "${S}"/etc/ntp.d/default.conf
+
        python_copy_sources
 }
 
@@ -122,6 +124,7 @@ src_compile() {
 src_install() {
        python_install() {
                waf-utils_src_install
+               python_fix_shebang "${ED}"
        }
        python_foreach_impl run_in_build_dir python_install
        python_foreach_impl python_optimize

Reply via email to