commit: d1edc2534baa6f4d6adde8ee1442abf117939760 Author: Alfred Wingate <parona <AT> protonmail <DOT> com> AuthorDate: Sat Feb 22 16:16:21 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Feb 22 20:51:10 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1edc253
media-libs/zint: new package, add 2.14.0 Signed-off-by: Alfred Wingate <parona <AT> protonmail.com> Signed-off-by: Sam James <sam <AT> gentoo.org> media-libs/zint/Manifest | 1 + media-libs/zint/metadata.xml | 17 +++++++++++ media-libs/zint/zint-2.14.0.ebuild | 58 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 76 insertions(+) diff --git a/media-libs/zint/Manifest b/media-libs/zint/Manifest new file mode 100644 index 000000000000..de2859089c15 --- /dev/null +++ b/media-libs/zint/Manifest @@ -0,0 +1 @@ +DIST zint-2.14.0-src.tar.gz 6261059 BLAKE2B 77bed36f42536fa96f1a69206c221d6f5b09eb25008bfe5e389b3f713eefc0299cf5dbb76f98037bb2af01bf21d6dd0c471ccc24876f7be0829e5d331822dde5 SHA512 ef6b7eb32f7df94ad277877741fbfd0e4f3e534107eeb2938425c51a4e83002a87571dbabe0d6449c41bd42978be575a69955105d6323a0b41b58f7bb8e7ab97 diff --git a/media-libs/zint/metadata.xml b/media-libs/zint/metadata.xml new file mode 100644 index 000000000000..133ccd50c190 --- /dev/null +++ b/media-libs/zint/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>[email protected]</email> + <name>Alfred Wingate</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>[email protected]</email> + <name>Proxy Maintainers</name> + </maintainer> + <upstream> + <doc>https://www.zint.org.uk/manual/</doc> + <remote-id type="github">zint/zint</remote-id> + <remote-id type="sourceforge">zint</remote-id> + </upstream> +</pkgmetadata> diff --git a/media-libs/zint/zint-2.14.0.ebuild b/media-libs/zint/zint-2.14.0.ebuild new file mode 100644 index 000000000000..543ef8d6fd42 --- /dev/null +++ b/media-libs/zint/zint-2.14.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake desktop xdg + +DESCRIPTION="Barcode encoding library supporting over 50 symbologies" +HOMEPAGE="https://www.zint.org.uk/" +SRC_URI=" + https://downloads.sourceforge.net/${PN}/${P}-src.tar.gz +" +S="${WORKDIR}/${P}-src" + +# see LICENSE +LICENSE="BSD GPL-3+" +SLOT="0/$(ver_cut 1-2)" +KEYWORDS="~amd64" +IUSE="gui png test" +RESTRICT="!test? ( test )" + +DEPEND=" + gui? ( + dev-qt/qtbase:6[gui,widgets] + dev-qt/qtsvg:6 + dev-qt/qttools:6[widgets] + ) + png? ( + media-libs/libpng:= + ) +" +RDEPEND="${DEPEND}" + +src_configure() { + local mycmakeargs=( + -DZINT_FRONTEND=ON + -DZINT_QT6=$(usex gui) + -DZINT_TEST=$(usex test) + -DZINT_UNINSTALL=OFF + -DZINT_USE_PNG=$(usex png) + -DZINT_USE_QT=$(usex gui) + ) + cmake_src_configure +} + +src_test() { + local -x QT_QPA_PLATFORM=offscreen + cmake_src_test -j1 # parallel tests cause failures to each other +} + +src_install() { + cmake_src_install + einstalldocs + if use gui; then + domenu zint-qt.desktop + doicon zint-qt.png + fi +}
