commit:     82f4a1240be9d391e064d0b0d2f19732872ea24a
Author:     Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Sat Apr 13 16:57:25 2024 +0000
Commit:     Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Sat Apr 13 17:09:17 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=82f4a124

dev-python/cx-oracle: enable py3.12

Closes: https://bugs.gentoo.org/897412
Signed-off-by: Julien Roy <julien <AT> jroy.ca>b

 ...acle-8.3.0.ebuild => cx-oracle-8.3.0-r1.ebuild} | 23 ++++++----------------
 1 file changed, 6 insertions(+), 17 deletions(-)

diff --git a/dev-python/cx-oracle/cx-oracle-8.3.0.ebuild 
b/dev-python/cx-oracle/cx-oracle-8.3.0-r1.ebuild
similarity index 65%
rename from dev-python/cx-oracle/cx-oracle-8.3.0.ebuild
rename to dev-python/cx-oracle/cx-oracle-8.3.0-r1.ebuild
index 79c2596804..8e6594f85d 100644
--- a/dev-python/cx-oracle/cx-oracle-8.3.0.ebuild
+++ b/dev-python/cx-oracle/cx-oracle-8.3.0-r1.ebuild
@@ -1,9 +1,11 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="8"
 
-PYTHON_COMPAT=( python3_10 )
+DISTUTILS_USE_PEP517=setuptools
+DISTUTILS_EXT=1
+PYTHON_COMPAT=( python3_{10..12} )
 PYPI_PN="cx_Oracle"
 PYPI_NO_NORMALIZE=1
 
@@ -27,22 +29,9 @@ RESTRICT="test"
 DEPEND="dev-db/oracle-instantclient"
 RDEPEND="${DEPEND}"
 
-python_prepare_all() {
+src_prepare() {
        # do not install LICENSE and README to /usr/
        sed -i -e '/data_files/d' setup.py || die
 
-       distutils-r1_python_prepare_all
-}
-
-pkg_postinst() {
-       return
-       # no python_mod_optimize
-}
-
-src_install() {
-       distutils-r1_src_install
-       if use examples; then
-               docinto examples
-               dodoc -r samples/. || die
-       fi
+       distutils-r1_src_prepare
 }

Reply via email to