summaryrefslogtreecommitdiff
blob: 7a4f717f367a0b7b74686347b1b4998c3cab3f44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit cmake

DESCRIPTION="C implementation of createrepo"
HOMEPAGE="https://github.com/rpm-software-management/createrepo_c"
SRC_URI="https://github.com/rpm-software-management/createrepo_c/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
# Notes: Help with enabling the python support would be great

DEPEND="app-arch/bzip2:=
	app-arch/rpm
	dev-db/sqlite:3
	dev-libs/glib:2
	dev-libs/libxml2
	dev-libs/openssl:=
	net-misc/curl
	sys-apps/file
	sys-libs/zlib:="
RDEPEND="${DEPEND}
	app-arch/lzma"

src_configure() {
	# Other than for python (where tests are failing) we have special no-in-tree dependencies.
	local mycmakeargs=(
		-DENABLE_DRPM=OFF
		-DENABLE_PYTHON=OFF
		-DWITH_ZCHUNK=OFF
		-DWITH_LIBMODULEMD=OFF
	)
	cmake_src_configure
}