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