diff --git a/dev-libs/libpkgmanifest/Manifest b/dev-libs/libpkgmanifest/Manifest new file mode 100644 index 0000000000..59b3803a92 --- /dev/null +++ b/dev-libs/libpkgmanifest/Manifest @@ -0,0 +1 @@ +DIST libpkgmanifest-0.5.9.tar.gz 327399 BLAKE2B aae5da89df4fb0f7d05d9f33f962b6fc1b2f5bb525b4fd6190f7e49935ddd85aae10040ae1342440a08976d4ae2721b924d2a109a175ca936a5ea911cf85ba94 SHA512 e56817e7c78fede95a83c341e3c37480e907ff07b5720442b23fc8214b5d74cee047d20a428dbe3a582acd9025eac1e58a894033b766874d6591fc6f51439025 diff --git a/dev-libs/libpkgmanifest/libpkgmanifest-0.5.9.ebuild b/dev-libs/libpkgmanifest/libpkgmanifest-0.5.9.ebuild new file mode 100644 index 0000000000..5201fcef48 --- /dev/null +++ b/dev-libs/libpkgmanifest/libpkgmanifest-0.5.9.ebuild @@ -0,0 +1,67 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{12..14} ) +inherit cmake python-r1 + +DESCRIPTION="Library for working with RPM manifests" +HOMEPAGE="https://github.com/rpm-software-management/libpkgmanifest" +SRC_URI="https://github.com/rpm-software-management/libpkgmanifest/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="python test" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-cpp/yaml-cpp:= + python? ( ${PYTHON_DEPS} ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + python? ( dev-lang/swig ) + test? ( dev-cpp/gtest ) +" + +src_configure() { + local mycmakeargs=( + -DWITH_TESTS=$(usex test) + -DWITH_DOCS=NO + -DWITH_PYTHON=$(usex python) + ) + if use python; then + python_foreach_impl cmake_src_configure + else + cmake_src_configure + fi +} + +src_compile() { + if use python; then + python_foreach_impl cmake_src_compile + else + cmake_src_compile + fi +} + +src_test() { + if use python; then + python_foreach_impl cmake_src_test + else + cmake_src_test + fi +} + +src_install() { + if use python; then + python_foreach_impl cmake_src_install + python_foreach_impl python_optimize + else + cmake_src_install + fi +} diff --git a/dev-libs/libpkgmanifest/metadata.xml b/dev-libs/libpkgmanifest/metadata.xml new file mode 100644 index 0000000000..911831bf38 --- /dev/null +++ b/dev-libs/libpkgmanifest/metadata.xml @@ -0,0 +1,11 @@ + + + + + pastalian46@gmail.com + Takuya Wakazono + + + rpm-software-management/libpkgmanifest + +