media-libs/libcaca: Eradicate python2

Closes: https://bugs.gentoo.org/705942
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2020-08-22 09:42:47 +02:00
parent f5e59029a1
commit 6809241c0e

View File

@@ -2,11 +2,10 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=5
PYTHON_COMPAT=( python2_7 )
RUBY_OPTIONAL=yes
#USE_RUBY=ruby20
inherit autotools ruby-ng eutils flag-o-matic ltprune mono-env multilib java-pkg-opt-2 python-single-r1 multilib-minimal
inherit autotools ruby-ng eutils flag-o-matic ltprune mono-env multilib java-pkg-opt-2 multilib-minimal
MY_P=${P/_/.}
DESCRIPTION="A library that creates colored ASCII-art graphics"
@@ -16,11 +15,9 @@ SRC_URI="http://libcaca.zoy.org/files/${PN}/${MY_P}.tar.gz"
LICENSE="GPL-2 ISC LGPL-2.1 WTFPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86"
IUSE="cxx doc imlib java mono ncurses opengl python ruby slang static-libs test truetype X"
IUSE="cxx doc imlib java mono ncurses opengl ruby slang static-libs test truetype X"
RESTRICT="!test? ( test )"
REQUIRED_USE="
python? ( ${PYTHON_REQUIRED_USE} )
"
REQUIRED_USE=""
# ruby? ( ruby_targets_${USE_RUBY} )
COMMON_DEPEND="imlib? ( >=media-libs/imlib2-1.4.6-r2[${MULTILIB_USEDEP}] )
@@ -32,7 +29,6 @@ COMMON_DEPEND="imlib? ( >=media-libs/imlib2-1.4.6-r2[${MULTILIB_USEDEP}] )
>=media-libs/freeglut-2.8.1[${MULTILIB_USEDEP}]
truetype? ( >=media-libs/ftgl-2.1.3_rc5 )
)
python? ( ${PYTHON_DEPS} )
slang? ( >=sys-libs/slang-2.2.4-r1[${MULTILIB_USEDEP}] )
X? ( >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] >=x11-libs/libXt-1.1.4[${MULTILIB_USEDEP}] )"
# ruby? ( $(ruby_implementations_depend) )
@@ -55,7 +51,6 @@ S=${WORKDIR}/${MY_P}
DOCS=( AUTHORS ChangeLog NEWS NOTES README THANKS )
pkg_setup() {
use python && python-single-r1_pkg_setup
java-pkg-opt-2_pkg_setup
use mono && mono-env_pkg_setup
}
@@ -124,7 +119,7 @@ multilib_src_configure() {
$(use_enable test cppunit) \
$(multilib_native_use_enable java) \
$(multilib_native_use_enable ruby) \
$(multilib_native_use_enable python) \
--disable-python \
$(multilib_native_use_enable mono csharp) \
$(multilib_native_use_enable doc)
}