Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libosinfo/
Date: Tue, 28 Mar 2017 19:39:01
Message-Id: 1490729910.e951c7d685b15f37443abffbae2fc79f408aaff3.leio@gentoo
1 commit: e951c7d685b15f37443abffbae2fc79f408aaff3
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 28 19:28:17 2017 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 28 19:38:30 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e951c7d6
7
8 sys-libs/libosinfo: revbump with many fixes for 1.0.0
9
10 - Depend on the split osinfo-db package for proper runtime functionality; don't bother
11 avoiding build dependency on it, as tests will need it anyway. This also fixes tests.
12 - Add missing build deps on perl and intltool
13 - Pass hwids paths to configure and depends on required hwids USE flags properly
14 - Adjust rdeps to configure.ac check order and minimum deps expressed there
15 - Don't uselessly subslot := operator dep on things that don't have (sub)slots
16
17 Gentoo-bug: 602204
18 Gentoo-bug: 605124
19
20 sys-libs/libosinfo/libosinfo-1.0.0-r1.ebuild | 57 ++++++++++++++++++++++++++++
21 1 file changed, 57 insertions(+)
22
23 diff --git a/sys-libs/libosinfo/libosinfo-1.0.0-r1.ebuild b/sys-libs/libosinfo/libosinfo-1.0.0-r1.ebuild
24 new file mode 100644
25 index 00000000000..0ac90a8ae87
26 --- /dev/null
27 +++ b/sys-libs/libosinfo/libosinfo-1.0.0-r1.ebuild
28 @@ -0,0 +1,57 @@
29 +# Copyright 1999-2017 Gentoo Foundation
30 +# Distributed under the terms of the GNU General Public License v2
31 +
32 +EAPI=6
33 +VALA_USE_DEPEND="vapigen"
34 +
35 +inherit gnome2 udev vala
36 +
37 +DESCRIPTION="GObject library for managing information about real and virtual OSes"
38 +HOMEPAGE="http://libosinfo.org/"
39 +SRC_URI="https://releases.pagure.org/libosinfo/${P}.tar.gz"
40 +
41 +LICENSE="GPL-2 LGPL-2.1"
42 +SLOT="0"
43 +
44 +IUSE="+introspection +vala test"
45 +REQUIRED_USE="vala? ( introspection )"
46 +
47 +KEYWORDS="~amd64"
48 +
49 +# Unsure about osinfo-db-tools rdep, but at least fedora does it too
50 +RDEPEND="
51 + >=dev-libs/glib-2.36.0:2
52 + >=net-libs/libsoup-2.42:2.4
53 + >=dev-libs/libxml2-2.6.0
54 + >=dev-libs/libxslt-1.0.0
55 + sys-apps/hwids[pci,usb]
56 + sys-apps/osinfo-db-tools
57 + sys-apps/osinfo-db
58 + introspection? ( >=dev-libs/gobject-introspection-0.9.7:= )
59 +"
60 +# perl dep is for pod2man
61 +DEPEND="${RDEPEND}
62 + dev-lang/perl
63 + dev-libs/gobject-introspection-common
64 + >=dev-util/gtk-doc-am-1.10
65 + >=dev-util/intltool-0.40.0
66 + virtual/pkgconfig
67 + test? ( dev-libs/check )
68 + vala? ( $(vala_depend) )
69 +"
70 +
71 +src_prepare() {
72 + gnome2_src_prepare
73 + use vala && vala_src_prepare
74 +}
75 +
76 +src_configure() {
77 + gnome2_src_configure \
78 + --with-usb-ids-path=/usr/share/misc/usb.ids \
79 + --with-pci-ids-path=/usr/share/misc/pci.ids \
80 + --disable-static \
81 + $(use_enable test tests) \
82 + $(use_enable introspection) \
83 + $(use_enable vala) \
84 + --disable-coverage
85 +}