Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/mathgl/
Date: Wed, 09 Sep 2020 11:44:59
Message-Id: 1599651852.2471bf6baf2a3766bc7439900e028ecb0a131c37.mgorny@gentoo
1 commit: 2471bf6baf2a3766bc7439900e028ecb0a131c37
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 9 11:44:12 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 9 11:44:12 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2471bf6b
7
8 sci-libs/mathgl: Eradicate python2
9
10 Closes: https://bugs.gentoo.org/735474
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 sci-libs/mathgl/mathgl-2.4.1-r2.ebuild | 33 +++++----------------------------
14 1 file changed, 5 insertions(+), 28 deletions(-)
15
16 diff --git a/sci-libs/mathgl/mathgl-2.4.1-r2.ebuild b/sci-libs/mathgl/mathgl-2.4.1-r2.ebuild
17 index e07d56b6edf..871e6edae56 100644
18 --- a/sci-libs/mathgl/mathgl-2.4.1-r2.ebuild
19 +++ b/sci-libs/mathgl/mathgl-2.4.1-r2.ebuild
20 @@ -3,10 +3,9 @@
21
22 EAPI=6
23
24 -PYTHON_COMPAT=( python2_7 )
25 WX_GTK_VER=3.0
26
27 -inherit cmake-utils eutils python-single-r1 wxwidgets multilib flag-o-matic
28 +inherit cmake-utils eutils wxwidgets multilib flag-o-matic
29
30 DESCRIPTION="Math Graphics Library"
31 HOMEPAGE="http://mathgl.sourceforge.net/"
32 @@ -16,7 +15,7 @@ LICENSE="LGPL-3"
33 SLOT="0/7.5.0"
34 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
35 IUSE="doc fltk gif glut gsl hdf hdf5 jpeg lua mpi octave opengl openmp pdf
36 - png python qt5 static-libs threads wxwidgets zlib"
37 + png qt5 static-libs threads wxwidgets zlib"
38
39 LANGS="ru"
40 for l in ${LANGS}; do
41 @@ -38,15 +37,6 @@ RDEPEND="
42 openmp? ( sys-cluster/openmpi )
43 pdf? ( media-libs/libharu )
44 png? ( media-libs/libpng:0 )
45 - python? (
46 - $(python_gen_cond_dep '
47 - || (
48 - dev-python/numpy-python2[${PYTHON_MULTI_USEDEP}]
49 - dev-python/numpy[${PYTHON_MULTI_USEDEP}]
50 - )
51 - ')
52 - ${PYTHON_DEPS}
53 - )
54 qt5? (
55 dev-qt/qtcore:5
56 dev-qt/qtgui:5
57 @@ -58,15 +48,13 @@ RDEPEND="
58
59 DEPEND="${RDEPEND}
60 doc? ( app-text/texi2html virtual/texi2dvi )
61 - octave? ( dev-lang/swig )
62 - python? ( dev-lang/swig )"
63 + octave? ( dev-lang/swig )"
64
65 REQUIRED_USE="
66 mpi? ( hdf5 )
67 openmp? ( !threads )
68 png? ( zlib )
69 - pdf? ( png )
70 - python? ( ${PYTHON_REQUIRED_USE} )"
71 + pdf? ( png )"
72
73 PATCHES=(
74 "${FILESDIR}"/${P}-mutex.patch
75 @@ -74,7 +62,6 @@ PATCHES=(
76
77 pkg_setup() {
78 use mpi && export CC=mpicc CXX=mpicxx
79 - use python && python-single-r1_pkg_setup
80 }
81
82 src_unpack() {
83 @@ -100,9 +87,6 @@ src_prepare() {
84 sed -i -e 's/update-mime-database/true/' udav/CMakeLists.txt || die
85 sed -i -e 's/update-desktop-database/true/' udav/CMakeLists.txt || die
86
87 - use python && \
88 - append-cppflags \
89 - -I"$(${EPYTHON} -c 'import numpy; print(numpy.get_include())')"
90 use wxwidgets && need-wxwidgets unicode
91 cmake-utils_src_prepare
92 }
93 @@ -138,17 +122,11 @@ src_configure() {
94 -Denable-qt5asqt=$(usex qt5)
95 -Denable-pthread=$(usex threads)
96 -Denable-pthr-widget=$(usex threads)
97 - -Denable-python=$(usex python)
98 + -Denable-python=OFF
99 -Denable-wx=$(usex wxwidgets)
100 -Denable-zlib=$(usex zlib)
101 )
102 cmake-utils_src_configure
103 - # to whoever cares: TODO: do for multiple python ABI
104 - if use python; then
105 - sed -i \
106 - -e "s:--prefix=\(.*\) :--prefix=\$ENV{DESTDIR}\1 :" \
107 - "${CMAKE_BUILD_DIR}"/lang/cmake_install.cmake || die
108 - fi
109 }
110
111 src_install() {
112 @@ -168,7 +146,6 @@ src_install() {
113 insinto /usr/share/${PN}/octave
114 doins "${CMAKE_BUILD_DIR}"/lang/${PN}.tar.gz
115 fi
116 - use python && python_optimize
117 }
118
119 pkg_postinst() {