dev-libs/stfl: Add support for python 3.7 and 3.8
authorCédric Krier <cedk@gentoo.org>
Sat, 25 Apr 2020 13:40:57 +0000 (15:40 +0200)
committerCédric Krier <cedk@gentoo.org>
Sat, 25 Apr 2020 14:14:13 +0000 (16:14 +0200)
Bug: https://bugs.gentoo.org/718286
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Cédric Krier <cedk@gentoo.org>
dev-libs/stfl/metadata.xml
dev-libs/stfl/stfl-0.24.ebuild

index 43428f619e9792e46c4d22665a4410d6035ef5a7..203592b97a7ebef06ec2ad29c06db0bf4b8e8f69 100644 (file)
@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-       <!-- maintainer-needed -->
+       <maintainer type="person">
+               <email>cedk@gentoo.org</email>
+       </maintainer>
        <longdescription lang="en">
                STFL is a library which implements a curses-based widget set for text
                terminals.
index 66d866317e5f6975610844c292dce63013671fc2..bdce7f3941f3c53b8ed6996c8742b1359fed8edd 100644 (file)
@@ -1,8 +1,8 @@
 # Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-PYTHON_COMPAT=( python3_6 )
+EAPI=7
+PYTHON_COMPAT=( python3_{6..8} )
 GENTOO_DEPEND_ON_PERL=no
 inherit eutils multilib perl-module python-r1 toolchain-funcs
 
@@ -28,6 +28,12 @@ DEPEND="${RDEPEND}
        ruby? ( dev-lang/swig )
 "
 
+PATCHES=(
+       "${FILESDIR}/${PN}-0.21-python.patch"
+       "${FILESDIR}/${PN}-0.22-soname-symlink.patch"
+       "${FILESDIR}/${PN}-0.22-ruby-sharedlib.patch"
+)
+
 src_prepare() {
        sed -i \
                -e 's/-Os -ggdb//' \
@@ -41,9 +47,7 @@ src_prepare() {
                sed -i -e "/install .* libstfl.a/d" Makefile || die
        fi
 
-       epatch "${FILESDIR}"/${PN}-0.21-python.patch
-       epatch "${FILESDIR}"/${PN}-0.22-soname-symlink.patch
-       epatch "${FILESDIR}"/${PN}-0.22-ruby-sharedlib.patch
+       eapply_user
 
        if use perl ; then
                echo "FOUND_PERL5=1" >> Makefile.cfg