From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3458915812D for ; Tue, 31 Dec 2024 20:25:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6CC28E07BA; Tue, 31 Dec 2024 20:25:01 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5024CE07BA for ; Tue, 31 Dec 2024 20:25:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3F95433BE19 for ; Tue, 31 Dec 2024 20:25:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A084D97F for ; Tue, 31 Dec 2024 20:24:58 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1735676686.6fd8c4ffb1035b5bdd982456c28e6671b167b966.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/nomacs/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/nomacs/nomacs-3.19.1-r1.ebuild X-VCS-Directories: media-gfx/nomacs/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 6fd8c4ffb1035b5bdd982456c28e6671b167b966 X-VCS-Branch: master Date: Tue, 31 Dec 2024 20:24:58 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 33057402-9392-4b8b-898f-66fee0e16010 X-Archives-Hash: 55985862d15d504c644ba3faed3791f6 commit: 6fd8c4ffb1035b5bdd982456c28e6671b167b966 Author: Andreas Sturmlechner gentoo org> AuthorDate: Tue Dec 31 20:23:25 2024 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Tue Dec 31 20:24:46 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fd8c4ff media-gfx/nomacs: Add missing dependency Closes: https://bugs.gentoo.org/946680 Signed-off-by: Andreas Sturmlechner gentoo.org> media-gfx/nomacs/nomacs-3.19.1-r1.ebuild | 77 ++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/media-gfx/nomacs/nomacs-3.19.1-r1.ebuild b/media-gfx/nomacs/nomacs-3.19.1-r1.ebuild new file mode 100644 index 000000000000..376134cdea20 --- /dev/null +++ b/media-gfx/nomacs/nomacs-3.19.1-r1.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2024 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 +}