sys-apps/onerng: add python3.7 support
authorConrad Kostecki <conrad@kostecki.com>
Mon, 13 Aug 2018 22:09:08 +0000 (00:09 +0200)
committerMichał Górny <mgorny@gentoo.org>
Mon, 13 Aug 2018 22:14:15 +0000 (00:14 +0200)
Closes: https://bugs.gentoo.org/663492
Closes: https://github.com/gentoo/gentoo/pull/9561
Package-Manager: Portage-2.3.45, Repoman-2.3.10

sys-apps/onerng/onerng-3.6.ebuild

index 811776a17c32503e6bb5a0df3242e5f4e189cd1a..5b765073d1acc24814b021404d987c55ba9bfeb0 100644 (file)
@@ -3,13 +3,14 @@
 
 EAPI=6
 
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+MY_P="${PN}_${PV}"
+PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} )
 
 inherit python-r1 udev
 
 DESCRIPTION="Software for the Open Hardware Random Number Generator called OneRNG"
 HOMEPAGE="https://www.onerng.info/"
-SRC_URI="https://github.com/OneRNG/onerng.github.io/raw/master/sw/${PN}_${PV}.orig.tar.gz -> ${P}.tar.gz"
+SRC_URI="https://github.com/OneRNG/onerng.github.io/raw/master/sw/${MY_P}.orig.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( LGPL-2.1 LGPL-3 )"
 SLOT="0"
@@ -24,7 +25,7 @@ RDEPEND="app-crypt/gnupg
 DEPEND="virtual/pkgconfig
        virtual/udev"
 
-S="${WORKDIR}/${PN}_${PV}"
+S="${WORKDIR}/${MY_P}"
 
 pkg_postinst() {
        udev_reload