summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Jolly <kangie@gentoo.org>2024-09-24 14:10:36 +1000
committerMatt Jolly <kangie@gentoo.org>2024-09-24 16:30:35 +1000
commit79536e7fa00d742c7889b9c1727cff55441273df (patch)
tree2120d363ee7cd7adc2a144303643ecc433b79fad /app-arch/createrepo_c
parentapp-arch/libarchive: Stabilize 3.7.6 ppc, #940186 (diff)
downloadgentoo-79536e7fa00d742c7889b9c1727cff55441273df.tar.gz
gentoo-79536e7fa00d742c7889b9c1727cff55441273df.tar.bz2
gentoo-79536e7fa00d742c7889b9c1727cff55441273df.zip
app-arch/createrepo_c: add 1.1.4
Signed-off-by: Matt Jolly <kangie@gentoo.org>
Diffstat (limited to 'app-arch/createrepo_c')
-rw-r--r--app-arch/createrepo_c/Manifest1
-rw-r--r--app-arch/createrepo_c/createrepo_c-1.1.4.ebuild66
2 files changed, 67 insertions, 0 deletions
diff --git a/app-arch/createrepo_c/Manifest b/app-arch/createrepo_c/Manifest
index c7761c91f6c3..a57a0c460da5 100644
--- a/app-arch/createrepo_c/Manifest
+++ b/app-arch/createrepo_c/Manifest
@@ -1,2 +1,3 @@
DIST createrepo_c-1.1.2.tar.gz 638204 BLAKE2B d0fcd916709a4afaf9842ed2f7aed7dd0f179b787fa47f47273dcdeb1119ce4c6f110278bb9da5ec40ae6573c08621a55b884b02abf2bcd9955c1430dfb55743 SHA512 ffb811f28534e6bc1551602f8ba94d0e524e2ad2304dd608210588dbff7c60502660e3367e52927eba5ee03a8dd3f5eeea7f8450fc8c4e8aecced9bb349656fe
DIST createrepo_c-1.1.3.tar.gz 638208 BLAKE2B 70ae65a7092dc9d47f6188c6bfdf70c04fc22e7179ede576f4e0050cfaa61acf736ccd70b04a88b46b459f87ff933dc30cf6eef23136673dde46dd52b7778f59 SHA512 5e7cb1312fbde6cecc54ee98c18925e28e77823240476b4f5468545a70dd07bec1d6fae65311904b068ff2e0ee824c1744f416064f5beb4af250a490269c7bbd
+DIST createrepo_c-1.1.4.tar.gz 638216 BLAKE2B 881ec936931e24b17e0af29ae830efe03e671ed0ec5d457d0f527288f3a71584fb8dc3daeea2a53ed8cfc54ba41f21115efe5ecdc30d9a7f71f29997c370cca3 SHA512 1690a1e8a133a7c0fb1d009444bedb2ee20feb08fc4788174b63e2b133fa89f612a8518ef411fbb6fcefc382575ccb497429702ab230dd10962379c7c604a434
diff --git a/app-arch/createrepo_c/createrepo_c-1.1.4.ebuild b/app-arch/createrepo_c/createrepo_c-1.1.4.ebuild
new file mode 100644
index 000000000000..afc050773235
--- /dev/null
+++ b/app-arch/createrepo_c/createrepo_c-1.1.4.ebuild
@@ -0,0 +1,66 @@
+# Copyright 2020-2024 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"
+}