add test ebuild for libiptcdata

This commit is contained in:
Fredrik Eriksson 2024-06-08 15:53:34 +02:00
parent a4123ef680
commit 7439b3eb91
Signed by: feffe
GPG Key ID: E6B5580B853D322B
3 changed files with 75 additions and 0 deletions

View File

@ -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

View File

@ -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"
}

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<longdescription lang="en">
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.
</longdescription>
<upstream>
<remote-id type="sourceforge">libiptcdata</remote-id>
<remote-id type="github">ianw/libiptcdata</remote-id>
</upstream>
</pkgmetadata>