mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-arch/createrepo_c: 1.2.1-r2
Fixes cmake4 compatibility. Allows for compiling against>=app-arch/rpm-6* Adds USE=doc (doc-c docs). python-docs requires the python shim, and I don't believe that adding that at this point is worth the effort unless someone needs it. Closes: https://bugs.gentoo.org/955466 Closes: https://bugs.gentoo.org/962948 Signed-off-by: Jaco Kroon <jaco@uls.co.za> Part-of: https://github.com/gentoo/gentoo/pull/43813 Closes: https://github.com/gentoo/gentoo/pull/43813 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
DIST createrepo_c-1.2.0.tar.gz 639118 BLAKE2B 35c9617ebab793a6eb7ad7b03ff074ef4a82739ccb602f07387099df1216f7453dd2710002e8e8383ec0253546eaa19e383895204972732ff877e74eacee0a6f SHA512 e399b635ea008ff833385107f28c6ac8514427c8be4cf45fdb2ed5cca601852c8429730e4160975ba8370ad8a74ee628dc91d1dd7629ed6d5b6fe60008d275ef
|
||||
DIST createrepo_c-1.2.1-r2-cmake4.patch 10607 BLAKE2B 366ba9be95eb0a2c5057e999638ab17d2f805a34cc5d0e454e7f9d61369183a54b1670fd6374ca0f2449b665086d48115c64b47e3616adf270cd437474b840cd SHA512 3d61b175e1d70661b1971963ac6977f75c21355019aa78c3b6c6ff1f230078047d8b2d045017f640cefd88f6bc19f7da77b5e7c5350f8d5689c71e21a4878f00
|
||||
DIST createrepo_c-1.2.1-r2-rpm6compat.patch 1993 BLAKE2B 50d6b21c0129df913ea5740067dd901a3633a3dc10c025e163d0f0fd1dd3e941c13139d92a94908bb33abd61994ea6b8786d8bc1f1bfbc889846aa7ed173cc57 SHA512 cba117543a31a36ec0bae14e8e7c629e28e6081d13d2f7ec48c38dd1d9a0f570c5986c19d14f6cc4ca28dffc8cc3cbb5fcd63f7e5fe01a26c31091bf7fb8c1e6
|
||||
DIST createrepo_c-1.2.1.tar.gz 639122 BLAKE2B 6705fd56f72934eef88b31fae725085c91b6b14a601d0f0908ed9307d72eabf17fd2258f13eeadeb7234b31d08a61eab2fc75c4b75bf8ea75ee69442715277bc SHA512 3acd54e5848ad3995d8b140b9d338fb8588c46d163e029b7203e49b3ff1a9984b55d403c3a5c590be23ebb5c5c74de369883eb51bba6fb51e8b247f9f10ab383
|
||||
|
||||
87
app-arch/createrepo_c/createrepo_c-1.2.1-r2.ebuild
Normal file
87
app-arch/createrepo_c/createrepo_c-1.2.1-r2.ebuild
Normal file
@@ -0,0 +1,87 @@
|
||||
# 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
|
||||
https://github.com/rpm-software-management/createrepo_c/commit/4e37bc582b1673ff767dbd0b570ef1c8871d3e8c.patch
|
||||
-> ${PN}-1.2.1-r2-rpm6compat.patch
|
||||
https://github.com/rpm-software-management/createrepo_c/commit/89fa02828cdaf1c710c38bde5fcbcf59538a9cce.patch
|
||||
-> ${PN}-1.2.1-r2-cmake4.patch
|
||||
"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
IUSE="doc legacy test zstd"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="doc? (
|
||||
app-text/doxygen
|
||||
)"
|
||||
|
||||
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}"
|
||||
|
||||
PATCHES=(
|
||||
"${DISTDIR}/createrepo_c-1.2.1-r2-cmake4.patch"
|
||||
"${DISTDIR}/createrepo_c-1.2.1-r2-rpm6compat.patch"
|
||||
)
|
||||
|
||||
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
|
||||
use doc && cmake_src_compile doc-c
|
||||
}
|
||||
|
||||
src_test() {
|
||||
"${S}"_build/tests/run_tests.sh || die "Failed to run C library tests"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
use doc && dodoc -r "${BUILD_DIR}/doc/html"
|
||||
}
|
||||
Reference in New Issue
Block a user