net-im/tencent-qq: bump version to 3.2.15_p241224
[gentoo-zh.git] / sys-libs / libsolv / libsolv-0.7.31.ebuild
blob796345b6a39e8a390fe9ddc0a44219f4b2265c2a
1 # Copyright 2017-2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 PYTHON_COMPAT=( python3_{8..12} )
8 inherit cmake python-single-r1
10 if [[ ${PV} == 9999* ]] ; then
11 inherit git-r3
12 EGIT_REPO_URI="https://github.com/openSUSE/libsolv.git"
13 EGIT_CHECKOUT_DIR=${PN}-${PV}
14 else
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"
21 LICENSE="GPL-2"
22 SLOT="0"
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 )"
27 DEPEND="
28 perl? ( dev-lang/perl )
29 rpm? ( app-arch/rpm )
30 ruby? ( dev-lang/ruby )
31 tcl? ( dev-lang/tk )
32 python? (
33 dev-lang/swig
34 ${PYTHON_DEPS}
37 BDEPEND="${DEPEND}"
38 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
40 src_configure(){
41 mycmakeargs=(
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)
47 -DUSE_VENDORDIRS=ON
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)
58 -DENABLE_HAIKU=OFF
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)
66 -DMULTI_SEMANTICS=ON
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)
74 cmake_src_configure