commit: 4bba4a25f8f2a50d1a16f3a05b1345134df7e7c4 Author: Matt Jolly <kangie <AT> gentoo <DOT> org> AuthorDate: Tue Mar 25 11:30:28 2025 +0000 Commit: Matt Jolly <kangie <AT> gentoo <DOT> org> CommitDate: Tue Mar 25 11:30:28 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bba4a25
app-arch/createrepo_c: add 1.2.1 Signed-off-by: Matt Jolly <kangie <AT> gentoo.org> app-arch/createrepo_c/Manifest | 1 + app-arch/createrepo_c/createrepo_c-1.2.1.ebuild | 66 +++++++++++++++++++++++++ 2 files changed, 67 insertions(+) diff --git a/app-arch/createrepo_c/Manifest b/app-arch/createrepo_c/Manifest index 871e6a83f864..e1e83b335cc3 100644 --- a/app-arch/createrepo_c/Manifest +++ b/app-arch/createrepo_c/Manifest @@ -1,2 +1,3 @@ DIST createrepo_c-1.1.4.tar.gz 638216 BLAKE2B 881ec936931e24b17e0af29ae830efe03e671ed0ec5d457d0f527288f3a71584fb8dc3daeea2a53ed8cfc54ba41f21115efe5ecdc30d9a7f71f29997c370cca3 SHA512 1690a1e8a133a7c0fb1d009444bedb2ee20feb08fc4788174b63e2b133fa89f612a8518ef411fbb6fcefc382575ccb497429702ab230dd10962379c7c604a434 DIST createrepo_c-1.2.0.tar.gz 639118 BLAKE2B 35c9617ebab793a6eb7ad7b03ff074ef4a82739ccb602f07387099df1216f7453dd2710002e8e8383ec0253546eaa19e383895204972732ff877e74eacee0a6f SHA512 e399b635ea008ff833385107f28c6ac8514427c8be4cf45fdb2ed5cca601852c8429730e4160975ba8370ad8a74ee628dc91d1dd7629ed6d5b6fe60008d275ef +DIST createrepo_c-1.2.1.tar.gz 639122 BLAKE2B 6705fd56f72934eef88b31fae725085c91b6b14a601d0f0908ed9307d72eabf17fd2258f13eeadeb7234b31d08a61eab2fc75c4b75bf8ea75ee69442715277bc SHA512 3acd54e5848ad3995d8b140b9d338fb8588c46d163e029b7203e49b3ff1a9984b55d403c3a5c590be23ebb5c5c74de369883eb51bba6fb51e8b247f9f10ab383 diff --git a/app-arch/createrepo_c/createrepo_c-1.2.1.ebuild b/app-arch/createrepo_c/createrepo_c-1.2.1.ebuild new file mode 100644 index 000000000000..b6e7ce841917 --- /dev/null +++ b/app-arch/createrepo_c/createrepo_c-1.2.1.ebuild @@ -0,0 +1,66 @@ +# Copyright 2020-2025 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 + app-arch/zstd:= + >=dev-db/sqlite-3.6.18:3 + dev-libs/glib:2 + dev-libs/libxml2 + dev-libs/openssl:= + net-misc/curl + sys-apps/file + sys-libs/libmodulemd + sys-libs/zlib:= +" + +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 + ) + + 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" +}
