blob: 495e21ac476f15a7ec2da86a99f5043d705c9c5f (
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
|
# Copyright 1999-2018 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="archive curl doc gnutls grub introspection libmount selinux ssl soup systemd zeroconf"
RESTRICT="test"
S="${WORKDIR}/lib${P}"
COMMON_DEPEND="
app-arch/xz-utils:=
app-crypt/gpgme:=
dev-libs/glib:=
dev-libs/libassuan:=
dev-libs/libgpg-error:=
dev-libs/openssl:=
sys-apps/util-linux:=
sys-fs/fuse:=
sys-libs/zlib:=
archive? ( app-arch/libarchive:= )
grub? ( sys-boot/grub:* )
ssl? (
gnutls? ( net-libs/gnutls:= )
!gnutls? ( dev-libs/openssl:= )
)
libmount? ( sys-apps/util-linux:= )
selinux? ( sys-libs/libselinux:= )
soup? ( net-libs/libsoup:= )
systemd? ( sys-apps/systemd:= )
zeroconf? ( net-dns/avahi:* )
"
DEPEND="
${COMMON_DEPEND}
app-text/docbook-xsl-stylesheets
sys-devel/bison
dev-libs/libxslt
sys-devel/bison
sys-devel/flex
virtual/pkgconfig
curl? ( net-misc/curl:= )
introspection? ( dev-libs/gobject-introspection )
doc? ( dev-util/gtk-doc )
"
RDEPEND="${COMMON_DEPEND}"
src_prepare() {
default
sed -Ee 's:(XSLT_STYLESHEET = ).*:\1/usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl:' \
-i Makefile.in Makefile-man.am || die
# The ostree-finalize-staged.path file is missing in ostree-2018.9.tar.xz.
[[ -e src/boot/ostree-finalize-staged.path ]] && die
cat > src/boot/ostree-finalize-staged.path <<-EOF
# Copyright (C) 2018 Red Hat, Inc.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
# For some implementation discussion, see:
# https://lists.freedesktop.org/archives/systemd-devel/2018-March/040557.html
[Unit]
Description=OSTree Monitor Staged Deployment
Documentation=man:ostree(1)
[Path]
PathExists=/run/ostree/staged-deployment
[Install]
WantedBy=multi-user.target
EOF
}
src_configure() {
unset ${!XDG_*} #657346 g-ir-scanner sandbox violation
econf \
--enable-man \
$(use_with archive libarchive) \
$(use_with curl) \
$(use_enable doc gtk-doc) \
$(use_enable introspection) \
$(use_with selinux ) \
$(use_with soup) \
$(use_with libmount) \
$(use ssl && { use gnutls && echo --with-crypto=gnutls || echo --with-crypto=openssl; }) \
$(use_with systemd libsystemd) \
$(use_with zeroconf avahi)
}
|