From 7439b3eb913a66e0a04d20830484d0c7937068d0 Mon Sep 17 00:00:00 2001 From: Fredrik Eriksson Date: Sat, 8 Jun 2024 15:53:34 +0200 Subject: [PATCH] add test ebuild for libiptcdata --- media-libs/libiptcdata/Manifest | 3 ++ .../libiptcdata/libiptcdata-1.0.5.ebuild | 52 +++++++++++++++++++ media-libs/libiptcdata/metadata.xml | 20 +++++++ 3 files changed, 75 insertions(+) create mode 100644 media-libs/libiptcdata/Manifest create mode 100644 media-libs/libiptcdata/libiptcdata-1.0.5.ebuild create mode 100644 media-libs/libiptcdata/metadata.xml diff --git a/media-libs/libiptcdata/Manifest b/media-libs/libiptcdata/Manifest new file mode 100644 index 0000000..9e28521 --- /dev/null +++ b/media-libs/libiptcdata/Manifest @@ -0,0 +1,3 @@ +DIST libiptcdata-1.0.5.tar.gz 593779 BLAKE2B 7e5226a289fed5c2f4b662efaa693a8b38e95ac34bc1365af05d1af649be876d3e5b58fecea4818255879bd7518aa482cb623540601fb3c8065acd428439a29c SHA512 64ef44b1e639890004f31d5d42844ba25ed558f0a118f1dad9bc3f4dcad2457e51b825a13df849659b0e15afc78f528f330b03be94cdf156bd95b62dc419494a +EBUILD libiptcdata-1.0.5.ebuild 1160 BLAKE2B acb6041dbc3cd8a3c900f30c579b31443c53941569b0bf6c9c83ec9fc2ec0b27e36681222c57fce04ac80a52b5880eeb6ce4baec3bb0d1d644eb2ba97e20b4c3 SHA512 f00746026244344c6cca1e993a6289add838fd6e5c847ad8e7e087431f5555287606c1ec24e2fd05b43038081807f30f9ee8cd52e2c2492ece91469738309c60 +MISC metadata.xml 948 BLAKE2B 2eb9fc81cf1795cfc57e9b89e5880a3f34b21937bc41e802ab09d3fd508ad9e9c67a6c621558e2cf56683a4641b8160a3cfac3ff6ea578ee12e7543f73e1d9e1 SHA512 8dbf6854415f937c99f88fd1c1159acbc94a40b992c8eeaf5edb855a7830d4d11ea8ae9929e2af3e3d11c8ce5c7163e723110fad5f15259d5a21b7451fbaa9ac diff --git a/media-libs/libiptcdata/libiptcdata-1.0.5.ebuild b/media-libs/libiptcdata/libiptcdata-1.0.5.ebuild new file mode 100644 index 0000000..ba36379 --- /dev/null +++ b/media-libs/libiptcdata/libiptcdata-1.0.5.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{9..12} ) + +inherit python-single-r1 + +DESCRIPTION="Library for International Press Telecommunications Council (IPTC) metadata" +HOMEPAGE="https://github.com/ianw/libiptcdata http://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" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + nls? ( virtual/libintl ) + python? ( ${PYTHON_DEPS} ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + doc? ( >=dev-util/gtk-doc-1 ) + nls? ( >=sys-devel/gettext-0.13.1 ) +" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_configure () { + local myeconfargs=( + $(use_enable nls) + $(use_enable python) + $(use_enable doc gtk-doc) + ) + econf "${myeconfargs[@]}" +} + +src_install () { + default + + if use examples; then + dodoc python/README + dodoc -r python/examples + fi + + find "${D}" -name '*.la' -delete || die "failed to remove *.la files" +} diff --git a/media-libs/libiptcdata/metadata.xml b/media-libs/libiptcdata/metadata.xml new file mode 100644 index 0000000..ab5108d --- /dev/null +++ b/media-libs/libiptcdata/metadata.xml @@ -0,0 +1,20 @@ + + + + + + libiptcdata is a library, written in C, for manipulating the + International Press Telecommunications Council (IPTC) metadata stored + within multimedia files such as images. This metadata can include + captions and keywords, often used by popular photo management + applications. The library provides routines for parsing, viewing, + modifying, and saving this metadata. The library is licensed under the + GNU Library General Public License (GNU LGPL). The libiptcdata package + also includes a command-line utility, iptc, for editing IPTC data in + JPEG files, as well as Python bindings. + + + libiptcdata + ianw/libiptcdata + +