diff options
author | John Helmert III <ajak@gentoo.org> | 2021-04-11 14:47:04 -0500 |
---|---|---|
committer | John Helmert III <ajak@gentoo.org> | 2021-04-11 15:04:36 -0500 |
commit | 56d9c11678b15952ec2f53cca90bd2bd9de3d3a8 (patch) | |
tree | b749d1b5bb7cea694ebd1a400b95404f289ac3d2 /dev-libs/libcdada | |
parent | app-admin/tenshi: fix missing trailing slash (diff) | |
download | gentoo-56d9c11678b15952ec2f53cca90bd2bd9de3d3a8.tar.gz gentoo-56d9c11678b15952ec2f53cca90bd2bd9de3d3a8.tar.bz2 gentoo-56d9c11678b15952ec2f53cca90bd2bd9de3d3a8.zip |
dev-libs/libcdada: do proper python wrapping
Closes: https://bugs.gentoo.org/781917
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: John Helmert III <ajak@gentoo.org>
Diffstat (limited to 'dev-libs/libcdada')
-rw-r--r-- | dev-libs/libcdada/libcdada-0.3.4-r2.ebuild (renamed from dev-libs/libcdada/libcdada-0.3.4-r1.ebuild) | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/dev-libs/libcdada/libcdada-0.3.4-r1.ebuild b/dev-libs/libcdada/libcdada-0.3.4-r2.ebuild index 2946275db948..fc96ac0f21fa 100644 --- a/dev-libs/libcdada/libcdada-0.3.4-r1.ebuild +++ b/dev-libs/libcdada/libcdada-0.3.4-r2.ebuild @@ -3,7 +3,8 @@ EAPI=7 -inherit autotools +PYTHON_COMPAT=( python3_{7..9} ) +inherit autotools python-any-r1 DESCRIPTION="Basic data structures in C" HOMEPAGE="https://github.com/msune/libcdada" @@ -11,12 +12,23 @@ SRC_URI="https://github.com/msune/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}. LICENSE="BSD-2" SLOT="0" -KEYWORDS="~amd64" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND="test? ( ${PYTHON_DEPS} )" PATCHES=( "${FILESDIR}/${PN}-${PV}-Werror.patch" ) +pkg_setup() { + use test && python-any-r1_pkg_setup +} + src_prepare() { default + if ! use test; then + sed -ie "/SUBDIRS/s/test //" Makefile.am || die + fi eautoreconf } |