1 # Copyright 2017-2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT
=( python3_
{8.
.12} )
8 inherit cmake python-single-r1
10 if [[ ${PV} == 9999* ]] ; then
12 EGIT_REPO_URI
="https://github.com/openSUSE/libsolv.git"
13 EGIT_CHECKOUT_DIR
=${PN}-${PV}
15 SRC_URI
="https://github.com/openSUSE/libsolv/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
16 KEYWORDS
="~amd64 ~x86"
19 DESCRIPTION
="Library for solving packages and reading repositories"
20 HOMEPAGE
="https://github.com/openSUSE/libsolv"
24 IUSE
="static perl python ruby tcl rpm pubkey suse comps helix debian mdk arch cudf conda appdata lzma bzip2 zstd zchunk libxml2"
26 RDEPEND
="zchunk? ( app-arch/zchunk )"
28 perl? ( dev-lang/perl )
30 ruby? ( dev-lang/ruby )
38 REQUIRED_USE
="python? ( ${PYTHON_REQUIRED_USE} )"
42 -DCMAKE_C_FLAGS_RELEASE='-DNDEBUG'
43 -DENABLE_PERL=$
(usex perl
)
44 -DENABLE_PYTHON=$
(usex python
)
45 -DENABLE_RUBY=$
(usex ruby
)
46 -DENABLE_TCL=$
(usex tcl
)
48 -DENABLE_RPMDB=$
(usex rpm
)
49 -DENABLE_RPMPKG=$
(usex rpm
)
50 -DENABLE_PUBKEY=$
(usex pubkey
)
51 -DENABLE_RPMDB_BYRPMHEADER=$
(usex rpm
)
52 -DENABLE_RPMDB_LIBRPM=$
(usex rpm
)
53 -DENABLE_RPMDB_BDB=$
(usex rpm
)
54 -DENABLE_RPMPKG_LIBRPM=$
(usex rpm
)
55 -DENABLE_RPMMD=$
(usex rpm
)
56 -DENABLE_SUSEREPO=$
(usex suse
)
57 -DENABLE_COMPS=$
(usex comps
)
59 -DENABLE_HELIXREPO=$
(usex helix
)
60 -DENABLE_DEBIAN=$
(usex debian
)
61 -DENABLE_MDKREPO=$
(usex mdk
)
62 -DENABLE_ARCHREPO=$
(usex arch
)
63 -DENABLE_CUDFREPO=$
(usex cudf
)
64 -DENABLE_CONDA=$
(usex conda
)
65 -DENABLE_APPDATA=$
(usex appdata
)
67 -DENABLE_LZMA_COMPRESSION=$
(usex lzma
)
68 -DENABLE_BZIP2_COMPRESSION=$
(usex
bzip2)
69 -DENABLE_ZSTD_COMPRESSION=$
(usex zstd
)
70 -DENABLE_ZCHUNK_COMPRESSION=$
(usex zchunk
)
71 -DWITH_SYSTEM_ZCHUNK=$
(usex zchunk
)
72 -DWITH_LIBXML2=$
(usex libxml2
)