From 7e4731691bf7d76ad6530951e10fb3954e16c9d8 Mon Sep 17 00:00:00 2001 From: Esteve Varela Colominas Date: Thu, 16 Sep 2021 03:05:18 +0200 Subject: sci-libs/libsigrokdecode: Pick the right python3-embed version Closes: https://bugs.gentoo.org/794592 Closes: https://bugs.gentoo.org/799614 Signed-off-by: Esteve Varela Colominas Signed-off-by: Sam James --- .../libsigrokdecode-0.5.3-r1.ebuild | 53 +++++++++++++++++++++ .../libsigrokdecode/libsigrokdecode-0.5.3.ebuild | 55 ---------------------- .../libsigrokdecode/libsigrokdecode-9999.ebuild | 18 ++++--- 3 files changed, 61 insertions(+), 65 deletions(-) create mode 100644 sci-libs/libsigrokdecode/libsigrokdecode-0.5.3-r1.ebuild delete mode 100644 sci-libs/libsigrokdecode/libsigrokdecode-0.5.3.ebuild diff --git a/sci-libs/libsigrokdecode/libsigrokdecode-0.5.3-r1.ebuild b/sci-libs/libsigrokdecode/libsigrokdecode-0.5.3-r1.ebuild new file mode 100644 index 000000000000..94adf3d75fe7 --- /dev/null +++ b/sci-libs/libsigrokdecode/libsigrokdecode-0.5.3-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8,9,10} ) +inherit autotools python-single-r1 + +if [[ ${PV} == *9999* ]]; then + EGIT_REPO_URI="git://sigrok.org/${PN}" + inherit git-r3 +else + SRC_URI="https://sigrok.org/download/source/${PN}/${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="Provide (streaming) protocol decoding functionality" +HOMEPAGE="https://sigrok.org/wiki/Libsigrokdecode" + +LICENSE="GPL-3" +SLOT="0/4" +IUSE="static-libs" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + >=dev-libs/glib-2.34.0 +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig +" + +src_prepare() { + default + + # bug #794592 + sed -i -e 's/\[SRD_PKGLIBS\],$/& [python3-embed], [python3],/' configure.ac || die + + eautoreconf +} + +src_configure() { + econf $(use_enable static-libs static) PYTHON3="${PYTHON}" +} + +src_test() { + emake check +} + +src_install() { + default + find "${D}" -name '*.la' -type f -delete || die +} diff --git a/sci-libs/libsigrokdecode/libsigrokdecode-0.5.3.ebuild b/sci-libs/libsigrokdecode/libsigrokdecode-0.5.3.ebuild deleted file mode 100644 index 64dcf8d7c68f..000000000000 --- a/sci-libs/libsigrokdecode/libsigrokdecode-0.5.3.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7,8,9} ) -inherit python-single-r1 - -if [[ ${PV} == *9999* ]]; then - EGIT_REPO_URI="git://sigrok.org/${PN}" - inherit git-r3 autotools -else - SRC_URI="https://sigrok.org/download/source/${PN}/${P}.tar.gz" - KEYWORDS="~amd64 ~x86" -fi - -DESCRIPTION="Provide (streaming) protocol decoding functionality" -HOMEPAGE="https://sigrok.org/wiki/Libsigrokdecode" - -LICENSE="GPL-3" -SLOT="0/4" -IUSE="static-libs" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -RDEPEND="${PYTHON_DEPS} - >=dev-libs/glib-2.34.0 -" -DEPEND="${RDEPEND}" -BDEPEND=" - virtual/pkgconfig -" - -src_prepare() { - default - [[ ${PV} == *9999* ]] && eautoreconf - - # Only a test program (not installed, and not used by src_test) - # is used by libsigrok, so disable it to avoid the compile. - sed -i \ - -e '/build_runtc=/s:yes:no:' \ - configure || die -} - -src_configure() { - econf $(use_enable static-libs static) -} - -src_test() { - emake check -} - -src_install() { - default - find "${D}" -name '*.la' -type f -delete || die -} diff --git a/sci-libs/libsigrokdecode/libsigrokdecode-9999.ebuild b/sci-libs/libsigrokdecode/libsigrokdecode-9999.ebuild index a5914c13031c..71b414a4c1ad 100644 --- a/sci-libs/libsigrokdecode/libsigrokdecode-9999.ebuild +++ b/sci-libs/libsigrokdecode/libsigrokdecode-9999.ebuild @@ -3,12 +3,12 @@ EAPI=7 -PYTHON_COMPAT=( python3_{7,8,9} ) -inherit python-single-r1 +PYTHON_COMPAT=( python3_{8,9,10} ) +inherit autotools python-single-r1 if [[ ${PV} == *9999* ]]; then EGIT_REPO_URI="git://sigrok.org/${PN}" - inherit git-r3 autotools + inherit git-r3 else SRC_URI="https://sigrok.org/download/source/${PN}/${P}.tar.gz" KEYWORDS="~amd64 ~x86" @@ -32,17 +32,15 @@ BDEPEND=" src_prepare() { default - [[ ${PV} == *9999* ]] && eautoreconf - # Only a test program (not installed, and not used by src_test) - # is used by libsigrok, so disable it to avoid the compile. - sed -i \ - -e '/build_runtc=/s:yes:no:' \ - configure || die + # bug #794592 + sed -i -e 's/\[SRD_PKGLIBS\],$/& [python3-embed], [python3],/' configure.ac || die + + eautoreconf } src_configure() { - econf $(use_enable static-libs static) + econf $(use_enable static-libs static) PYTHON3="${PYTHON}" } src_test() { -- cgit v1.2.3-65-gdbad