Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/ostree/
Date: Tue, 21 Jan 2020 07:48:05
Message-Id: 1579592870.98db1cf34dcf7c62f4d42e15da8180711688e4a8.zmedico@gentoo
1 commit: 98db1cf34dcf7c62f4d42e15da8180711688e4a8
2 Author: Yury Martynov <email <AT> linxon <DOT> ru>
3 AuthorDate: Sun Dec 1 12:41:33 2019 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 21 07:47:50 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98db1cf3
7
8 dev-util/ostree: 2018.9 EAPI bump, update deps and other minor chages
9
10 Closes: https://bugs.gentoo.org/690832
11 Package-Manager: Portage-2.3.79, Repoman-2.3.16
12 Signed-off-by: Yury Martynov <email <AT> linxon.ru>
13 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
14
15 dev-util/ostree/metadata.xml | 3 +
16 dev-util/ostree/ostree-2018.9-r1.ebuild | 123 ++++++++++++++++++++++++++++++++
17 2 files changed, 126 insertions(+)
18
19 diff --git a/dev-util/ostree/metadata.xml b/dev-util/ostree/metadata.xml
20 index 4fb7a62d6f2..da0ad42b602 100644
21 --- a/dev-util/ostree/metadata.xml
22 +++ b/dev-util/ostree/metadata.xml
23 @@ -31,7 +31,10 @@
24 </longdescription>
25 <use>
26 <flag name="archive">Use libarchive</flag>
27 + <flag name="dracut">Install dracut module</flag>
28 <flag name="grub">Enable grub configuration generator</flag>
29 + <flag name="http2">Use http2</flag>
30 + <flag name="httpd">Enable ostree trivial-httpd entrypoint</flag>
31 <flag name="libmount">Use libmount</flag>
32 <flag name="soup">Use libsoup for networking</flag>
33 </use>
34
35 diff --git a/dev-util/ostree/ostree-2018.9-r1.ebuild b/dev-util/ostree/ostree-2018.9-r1.ebuild
36 new file mode 100644
37 index 00000000000..e781b904463
38 --- /dev/null
39 +++ b/dev-util/ostree/ostree-2018.9-r1.ebuild
40 @@ -0,0 +1,123 @@
41 +# Copyright 1999-2019 Gentoo Authors
42 +# Distributed under the terms of the GNU General Public License v2
43 +
44 +EAPI=7
45 +
46 +inherit autotools systemd
47 +
48 +DESCRIPTION="Operating system and container binary deployment and upgrades"
49 +HOMEPAGE="https://ostree.readthedocs.io/en/latest/"
50 +SRC_URI="https://github.com/ostreedev/ostree/releases/download/v${PV}/lib${P}.tar.xz -> ${P}.tar.xz"
51 +
52 +KEYWORDS="~amd64 ~x86"
53 +LICENSE="LGPL-2+"
54 +SLOT="0"
55 +
56 +IUSE="archive curl doc dracut gnutls grub http2 httpd introspection libmount selinux ssl soup systemd zeroconf"
57 +RESTRICT="test"
58 +REQUIRED_USE="httpd? ( || ( curl soup ) )"
59 +
60 +COMMON_DEPEND="
61 + archive? ( app-arch/libarchive )
62 + app-crypt/gpgme
63 + app-arch/xz-utils
64 + curl? ( net-misc/curl )
65 + soup? ( net-libs/libsoup )
66 + dev-libs/glib:2
67 + dev-libs/libassuan
68 + dev-libs/libgpg-error
69 + dracut? ( sys-kernel/dracut )
70 + grub? ( sys-boot/grub:2= )
71 + introspection? ( dev-libs/gobject-introspection )
72 + ssl? (
73 + gnutls? ( net-libs/gnutls )
74 + !gnutls? ( dev-libs/openssl:0= ) )
75 + sys-fs/fuse:0
76 + sys-libs/zlib
77 + libmount? ( sys-apps/util-linux )
78 + selinux? ( sys-libs/libselinux )
79 + systemd? ( sys-apps/systemd:0= )
80 + zeroconf? ( net-dns/avahi[dbus] )"
81 +
82 +DEPEND="${COMMON_DEPEND}
83 + app-text/docbook-xsl-stylesheets
84 + dev-libs/libxslt
85 + doc? ( dev-util/gtk-doc )"
86 +
87 +RDEPEND="${COMMON_DEPEND}"
88 +BDEPEND="
89 + dev-util/glib-utils
90 + sys-devel/flex
91 + sys-devel/bison
92 + virtual/pkgconfig"
93 +
94 +S="${WORKDIR}/lib${P}"
95 +
96 +src_prepare() {
97 + sed -Ee 's:(XSLT_STYLESHEET = ).*:\1/usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl:' \
98 + -i Makefile.in Makefile-man.am || die
99 +
100 + # The ostree-finalize-staged.path file is missing in ostree-2018.9.tar.xz.
101 + [ -e src/boot/ostree-finalize-staged.path ] && die
102 + cat > src/boot/ostree-finalize-staged.path <<-EOF
103 + # Copyright (C) 2018 Red Hat, Inc.
104 + #
105 + # This library is free software; you can redistribute it and/or
106 + # modify it under the terms of the GNU Lesser General Public
107 + # License as published by the Free Software Foundation; either
108 + # version 2 of the License, or (at your option) any later version.
109 + #
110 + # This library is distributed in the hope that it will be useful,
111 + # but WITHOUT ANY WARRANTY; without even the implied warranty of
112 + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
113 + # Lesser General Public License for more details.
114 + #
115 + # You should have received a copy of the GNU Lesser General Public
116 + # License along with this library; if not, write to the
117 + # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
118 + # Boston, MA 02111-1307, USA.
119 +
120 + # For some implementation discussion, see:
121 + # https://lists.freedesktop.org/archives/systemd-devel/2018-March/040557.html
122 + [Unit]
123 + Description=OSTree Monitor Staged Deployment
124 + Documentation=man:ostree(1)
125 +
126 + [Path]
127 + PathExists=/run/ostree/staged-deployment
128 +
129 + [Install]
130 + WantedBy=multi-user.target
131 + EOF
132 +
133 + eautoreconf
134 + default
135 +}
136 +
137 +src_configure() {
138 + local econfargs=(
139 + --enable-man
140 + --enable-shared
141 + $(use_with archive libarchive)
142 + $(use_with curl)
143 + $(use_with dracut)
144 + $(use_enable doc gtk-doc)
145 + $(use_enable introspection)
146 + $(use_enable http2)
147 + $(use_enable httpd trivial-httpd-cmdline)
148 + $(use_with selinux )
149 + $(use_with soup)
150 + $(use_with libmount)
151 + $(use ssl && { use gnutls && echo --with-crypto=gnutls || echo --with-crypto=openssl; })
152 + $(use_with systemd libsystemd)
153 + $(use_with zeroconf avahi)
154 + )
155 +
156 + unset ${!XDG_*} #657346 g-ir-scanner sandbox violation
157 + econf ${econfargs[*]}
158 +}
159 +
160 +src_install() {
161 + default
162 + find "${D}" -name '*.la' -delete || die
163 +}