From d128a3b50b9f4b071ed3ab480dc6ab8706ce3a44 Mon Sep 17 00:00:00 2001 From: Takuya Wakazono Date: Sat, 10 May 2025 22:59:35 +0900 Subject: [PATCH] sys-apps/dnf5: add 5.2.13.1 Signed-off-by: Takuya Wakazono --- sys-apps/dnf5/Manifest | 1 + sys-apps/dnf5/dnf5-5.2.13.1.ebuild | 92 ++++++++++++++++++++++++++++++ 2 files changed, 93 insertions(+) create mode 100644 sys-apps/dnf5/dnf5-5.2.13.1.ebuild diff --git a/sys-apps/dnf5/Manifest b/sys-apps/dnf5/Manifest index 2ede4c2ff8..f9a3220bdf 100644 --- a/sys-apps/dnf5/Manifest +++ b/sys-apps/dnf5/Manifest @@ -1,2 +1,3 @@ DIST dnf5-5.2.11.0.tar.gz 1729306 BLAKE2B fd089677d313991b325c5e8286ab5f14e5a9835775fd9e6d8b1c9d3767c9f7602c18c62c425eb7d0469072fcb9ae2f1c4eec4459e4d8d531bf1a7176ec818e5d SHA512 be97cbead8f083916bfe6b38abc980aabb4ba3534aef836334b901194679b47ba38c122109b880e4d1c07db189896226c0be83c985e07a0c5443c475b9f6c8cf DIST dnf5-5.2.12.0.tar.gz 1744514 BLAKE2B d4b43658e9a0d8d512e1c24338f4fdf43f0e669ddbc1abbf1b2de426995448c3e7e78915c626c5024252bbd1a1e9231c0cae29358390e7ff0071b3a039056d2d SHA512 be2116ee3ae772acfbddbd81149683160c4110d44be490613aa6a65ef42512a899b00234d513f4a1fcf1b6f4481ba55bd7f1c97505dcf5211ef925ffb118b336 +DIST dnf5-5.2.13.1.tar.gz 1778552 BLAKE2B 469f2304bd6398a964214ea4c2e8b01f0fadd512dfa515759b177ec2dc62409387b90ee9debd0681273ffe8c81e9bc9855c58e855b8f9d614a1164438ad05656 SHA512 40cf7ad76a5a28d9749452ff53e5c08a28f513c4d3238bb5d6ebe3f29dac9dd7365e247ed283f186428267696d88b4a2a51c41fe74f1b6ee2436e460764b22ee diff --git a/sys-apps/dnf5/dnf5-5.2.13.1.ebuild b/sys-apps/dnf5/dnf5-5.2.13.1.ebuild new file mode 100644 index 0000000000..19f0eb4e59 --- /dev/null +++ b/sys-apps/dnf5/dnf5-5.2.13.1.ebuild @@ -0,0 +1,92 @@ +# Copyright 2024-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{12..14} ) +inherit cmake python-single-r1 + +DESCRIPTION="Command-line package manager" +HOMEPAGE="https://github.com/rpm-software-management/dnf5" +SRC_URI="https://github.com/rpm-software-management/dnf5/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+ LGPL-2.1+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="appstream nls python systemd test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=app-arch/rpm-4.17.0 + dev-cpp/sdbus-c++:0/2 + dev-cpp/toml11 + >=dev-db/sqlite-3.35.0:3 + >=dev-libs/glib-2.46.0:2 + dev-libs/json-c:= + dev-libs/libfmt:= + >=dev-libs/librepo-1.17.1 + >=dev-libs/libsolv-0.7.25 + dev-libs/libxml2 + sys-apps/util-linux + >=sys-libs/libmodulemd-2.11.2 + sys-libs/zlib + appstream? ( >=dev-libs/appstream-0.16:= ) + python? ( ${PYTHON_DEPS} ) + systemd? ( sys-apps/systemd:= ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-python/sphinx + virtual/pkgconfig + python? ( dev-lang/swig ) + test? ( + app-arch/rpm + app-arch/createrepo_c + dev-util/cppunit + ) +" + +PATCHES=( + # Prevent test suite from writing to system files. + "${FILESDIR}/${PN}-5.2.5.0-sandbox-test.patch" +) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + cmake_src_prepare + # Replace hardcoded TMPDIR. + sed -i "s|/tmp/|${T}/|" test/libdnf5/utils/test_fs.cpp || die + # remove -Werror{,=unused-result}; bug 936870 + sed -i 's/-Werror[^[:space:])]*//' CMakeLists.txt || die + # breathe is only needed for api doc + sed -i "/'breathe',/d" doc/conf.py.in || die +} + +src_configure() { + local mycmakeargs=( + -DWITH_HTML=OFF + -DWITH_PERL5=OFF + -DWITH_RUBY=OFF + -DWITH_ZCHUNK=OFF + -DWITH_PLUGIN_APPSTREAM=$(usex appstream) + -DWITH_PYTHON3=$(usex python) + -DWITH_SYSTEMD=$(usex systemd) + -DWITH_TESTS=$(usex test) + -DWITH_TRANSLATIONS=$(usex nls) + ) + cmake_src_configure +} + +src_compile() { + cmake_src_compile + cmake_src_compile doc-man +} + +src_install() { + cmake_src_install + use python && python_optimize +}