commit:     55e0c3d9516c108ec55514c1e6be874cc0d9c734
Author:     Daniel Novomeský <dnovomesky <AT> gmail <DOT> com>
AuthorDate: Sun Mar  2 11:35:55 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Apr 28 14:04:05 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55e0c3d9

media-gfx/nomacs: add 3.21.0

Signed-off-by: Daniel Novomeský <dnovomesky <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/40845
Closes: https://github.com/gentoo/gentoo/pull/40845
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-gfx/nomacs/Manifest             |  2 +
 media-gfx/nomacs/nomacs-3.21.0.ebuild | 77 +++++++++++++++++++++++++++++++++++
 2 files changed, 79 insertions(+)

diff --git a/media-gfx/nomacs/Manifest b/media-gfx/nomacs/Manifest
index f36b951538dc..d31a5b58d60e 100644
--- a/media-gfx/nomacs/Manifest
+++ b/media-gfx/nomacs/Manifest
@@ -1,2 +1,4 @@
 DIST nomacs-3.19.1.tar.gz 1928697 BLAKE2B 
ee8a10ebd777a589df179b51591893fe083505b066bf409e11a54a4bc21054d6d61d8c5e397cf01fa7907fd2e4b69401729a8fab7f1a8079769bfef53692230b
 SHA512 
7cbe80d6c336547a00761c64e591444827998aa79a52d51219ca69aacca4d3361c1e7cbccba1f9c06c7e93f09f4b732abd25757107e1c50d8a43eb45ced0ee97
+DIST nomacs-3.21.0.tar.gz 1958531 BLAKE2B 
b0a82aaf8c29e631bc3e9123fd0e81ccc277843ab2fd19e42f27c46c115f22fe91304a4c01109e98d40975bf331f39acd43455ab442d25f166df44433c713265
 SHA512 
7e19d2ecedd700aa141a6975de6edfe836e2c36fe8511b933dd77100a1cd8201f8b1988b081d8c5d3383f2e66f636201d68417ef003a7321026ab6c48c509291
 DIST nomacs-plugins-3.19.0.tar.gz 559925 BLAKE2B 
4e3d8e07974d418510d2e806980bc9793567813b9418c0754dcaaa9e6f43e88d76e35264f05e05b2e21345467c8038db3c37ce3d1b003adcd3b019796a737080
 SHA512 
36b96b0270cb7cc34ee3f9f948eb1f2e5b4facd1f6eb273afe1fbf865c7712fb6487ef59f3d4e7723b9bca7930255f4247a8381c05ee8cfb9acf2b5cc225303c
+DIST nomacs-plugins-3.21.0.tar.gz 559915 BLAKE2B 
83627d27a345a29c17155bb6496464e847cfc7d3b30174ac855aaff87bd018fd6651f0bfa3220b64dd36d9e6c53250e8799d96ff3cafeefde9e2818789b48ff7
 SHA512 
abf0b0ba479b97ae8e10889f6c6ab18ae722189236a97be5c29a7252de8123d0744fb859bf6b57a2dc02f27c83d4f988cb1f22bb1d1df21802bd618437f6eed3

diff --git a/media-gfx/nomacs/nomacs-3.21.0.ebuild 
b/media-gfx/nomacs/nomacs-3.21.0.ebuild
new file mode 100644
index 000000000000..09b343251ee3
--- /dev/null
+++ b/media-gfx/nomacs/nomacs-3.21.0.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CMAKE_BUILD_TYPE="Release" # buildsys: what a mess
+PLUGIN_PKG="${PN}-plugins-$(ver_cut 1-2).0"
+inherit cmake xdg
+
+DESCRIPTION="Qt-based image viewer"
+HOMEPAGE="https://nomacs.org/";
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
+plugins? ( 
https://github.com/novomesk/${PN}-plugins/archive/refs/tags/$(ver_cut 
1-2).0.tar.gz -> ${PLUGIN_PKG}.tar.gz )"
+CMAKE_USE_DIR="${S}/ImageLounge"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~riscv ~x86 ~amd64-linux"
+IUSE="+opencv plugins raw +tiff test zip"
+REQUIRED_USE="
+       raw? ( opencv )
+       tiff? ( opencv )
+"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       dev-qt/qt5compat:6
+       dev-qt/qtbase:6[concurrent,cups,gui,network,widgets]
+       dev-qt/qtsvg:6
+       media-gfx/exiv2:=
+       opencv? ( >=media-libs/opencv-3.4:= )
+       raw? ( media-libs/libraw:= )
+       tiff? (
+               dev-qt/qtimageformats:6
+               media-libs/tiff:=
+       )
+       zip? ( dev-libs/quazip:0=[qt6(+)] )
+"
+DEPEND="${RDEPEND}
+       test? ( dev-cpp/gtest )
+"
+BDEPEND="
+       dev-qt/qttools:6[linguist]
+       virtual/pkgconfig
+"
+
+DOCS=( src/changelog.txt )
+
+src_prepare() {
+       if use plugins ; then
+               rmdir ImageLounge/plugins || die
+               mv -v ../${PLUGIN_PKG} ImageLounge/plugins || die
+       fi
+
+       cmake_src_prepare
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DQT_VERSION_MAJOR=6
+               -DENABLE_CODE_COV=OFF
+               -DUSE_SYSTEM_QUAZIP=ON
+               -DENABLE_TRANSLATIONS=ON
+               -DENABLE_OPENCV=$(usex opencv)
+               -DENABLE_PLUGINS=$(usex plugins)
+               -DENABLE_RAW=$(usex raw)
+               -DENABLE_TESTING=$(usex test)
+               -DENABLE_TIFF=$(usex tiff)
+               -DENABLE_QUAZIP=$(usex zip)
+       )
+       cmake_src_configure
+}
+
+src_test() {
+       cmake_build core_tests
+       cmake_src_test
+}

Reply via email to