public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/exiv2/
Date: Sat, 20 Apr 2024 12:57:46 +0000 (UTC)	[thread overview]
Message-ID: <1713617840.b438a7de5e78fba702f426916db9da8be63ddde6.asturm@gentoo> (raw)

commit:     b438a7de5e78fba702f426916db9da8be63ddde6
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 20 12:39:14 2024 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Apr 20 12:57:20 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b438a7de

media-gfx/exiv2: add python3.12

Closes: https://bugs.gentoo.org/929617
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 media-gfx/exiv2/exiv2-0.28.2-r1.ebuild | 131 +++++++++++++++++++++++++++++++++
 1 file changed, 131 insertions(+)

diff --git a/media-gfx/exiv2/exiv2-0.28.2-r1.ebuild b/media-gfx/exiv2/exiv2-0.28.2-r1.ebuild
new file mode 100644
index 000000000000..ff96fd33e732
--- /dev/null
+++ b/media-gfx/exiv2/exiv2-0.28.2-r1.ebuild
@@ -0,0 +1,131 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+inherit cmake-multilib python-any-r1
+
+DESCRIPTION="EXIF, IPTC and XMP metadata C++ library and command line utility"
+HOMEPAGE="https://exiv2.org/"
+
+if [[ ${PV} == *9999* ]]; then
+	EGIT_REPO_URI="https://github.com/Exiv2/exiv2.git"
+	inherit git-r3
+else
+	SRC_URI="https://github.com/Exiv2/exiv2/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-solaris"
+fi
+
+LICENSE="GPL-2"
+# Upstream hope to have stable ABI in 1.0. Until then, go off ${PV}.
+# We may be able to change it to $(ver_cut 1-2) once e.g.
+# https://github.com/Exiv2/exiv2/pull/917 is merged.
+SLOT="0/$(ver_cut 1-2)"
+IUSE="+bmff doc examples nls +png test webready +xmp"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+	dev-libs/inih[${MULTILIB_USEDEP}]
+	>=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
+	nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )
+	png? ( sys-libs/zlib[${MULTILIB_USEDEP}] )
+	webready? (
+		net-misc/curl[${MULTILIB_USEDEP}]
+	)
+	xmp? ( dev-libs/expat[${MULTILIB_USEDEP}] )
+"
+DEPEND="${DEPEND}
+	test? ( dev-cpp/gtest )
+"
+BDEPEND="
+	doc? (
+		${PYTHON_DEPS}
+		app-text/doxygen
+		dev-libs/libxslt
+		media-gfx/graphviz
+		virtual/pkgconfig
+	)
+	test? ( ${PYTHON_DEPS} )
+	nls? ( sys-devel/gettext )
+"
+
+DOCS=( README.md doc/ChangeLog doc/cmd.txt )
+
+PATCHES=( "${FILESDIR}/${P}-errors-localisation.patch" )
+
+pkg_setup() {
+	if use doc || use test ; then
+		python-any-r1_pkg_setup
+	fi
+}
+
+src_prepare() {
+	# FIXME @upstream:
+	einfo "Converting doc/cmd.txt to UTF-8"
+	iconv -f LATIN1 -t UTF-8 doc/cmd.txt > doc/cmd.txt.tmp || die
+	mv -f doc/cmd.txt.tmp doc/cmd.txt || die
+
+	cmake_src_prepare
+
+	sed -e "/^include.*compilerFlags/s/^/#DONT /" -i CMakeLists.txt || die
+}
+
+multilib_src_configure() {
+	local mycmakeargs=(
+		-DEXIV2_BUILD_SAMPLES=NO
+		-DEXIV2_ENABLE_BROTLI=OFF
+		-DEXIV2_ENABLE_NLS=$(usex nls)
+		-DEXIV2_ENABLE_PNG=$(usex png)
+		-DEXIV2_ENABLE_CURL=$(usex webready)
+		-DEXIV2_ENABLE_INIH=ON # must be enabled (bug #921937)
+		-DEXIV2_ENABLE_WEBREADY=$(usex webready)
+		-DEXIV2_ENABLE_XMP=$(usex xmp)
+		-DEXIV2_ENABLE_BMFF=$(usex bmff)
+
+		# We let users control this.
+		-DBUILD_WITH_CCACHE=OFF
+		# Our toolchain sets this by default.
+		-DBUILD_WITH_STACK_PROTECTOR=OFF
+
+		$(multilib_is_native_abi || echo -DEXIV2_BUILD_EXIV2_COMMAND=NO)
+		$(multilib_is_native_abi && echo -DEXIV2_BUILD_DOC=$(usex doc))
+		$(multilib_is_native_abi && echo -DEXIV2_BUILD_UNIT_TESTS=$(usex test))
+		-DCMAKE_INSTALL_DOCDIR="${EPREFIX}"/usr/share/doc/${PF}/html
+	)
+
+	if use doc || use test ; then
+		mycmakeargs+=(
+			-DPython3_EXECUTABLE="${PYTHON}"
+		)
+	fi
+
+	cmake_src_configure
+}
+
+multilib_src_compile() {
+	cmake_src_compile
+
+	if multilib_is_native_abi; then
+		use doc && eninja doc
+	fi
+}
+
+multilib_src_test() {
+	if multilib_is_native_abi; then
+		cd "${BUILD_DIR}"/bin || die
+		./unit_tests || die "Failed to run tests"
+	fi
+}
+
+multilib_src_install_all() {
+	use xmp && DOCS+=( doc/{COPYING-XMPSDK,README-XMP,cmdxmp.txt} )
+
+	einstalldocs
+	find "${D}" -name '*.la' -delete || die
+
+	if use examples; then
+		docinto examples
+		dodoc samples/*.cpp
+	fi
+}


             reply	other threads:[~2024-04-20 12:57 UTC|newest]

Thread overview: 173+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-20 12:57 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-01 17:04 [gentoo-commits] repo/gentoo:master commit in: media-gfx/exiv2/ Arthur Zamarin
2024-08-21 11:46 Arthur Zamarin
2024-08-21 11:46 Arthur Zamarin
2024-08-21 11:46 Arthur Zamarin
2024-08-21 11:46 Arthur Zamarin
2024-08-21  9:33 Jakov Smolić
2024-08-21  9:33 Jakov Smolić
2024-07-13 15:01 Andreas Sturmlechner
2024-05-15 19:58 Andreas Sturmlechner
2024-05-15 12:06 Sam James
2024-05-15 10:31 Sam James
2024-05-15  9:28 Sam James
2024-05-15  9:28 Sam James
2024-05-15  9:28 Sam James
2024-05-15  9:28 Sam James
2024-05-14 19:26 Arthur Zamarin
2024-04-20 12:57 Andreas Sturmlechner
2024-03-29 13:37 Arthur Zamarin
2024-03-29  9:18 Arthur Zamarin
2024-03-29  2:04 Sam James
2024-03-29  2:04 Sam James
2024-03-29  2:04 Sam James
2024-03-29  2:04 Sam James
2024-03-29  2:04 Sam James
2024-02-19 20:20 Andreas Sturmlechner
2024-01-12 18:06 Arthur Zamarin
2024-01-12 18:06 Arthur Zamarin
2024-01-12 18:06 Arthur Zamarin
2024-01-12 18:06 Arthur Zamarin
2024-01-12 17:08 Sam James
2024-01-12 17:08 Sam James
2024-01-12 16:06 Sam James
2023-11-29  9:43 Andreas Sturmlechner
2023-11-29  9:09 Michał Górny
2023-11-29  8:25 Arthur Zamarin
2023-11-22 12:35 Arthur Zamarin
2023-11-22 12:19 Arthur Zamarin
2023-11-22 12:07 Michał Górny
2023-11-22 12:02 Sam James
2023-11-22 11:41 Arthur Zamarin
2023-11-21 22:36 Andreas Sturmlechner
2023-11-12 12:18 Andreas Sturmlechner
2023-10-09  7:04 Sam James
2023-09-18 23:26 Sam James
2023-09-18 23:26 Sam James
2023-09-18 22:36 Sam James
2023-09-18 22:36 Sam James
2023-06-10 16:27 Sam James
2023-06-10 16:07 Jakov Smolić
2023-06-10 16:07 Jakov Smolić
2023-06-10 16:07 Jakov Smolić
2023-06-10 16:07 Jakov Smolić
2023-06-10 15:54 Sam James
2023-06-10 15:54 Sam James
2023-05-16  4:41 Sam James
2023-05-10 19:27 Sam James
2023-02-26 20:00 Arthur Zamarin
2023-02-25 14:03 Sam James
2023-02-25 14:01 Sam James
2023-02-25 14:01 Sam James
2023-02-25 11:06 Jakov Smolić
2023-02-25 11:06 Jakov Smolić
2023-02-25 11:06 Jakov Smolić
2022-10-25 19:03 Andreas Sturmlechner
2022-10-06  9:14 Andreas Sturmlechner
2022-07-29  4:17 Sam James
2022-07-29  4:17 Sam James
2021-11-09 21:36 Sam James
2021-11-08  6:22 Sam James
2021-11-07  6:40 Agostino Sarubbo
2021-11-07  6:40 Agostino Sarubbo
2021-11-07  6:36 Agostino Sarubbo
2021-11-07  3:15 Sam James
2021-11-07  3:15 Sam James
2021-10-31  6:26 Arthur Zamarin
2021-10-24  0:57 Sam James
2021-10-22  9:00 Sam James
2021-09-25  2:50 Sam James
2021-09-03 17:59 Sam James
2021-09-03  6:47 Andreas Sturmlechner
2021-09-03  1:53 Sam James
2021-09-03  1:53 Sam James
2021-08-27 20:00 Sam James
2021-08-27 20:00 Sam James
2021-08-27  2:48 Sam James
2021-08-09  1:18 Sam James
2021-08-07 15:03 Sam James
2021-07-31 19:23 Sergei Trofimovich
2020-07-17  7:44 Agostino Sarubbo
2020-07-15  6:46 Sergei Trofimovich
2020-07-13 18:27 Sam James
2020-07-12  0:16 Sam James
2020-07-11 19:55 Sergei Trofimovich
2020-07-10 14:48 Sam James
2020-07-01 19:08 Andreas Sturmlechner
2020-05-31 21:09 Andreas Sturmlechner
2020-05-28 19:19 Andreas Sturmlechner
2020-05-28 19:19 Andreas Sturmlechner
2020-05-22 10:51 Andreas Sturmlechner
2019-08-02  8:12 Mikle Kolyada
2019-08-02  8:12 Mikle Kolyada
2019-07-31 13:13 Agostino Sarubbo
2019-07-31 13:11 Agostino Sarubbo
2019-07-31 12:09 Agostino Sarubbo
2019-07-31 11:03 Agostino Sarubbo
2019-07-31 10:59 Agostino Sarubbo
2019-07-31 10:55 Agostino Sarubbo
2019-07-31 10:54 Agostino Sarubbo
2019-07-29 22:07 Aaron Bauman
2019-07-29 18:55 Andreas Sturmlechner
2019-07-21 16:13 Andreas Sturmlechner
2019-06-23 20:58 Andreas Sturmlechner
2019-05-20 17:22 Aaron Bauman
2019-05-13  5:10 Andreas Sturmlechner
2019-05-11  9:23 Andreas Sturmlechner
2019-04-18 17:56 Andreas Sturmlechner
2019-03-02 20:02 Matt Turner
2019-02-20 13:07 Mikle Kolyada
2019-02-17 22:35 Thomas Deutschmann
2019-02-16 10:21 Markus Meier
2019-02-12 21:03 Sergei Trofimovich
2019-02-07 12:31 Tobias Klausmann
2019-02-06 19:20 Sergei Trofimovich
2019-01-12 22:06 Andreas Sturmlechner
2019-01-03 14:40 Andreas Sturmlechner
2018-12-30  0:05 Andreas Sturmlechner
2018-10-29  5:39 Markus Meier
2018-10-06 16:48 Matt Turner
2018-10-03 22:58 Andreas Sturmlechner
2018-10-02 14:02 Tobias Klausmann
2018-09-23 15:32 Mikle Kolyada
2018-09-22 11:14 Sergei Trofimovich
2018-09-21 20:35 Sergei Trofimovich
2018-09-21 14:50 Andreas Sturmlechner
2018-09-21 14:50 Andreas Sturmlechner
2018-09-21 13:59 Andreas Sturmlechner
2018-09-21 13:59 Andreas Sturmlechner
2018-09-21 10:33 Andreas Sturmlechner
2018-09-21 10:20 Andreas Sturmlechner
2018-09-18 20:54 Andreas Sturmlechner
2018-05-29 12:32 Andreas Sturmlechner
2018-05-29  9:11 Mikle Kolyada
2018-05-29  4:42 Markus Meier
2018-05-14 12:38 Tobias Klausmann
2018-05-11 22:56 Sergei Trofimovich
2018-05-02 16:33 Thomas Deutschmann
2018-05-01  8:07 Sergei Trofimovich
2018-04-30  7:50 Agostino Sarubbo
2018-04-29 19:41 Sergei Trofimovich
2018-04-26  3:32 Andreas Sturmlechner
2018-04-25 18:36 Andreas Sturmlechner
2018-02-21 19:37 Sergei Trofimovich
2018-01-06 19:03 Ulrich Müller
2017-11-19 15:14 Markus Meier
2017-11-19 12:19 Sergei Trofimovich
2017-11-13 22:37 Sergei Trofimovich
2017-11-12 10:27 Sergei Trofimovich
2017-11-06 11:53 Manuel Rüger
2017-11-06  8:01 Sergei Trofimovich
2017-11-05 21:29 Thomas Deutschmann
2017-11-05 13:23 Andreas Sturmlechner
2017-11-05 13:23 Andreas Sturmlechner
2017-10-13  8:14 Andreas Sturmlechner
2017-06-18  9:51 Alexis Ballier
2017-06-07 20:22 Andreas Sturmlechner
2017-05-28  9:29 Pacho Ramos
2017-01-29 18:56 Fabian Groffen
2016-07-03 10:46 Jeroen Roovers
2016-02-14 17:25 Markus Meier
2016-02-14 10:11 Agostino Sarubbo
2016-02-13 15:33 Agostino Sarubbo
2016-02-09 15:58 Tobias Klausmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1713617840.b438a7de5e78fba702f426916db9da8be63ddde6.asturm@gentoo \
    --to=asturm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox