diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-08-13 12:10:18 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-08-13 12:10:18 +0100 |
commit | 9574298151cf44a3b410bdb7a7076e7bed72570d (patch) | |
tree | c1fb9a389e6d111603406f0036d0ef1da0491514 /app-arch/createrepo_c/createrepo_c-1.0.0.ebuild | |
parent | d728c1a6db84b373b0b4186e631b2aa407744751 (diff) |
gentoo auto-resync : 13:08:2023 - 12:10:18
Diffstat (limited to 'app-arch/createrepo_c/createrepo_c-1.0.0.ebuild')
-rw-r--r-- | app-arch/createrepo_c/createrepo_c-1.0.0.ebuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/app-arch/createrepo_c/createrepo_c-1.0.0.ebuild b/app-arch/createrepo_c/createrepo_c-1.0.0.ebuild new file mode 100644 index 000000000000..a9a502907e62 --- /dev/null +++ b/app-arch/createrepo_c/createrepo_c-1.0.0.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" +} |