summaryrefslogtreecommitdiff
path: root/dev-util/ostree/ostree-2018.5.ebuild
blob: a625a9af6c8fe006c38bf9e1e25b3d08d7c22bee (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6

DESCRIPTION="Operating system and container binary deployment and upgrades"
HOMEPAGE="https://ostree.readthedocs.io/en/latest/"
SRC_URI="https://github.com/ostreedev/${PN}/releases/download/v${PV}/lib${P}.tar.xz -> ${P}.tar.xz"

LICENSE="LGPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="grub selinux soup systemd zeroconf"
RESTRICT="test"

S="${WORKDIR}/lib${P}"
COMMON_DEPEND="
	app-arch/libarchive:=
	app-arch/xz-utils:=
	app-crypt/gpgme:=
	dev-libs/glib:=
	dev-libs/libassuan:=
	dev-libs/libgpg-error:=
	dev-libs/openssl:0=
	net-misc/curl:=
	sys-apps/util-linux:=
	sys-fs/fuse:=
	sys-libs/zlib:=

	grub? ( sys-boot/grub:* )
	selinux? ( sys-libs/libselinux:= )
	soup? ( net-libs/libsoup:= )
	systemd? ( sys-apps/systemd:= )
	zeroconf? ( net-dns/avahi:* )
"
DEPEND="
	${COMMON_DEPEND}
	sys-devel/bison
	sys-devel/flex
"
RDEPEND="${COMMON_DEPEND}"

src_configure() {
	unset ${!XDG_*} #657346 g-ir-scanner sandbox violation
	econf \
		--with-crypto=openssl \
		--with-curl \
		--with-openssl \
		$(use_with soup) \
		$(use_with selinux ) \
		$(use_with zeroconf avahi)
}