1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools systemd
8 DESCRIPTION="Operating system and container binary deployment and upgrades"
9 HOMEPAGE="https://ostree.readthedocs.io/en/latest/"
10 SRC_URI="https://github.com/ostreedev/ostree/releases/download/v${PV}/lib${P}.tar.xz -> ${P}.tar.xz"
12 KEYWORDS="~amd64 ~x86"
16 IUSE="archive curl doc dracut gnutls grub http2 httpd introspection libmount selinux ssl soup systemd zeroconf"
18 REQUIRED_USE="httpd? ( || ( curl soup ) )"
21 archive? ( app-arch/libarchive )
24 curl? ( net-misc/curl )
25 soup? ( net-libs/libsoup )
29 dracut? ( sys-kernel/dracut )
30 grub? ( sys-boot/grub:2= )
31 introspection? ( dev-libs/gobject-introspection )
33 gnutls? ( net-libs/gnutls )
34 !gnutls? ( dev-libs/openssl:0= ) )
37 libmount? ( sys-apps/util-linux )
38 selinux? ( sys-libs/libselinux )
39 systemd? ( sys-apps/systemd:0= )
40 zeroconf? ( net-dns/avahi[dbus] )"
42 DEPEND="${COMMON_DEPEND}
43 app-text/docbook-xsl-stylesheets
45 doc? ( dev-util/gtk-doc )"
47 RDEPEND="${COMMON_DEPEND}"
54 S="${WORKDIR}/lib${P}"
57 sed -Ee 's:(XSLT_STYLESHEET = ).*:\1/usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl:' \
58 -i Makefile.in Makefile-man.am || die
68 $(use_with archive libarchive)
71 $(use_enable doc gtk-doc)
72 $(use_enable introspection)
74 $(use_enable httpd trivial-httpd-cmdline)
78 $(use ssl && { use gnutls && echo --with-crypto=gnutls || echo --with-crypto=openssl; })
79 $(use_with systemd libsystemd)
80 $(use_with zeroconf avahi)
83 unset ${!XDG_*} #657346 g-ir-scanner sandbox violation
89 find "${D}" -name '*.la' -delete || die