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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1BF40158089 for ; Wed, 13 Sep 2023 04:29:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4AF5E2BC014; Wed, 13 Sep 2023 04:29:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 319952BC014 for ; Wed, 13 Sep 2023 04:29:15 +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 3B889335CB4 for ; Wed, 13 Sep 2023 04:29:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 97302113E for ; Wed, 13 Sep 2023 04:29:12 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1694578954.f30f6e77558d6eb749a5d14a1ada6f34e77d3b8c.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/quazip/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/quazip/quazip-1.4-r1.ebuild X-VCS-Directories: dev-libs/quazip/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: f30f6e77558d6eb749a5d14a1ada6f34e77d3b8c X-VCS-Branch: master Date: Wed, 13 Sep 2023 04:29:12 +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: e74710d8-4c4e-4a08-b66e-e428e337224d X-Archives-Hash: ddec57dc152b76dabcf92e893b635546 commit: f30f6e77558d6eb749a5d14a1ada6f34e77d3b8c Author: Sam James gentoo org> AuthorDate: Wed Sep 13 04:22:34 2023 +0000 Commit: Sam James gentoo org> CommitDate: Wed Sep 13 04:22:34 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f30f6e77 dev-libs/quazip: fix bzip2 dep bzip2 is linked against, so no app-alternatives. Signed-off-by: Sam James gentoo.org> dev-libs/quazip/quazip-1.4-r1.ebuild | 89 ++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) diff --git a/dev-libs/quazip/quazip-1.4-r1.ebuild b/dev-libs/quazip/quazip-1.4-r1.ebuild new file mode 100644 index 000000000000..fc7a353e473e --- /dev/null +++ b/dev-libs/quazip/quazip-1.4-r1.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake multibuild + +DESCRIPTION="Simple C++ wrapper over Gilles Vollant's ZIP/UNZIP package" +HOMEPAGE="https://stachenov.github.io/quazip/" +SRC_URI="https://github.com/stachenov/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2.1-with-linking-exception" +# SONAME of libquazip1-qt5.so, check QUAZIP_LIB_SOVERSION in CMakeLists.txt +SLOT="0/1.4" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" +IUSE="bzip2 +qt5 qt6 test" +REQUIRED_USE="|| ( qt5 qt6 )" + +RESTRICT="!test? ( test )" + +# bzip2 is linked against, so no app-alternatives +COMMON_DEPEND=" + bzip2? ( app-arch/bzip2:= ) + qt5? ( dev-qt/qtcore:5 ) + qt6? ( + dev-qt/qtbase:6 + dev-qt/qt5compat:6 + ) + sys-libs/zlib[minizip] +" +DEPEND="${COMMON_DEPEND} + test? ( + qt5? ( + dev-qt/qtnetwork:5 + dev-qt/qttest:5 + ) + qt6? ( + dev-qt/qtbase:6[network] + ) + ) +" +RDEPEND="${COMMON_DEPEND}" + +PATCHES=( + # Use CTest module provided BUILD_TESTING + "${FILESDIR}/${P}-cmake.patch" +) + +pkg_setup() { + MULTIBUILD_VARIANTS=( $(usev qt5) $(usev qt6) ) +} + +src_configure() { + my_src_configure() { + local mycmakeargs=( + -DBUILD_TESTING=$(usex test) + -DQUAZIP_BZIP2=$(usex bzip2) + ) + if [[ ${MULTIBUILD_VARIANT} = qt5 ]]; then + mycmakeargs+=( + -DQUAZIP_QT_MAJOR_VERSION=5 + ) + elif [[ ${MULTIBUILD_VARIANT} = qt6 ]]; then + mycmakeargs+=( + -DQUAZIP_QT_MAJOR_VERSION=6 + ) + fi + cmake_src_configure + } + + multibuild_foreach_variant my_src_configure +} + +src_compile() { + my_src_compile() { + cmake_src_compile + use test && cmake_build qztest + } + + multibuild_foreach_variant my_src_compile +} + +src_test() { + multibuild_foreach_variant cmake_src_test +} + +src_install() { + multibuild_foreach_variant cmake_src_install +}