From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1573338-garchives=archives.gentoo.org@lists.gentoo.org> 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 D2F06158004 for <garchives@archives.gentoo.org>; Sat, 25 Nov 2023 03:59:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 94C3C2BC023; Sat, 25 Nov 2023 03:59:48 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 755CB2BC023 for <gentoo-commits@lists.gentoo.org>; Sat, 25 Nov 2023 03:59:48 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 64817340200 for <gentoo-commits@lists.gentoo.org>; Sat, 25 Nov 2023 03:59:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D794413E0 for <gentoo-commits@lists.gentoo.org>; Sat, 25 Nov 2023 03:59:45 +0000 (UTC) From: "Sam James" <sam@gentoo.org> 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" <sam@gentoo.org> Message-ID: <1700884762.e84a011359ba4b5c5baf9a49afdf98cc9a864d0b.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/createrepo_c/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-arch/createrepo_c/Manifest app-arch/createrepo_c/createrepo_c-1.0.2.ebuild X-VCS-Directories: app-arch/createrepo_c/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: e84a011359ba4b5c5baf9a49afdf98cc9a864d0b X-VCS-Branch: master Date: Sat, 25 Nov 2023 03:59:45 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2daf3a21-5239-455d-8aef-925562ec3741 X-Archives-Hash: 4ebac95d46e336200e3448e580a7711c commit: e84a011359ba4b5c5baf9a49afdf98cc9a864d0b Author: Matt Jolly <Matt.Jolly <AT> footclan <DOT> ninja> AuthorDate: Fri Nov 24 22:07:20 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Nov 25 03:59:22 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e84a0113 app-arch/createrepo_c: add 1.0.2 Signed-off-by: Matt Jolly <Matt.Jolly <AT> footclan.ninja> Signed-off-by: Sam James <sam <AT> gentoo.org> app-arch/createrepo_c/Manifest | 1 + app-arch/createrepo_c/createrepo_c-1.0.2.ebuild | 67 +++++++++++++++++++++++++ 2 files changed, 68 insertions(+) diff --git a/app-arch/createrepo_c/Manifest b/app-arch/createrepo_c/Manifest index ee5478fff10c..732f4796a9f1 100644 --- a/app-arch/createrepo_c/Manifest +++ b/app-arch/createrepo_c/Manifest @@ -1,2 +1,3 @@ DIST createrepo_c-0.21.1.tar.gz 626012 BLAKE2B 87e7fff68bb06c9552ea80eada625e58130d171db48b0a1aa4965150b136e62c656e368e1bc7cc057e5fad105fff620bb37e171e367eb688725d2089e4181db4 SHA512 453b857ecde5aa63f57e4a783855e4f4c32a041b68c0bfbb5d5b06bc0010d6cd043ba374cb880cce1d0de160a37df2df2688e9886bf9c8d92c09fe530aa36dfe DIST createrepo_c-1.0.0.tar.gz 628628 BLAKE2B fed99e3eb7e2bb6dc9a045abb0c35c00bf4a733a1a70780109cda00b0db0bcf2ab96b466fcd4ce5b063642e900a6fb3d853870ea3af28da6c2b3af3655a49b2e SHA512 b412dd56c4e0b69467708a3646bf276b9c3a970b2f89f269b5c65a4efb961ed42769b9fca9d333588d2726e85fc80050a83a2e5b83e296f7e8b028ddd2bf9cf9 +DIST createrepo_c-1.0.2.tar.gz 629680 BLAKE2B 441b4bb6973c67325403a0ab3a34cf475daddd41c7823a6634c576f6ab5ff0b9354d8941bbd67223b9fbd0c60a0cb81130b125d66d7eb7850abc818eeeffd437 SHA512 b4ceba2f0b558843bdc04be30a10ffb785eea0beb6e1f1efe7373b2a47c8aba554f1a881194c02d1b3980332912d92aa84fdda079324b60c2d57c55e43fa9eb6 diff --git a/app-arch/createrepo_c/createrepo_c-1.0.2.ebuild b/app-arch/createrepo_c/createrepo_c-1.0.2.ebuild new file mode 100644 index 000000000000..a9a502907e62 --- /dev/null +++ b/app-arch/createrepo_c/createrepo_c-1.0.2.ebuild @@ -0,0 +1,67 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="C implementation of createrepo" +HOMEPAGE="https://github.com/rpm-software-management/createrepo_c" +if [[ ${PV} = 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/rpm-software-management/createrepo_c.git" +else + SRC_URI="https://github.com/rpm-software-management/createrepo_c/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" + +IUSE="legacy test zstd" +RESTRICT="!test? ( test )" + +DEPEND=" + app-arch/bzip2:= + app-arch/drpm + app-arch/rpm + app-arch/xz-utils + app-arch/zchunk + dev-db/sqlite:3 + dev-libs/glib:2 + dev-libs/libxml2 + dev-libs/openssl:= + net-misc/curl + sys-apps/file + sys-libs/libmodulemd + sys-libs/zlib:= + zstd? ( app-arch/zstd:= ) +" + +RDEPEND="${DEPEND}" + +src_configure() { + local mycmakeargs=( + -DENABLE_DRPM=ON + # As best I can tell, this enables distribution as a wheel. No need for this on gentoo! + -DENABLE_PYTHON=OFF + # Upstream enables some 'Legacy' stuff by default, let's put that behind a USE flag + -DENABLE_LEGACY_WEAKDEPS=$(usex legacy ON OFF) + -DWITH_LEGACY_HASHES=$(usex legacy ON OFF) + -DWITH_LIBMODULEMD=ON + -DWITH_ZCHUNK=ON + -DWITH_ZSTD=$(usex zstd) + ) + + cmake_src_configure +} + +src_compile() { + cmake_src_compile + # Tests have a magic target! + use test && cmake_src_compile tests +} + +src_test() { + "${S}"_build/tests/run_tests.sh || die "Failed to run C library tests" +}