From e0f4f4bfd42ab9f528f9bfbe75142eea0f8f7df8 Mon Sep 17 00:00:00 2001 From: Fco Javier Felix Date: Wed, 5 Jun 2024 23:15:55 +0200 Subject: [PATCH 1/2] media-libs/libiptcdata: Update ebuild (EAPI, PYTHON_COMPAT) * Include support for Python 12 and 13 * Update EAPI 8 * Requite distutils Bug: https://bugs.gentoo.org/893362 Bug: https://bugs.gentoo.org/929642 Signed-off-by: Fco Javier Felix Closes: https://github.com/gentoo/gentoo/pull/37041 Signed-off-by: Joonas Niilola --- .../libiptcdata/libiptcdata-1.0.5-r1.ebuild | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 media-libs/libiptcdata/libiptcdata-1.0.5-r1.ebuild diff --git a/media-libs/libiptcdata/libiptcdata-1.0.5-r1.ebuild b/media-libs/libiptcdata/libiptcdata-1.0.5-r1.ebuild new file mode 100644 index 0000000000000..2da3515a41e6e --- /dev/null +++ b/media-libs/libiptcdata/libiptcdata-1.0.5-r1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..13} ) +DISTUTILS_EXT=1 +DISTUTILS_OPTIONAL=1 +DISTUTILS_USE_PEP517=setuptools + +inherit autotools distutils-r1 + +DESCRIPTION="Library for International Press Telecommunications Council (IPTC) metadata" +HOMEPAGE="https://github.com/ianw/libiptcdata https://libiptcdata.sourceforge.net/" +SRC_URI="https://github.com/ianw/${PN}/releases/download/release_1_0_5/${P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="doc examples nls python" + +RDEPEND=" + nls? ( virtual/libintl ) + python? ( ${PYTHON_DEPS} ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + doc? ( >=dev-util/gtk-doc-1 ) + nls? ( >=sys-devel/gettext-0.13.1 ) + python? ( + ${DISTUTILS_DEPS} + ${PYTHON_DEPS} + ) +" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +src_prepare() { + default + eautoreconf + if use python; then + cd python || die + distutils-r1_src_prepare + fi +} + +src_configure () { + local myeconfargs=( + $(use_enable nls) + $(use_enable python) + $(use_enable doc gtk-doc) + ) + econf "${myeconfargs[@]}" + + if use python; then + cd python || die + distutils-r1_src_configure + fi +} + +src_compile() { + default + if use python; then + cd python || die + distutils-r1_src_compile + fi +} + +src_install () { + default + + find "${D}" -name '*.la' -delete || die "failed to remove *.la files" + + if use python; then + cd python || die + distutils-r1_src_install + fi + + if use examples; then + dodoc python/README + dodoc -r python/examples + fi +} From bff360e7ed4a5041c86d5e5bd4c40e4d80bc61cb Mon Sep 17 00:00:00 2001 From: Joonas Niilola Date: Sat, 20 Jul 2024 10:00:05 +0300 Subject: [PATCH 2/2] media-libs/libiptcdata: disable py3.9 Signed-off-by: Joonas Niilola --- media-libs/libiptcdata/libiptcdata-1.0.5-r1.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/media-libs/libiptcdata/libiptcdata-1.0.5-r1.ebuild b/media-libs/libiptcdata/libiptcdata-1.0.5-r1.ebuild index 2da3515a41e6e..53e7ef439208c 100644 --- a/media-libs/libiptcdata/libiptcdata-1.0.5-r1.ebuild +++ b/media-libs/libiptcdata/libiptcdata-1.0.5-r1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -PYTHON_COMPAT=( python3_{9..13} ) +PYTHON_COMPAT=( python3_{10..13} ) DISTUTILS_EXT=1 DISTUTILS_OPTIONAL=1 DISTUTILS_USE_PEP517=setuptools @@ -25,6 +25,8 @@ RDEPEND=" " DEPEND="${RDEPEND}" BDEPEND=" + dev-build/gtk-doc-am + virtual/pkgconfig doc? ( >=dev-util/gtk-doc-1 ) nls? ( >=sys-devel/gettext-0.13.1 ) python? (