blob: 29dd0ff2a1fbeef50a5bde40ce80e112db7ec4e9 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools systemd tmpfiles
DESCRIPTION="Operating system and container binary deployment and upgrades"
HOMEPAGE="https://ostreedev.github.io/ostree/"
SRC_URI="
https://github.com/ostreedev/ostree/releases/download/v${PV}/lib${P}.tar.xz
-> ${P}.tar.xz
"
S="${WORKDIR}/lib${P}"
LICENSE="LGPL-2+"
SLOT="0"
KEYWORDS="amd64 ~arm arm64 ~loong ~ppc64 ~riscv x86"
IUSE="archive +curl doc dracut gnutls +gpg grub +http2 introspection libmount selinux sodium ssl +soup systemd zeroconf"
RESTRICT="test"
REQUIRED_USE="
dracut? ( systemd )
http2? ( curl )
"
RDEPEND="
app-arch/xz-utils
dev-libs/glib:2
sys-fs/fuse:3
sys-libs/zlib
archive? ( app-arch/libarchive:= )
curl? ( net-misc/curl )
dracut? ( sys-kernel/dracut )
gpg? (
app-crypt/gpgme:=
dev-libs/libgpg-error
)
grub? ( sys-boot/grub:2= )
introspection? ( dev-libs/gobject-introspection )
libmount? ( sys-apps/util-linux )
selinux? ( sys-libs/libselinux )
sodium? ( >=dev-libs/libsodium-1.0.14:= )
soup? ( net-libs/libsoup:3.0 )
ssl? (
gnutls? ( net-libs/gnutls:= )
!gnutls? (
dev-libs/openssl:0=
)
)
systemd? ( sys-apps/systemd:0= )
zeroconf? ( net-dns/avahi[dbus] )
"
DEPEND="${RDEPEND}
app-text/docbook-xml-dtd:4.2
app-text/docbook-xsl-stylesheets
doc? (
dev-util/gtk-doc
app-text/docbook-xml-dtd:4.3
)
"
BDEPEND="
dev-libs/libxslt
dev-util/glib-utils
sys-devel/flex
sys-devel/bison
virtual/pkgconfig
"
PATCHES=(
"${FILESDIR}"/ostree-2023.3-dont-force-clang-introspection.patch
"${FILESDIR}"/${P}-curl.patch
)
src_prepare() {
default
eautoreconf
}
src_configure() {
# Needs Bison (bug #884289)
unset YACC
local econfargs=(
--enable-man
--enable-shared
--with-grub2-mkconfig-path=grub-mkconfig
--with-modern-grub
$(use_with archive libarchive)
$(use_with curl)
$(use_with dracut dracut yesbutnoconf) #816867
$(use_enable doc gtk-doc)
$(usex introspection --enable-introspection={,} yes no)
$(use_with gpg gpgme)
$(use_enable http2)
$(use_with selinux )
$(use_with soup soup3)
--without-soup # libsoup:2.4
$(use_with libmount)
$(use ssl && { use gnutls && echo --with-crypto=gnutls || echo --with-crypto=openssl; })
$(use_with sodium ed25519-libsodium)
$(use_with systemd libsystemd)
$(use_with zeroconf avahi)
)
if use systemd; then
econfargs+=( --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" )
fi
unset ${!XDG_*} #657346 g-ir-scanner sandbox violation
econf "${econfargs[@]}"
}
src_install() {
default
find "${D}" -name '*.la' -delete || die
}
pkg_postinst() {
tmpfiles_process ostree-tmpfiles.conf
}
|