1 |
commit: d7c9498b322fddbb1f26cd671281535b73dbecf8 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 10 13:02:11 2020 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 10 13:02:34 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7c9498b |
7 |
|
8 |
sys-libs/libsmbios: Bump to version 2.4.3 |
9 |
|
10 |
Default enable "python" USE flag. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/708290 |
13 |
Closes: https://bugs.gentoo.org/708288 |
14 |
Package-Manager: Portage-2.3.88, Repoman-2.3.20 |
15 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
16 |
|
17 |
sys-libs/libsmbios/Manifest | 1 + |
18 |
sys-libs/libsmbios/libsmbios-2.4.3.ebuild | 79 +++++++++++++++++++++++++++++++ |
19 |
2 files changed, 80 insertions(+) |
20 |
|
21 |
diff --git a/sys-libs/libsmbios/Manifest b/sys-libs/libsmbios/Manifest |
22 |
index 49464a42fb0..a55b7cb2abb 100644 |
23 |
--- a/sys-libs/libsmbios/Manifest |
24 |
+++ b/sys-libs/libsmbios/Manifest |
25 |
@@ -1 +1,2 @@ |
26 |
DIST libsmbios-2.4.2.tar.gz 668042 BLAKE2B 2106206dce95e481ae36e033d2abe9f39402368a09686b92fd1de7d85e87ea494514e85bdf1267adb6b52060a4e6bb6001714c5d891a4c0342c814942c0458af SHA512 51d1b11447d50b768658473d01bcb6cc7f9dd5c96c26ec343f222115ffb5047ca1f035a0bfb67f94f53165eaea7a0d9b70cf01f03333a30885bbac153bf761bd |
27 |
+DIST libsmbios-2.4.3.tar.gz 644140 BLAKE2B 684bff4f6cf755796f785e9a93d4ddbe2a1af52082cdebc27d203772a6a2a0259edb4b9d19921f90fc78b48d54700223fbc2628665b963ebcb601010ff4340ab SHA512 7f6fb36fa9653e123b416b275953fb5652025e76dac3b4ec5600168e193ea56f8ac3ea1a3b5db29d2770e73d88152d712a35bf77a9b3fc5596570fae885585ad |
28 |
|
29 |
diff --git a/sys-libs/libsmbios/libsmbios-2.4.3.ebuild b/sys-libs/libsmbios/libsmbios-2.4.3.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..4e9e41d7a52 |
32 |
--- /dev/null |
33 |
+++ b/sys-libs/libsmbios/libsmbios-2.4.3.ebuild |
34 |
@@ -0,0 +1,79 @@ |
35 |
+# Copyright 1999-2020 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
40 |
+ |
41 |
+inherit autotools flag-o-matic python-single-r1 |
42 |
+ |
43 |
+DESCRIPTION="Provide access to (SM)BIOS information" |
44 |
+HOMEPAGE="http://linux.dell.com/files/libsmbios/" |
45 |
+SRC_URI="https://github.com/dell/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="GPL-2 OSL-2.0" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~ia64 ~x86" |
50 |
+IUSE="doc graphviz nls +python static-libs test" |
51 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
52 |
+ |
53 |
+RESTRICT="!test? ( test )" |
54 |
+ |
55 |
+RDEPEND="dev-libs/libxml2 |
56 |
+ sys-libs/zlib |
57 |
+ nls? ( virtual/libintl ) |
58 |
+ python? ( ${PYTHON_DEPS} )" |
59 |
+DEPEND="${RDEPEND} |
60 |
+ virtual/pkgconfig |
61 |
+ doc? ( app-doc/doxygen ) |
62 |
+ graphviz? ( media-gfx/graphviz ) |
63 |
+ nls? ( sys-devel/gettext ) |
64 |
+ test? ( >=dev-util/cppunit-1.9.6 )" |
65 |
+ |
66 |
+PATCHES=( |
67 |
+ "${FILESDIR}/${PN}-2.2.28-cppunit-tests.patch" |
68 |
+) |
69 |
+ |
70 |
+pkg_setup() { |
71 |
+ use python && python-single-r1_pkg_setup |
72 |
+} |
73 |
+ |
74 |
+src_prepare() { |
75 |
+ default |
76 |
+ |
77 |
+ # Don't build yum-plugin - we don't need it |
78 |
+ sed '/yum-plugin/d' -i Makefile.am || die |
79 |
+ |
80 |
+ eautoreconf |
81 |
+} |
82 |
+ |
83 |
+src_configure() { |
84 |
+ #Remove -O3 for bug #290097 |
85 |
+ replace-flags -O3 -O2 |
86 |
+ |
87 |
+ local myeconfargs=( |
88 |
+ $(use_enable doc doxygen) |
89 |
+ $(use_enable graphviz) |
90 |
+ $(use_enable nls) |
91 |
+ $(use_enable python) |
92 |
+ $(use_enable static-libs static) |
93 |
+ ) |
94 |
+ econf "${myeconfargs[@]}" |
95 |
+} |
96 |
+ |
97 |
+src_install() { |
98 |
+ emake install DESTDIR="${D}" |
99 |
+ |
100 |
+ if use python ; then |
101 |
+ python_scriptinto /usr/sbin |
102 |
+ python_doscript "${ED}"/usr/sbin/smbios-{{keyboard,thermal,token,wakeup,wireless}-ctl,lcd-brightness,passwd,sys-info} |
103 |
+ fi |
104 |
+ |
105 |
+ insinto /usr/include/ |
106 |
+ doins -r src/include/smbios_c |
107 |
+ |
108 |
+ einstalldocs |
109 |
+ |
110 |
+ if ! use static-libs ; then |
111 |
+ find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die |
112 |
+ fi |
113 |
+} |