Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libosinfo/
Date: Sun, 28 Nov 2021 20:09:02
Message-Id: 1638129247.712522e660a58e8c4889c6c23c930e90a594b988.floppym@gentoo
1 commit: 712522e660a58e8c4889c6c23c930e90a594b988
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 25 01:38:53 2021 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 28 19:54:07 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=712522e6
7
8 sys-libs/libosinfo: migrate to hwdata
9
10 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
11
12 sys-libs/libosinfo/libosinfo-1.9.0-r1.ebuild | 60 ++++++++++++++++++++++++++++
13 1 file changed, 60 insertions(+)
14
15 diff --git a/sys-libs/libosinfo/libosinfo-1.9.0-r1.ebuild b/sys-libs/libosinfo/libosinfo-1.9.0-r1.ebuild
16 new file mode 100644
17 index 000000000000..54ada71ed302
18 --- /dev/null
19 +++ b/sys-libs/libosinfo/libosinfo-1.9.0-r1.ebuild
20 @@ -0,0 +1,60 @@
21 +# Copyright 1999-2021 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=7
25 +VALA_USE_DEPEND="vapigen"
26 +
27 +inherit meson udev vala xdg
28 +
29 +DESCRIPTION="GObject library for managing information about real and virtual OSes"
30 +HOMEPAGE="https://libosinfo.org/"
31 +SRC_URI="https://releases.pagure.org/libosinfo/${P}.tar.xz"
32 +
33 +LICENSE="GPL-2+ LGPL-2.1+"
34 +SLOT="0"
35 +
36 +IUSE="gtk-doc +introspection +vala test"
37 +RESTRICT="!test? ( test )"
38 +REQUIRED_USE="vala? ( introspection )"
39 +
40 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
41 +
42 +# Unsure about osinfo-db-tools rdep, but at least fedora does it too
43 +RDEPEND="
44 + >=dev-libs/glib-2.44:2
45 + net-libs/libsoup:2.4
46 + >=dev-libs/libxml2-2.6.0
47 + >=dev-libs/libxslt-1.0.0
48 + sys-apps/hwdata
49 + sys-apps/osinfo-db-tools
50 + sys-apps/osinfo-db
51 + introspection? ( >=dev-libs/gobject-introspection-1.56:= )
52 +"
53 +DEPEND="${RDEPEND}"
54 +# perl dep is for pod2man for automagic manpage building
55 +BDEPEND="
56 + dev-lang/perl
57 + dev-util/glib-utils
58 + gtk-doc? ( >=dev-util/gtk-doc-1.10
59 + app-text/docbook-xml-dtd:4.3 )
60 + >=sys-devel/gettext-0.19.8
61 + virtual/pkgconfig
62 + vala? ( $(vala_depend) )
63 +"
64 +
65 +src_prepare() {
66 + xdg_src_prepare
67 + use vala && vala_src_prepare
68 +}
69 +
70 +src_configure() {
71 + local emesonargs=(
72 + $(meson_use gtk-doc enable-gtk-doc)
73 + $(meson_feature introspection enable-introspection)
74 + $(meson_use test enable-tests)
75 + $(meson_feature vala enable-vala)
76 + -Dwith-pci-ids-path="${EPREFIX}"/usr/share/hwdata/pci.ids
77 + -Dwith-usb-ids-path="${EPREFIX}"/usr/share/hwdata/usb.ids
78 + )
79 + meson_src_configure
80 +}