1 |
commit: 6f2cee9612c015d52f138c555b427490ca38f9df |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 31 08:32:58 2016 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 31 08:33:24 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f2cee96 |
7 |
|
8 |
sys-libs/openipmi: Bump to version 2.0.22 |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
sys-libs/openipmi/Manifest | 1 + |
14 |
sys-libs/openipmi/openipmi-2.0.22.ebuild | 104 +++++++++++++++++++++++++++++++ |
15 |
2 files changed, 105 insertions(+) |
16 |
|
17 |
diff --git a/sys-libs/openipmi/Manifest b/sys-libs/openipmi/Manifest |
18 |
index 4e95b9a..f8b4ded 100644 |
19 |
--- a/sys-libs/openipmi/Manifest |
20 |
+++ b/sys-libs/openipmi/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST OpenIPMI-2.0.18.tar.gz 2895686 SHA256 6c1679a1c16aade48dd929e5124d2640ff12224ac0de1bb3777e9f1030d62e01 SHA512 a6caf791fb6d5bd83234481ea3c84a408dad3eabc093dbc4681742d23b47b223d0a1715a71a9b977a03a80f5c350dd34f6591ece5ea0d9876cb6debfc80a39d4 WHIRLPOOL 3b9bd32e01c118a450c5f6ec744b5cad521d41091f786a59485b91cde05ca184bdb4d8c05d53e9494966a9a733c560190f85208bedaa3b40e2cac116e3e6a84a |
23 |
DIST OpenIPMI-2.0.21.tar.gz 3473323 SHA256 37b844d02119b94b31e2bb2bd8062ffdf6cd3eb4bc75fa6c47184e8b14fe95b8 SHA512 b684259ee5d47c36273fe6b47d60d0481c96b64b2e9421ce3190d9514e4f450b0db28d12c86a8814dcce23ba3ecfcecbbe9251d298244f1e9194a9f7563862a5 WHIRLPOOL 577da7215effe5f2e26616b4c744da42fd261263834d4d3d264220f95c4a60b3955c642d27c32af30dbf2ce0821078a463fa140edc9d3475daec7e6f84361958 |
24 |
+DIST OpenIPMI-2.0.22.tar.gz 3081893 SHA256 4988900043c35fcfa9b2bf275d6593904f6429221befb770ba6ecb5502108e55 SHA512 78017fc0b52ce6a83db45f595f50170410120c9f7394429869c177ee40ea5b924bcc0e36bb60f9368a75a2f78ff71c70ae3631ba55a207cfb6eb4f62aa44ff89 WHIRLPOOL 2948006a489fc44a836aed5a6147b766fa06ab851b1e01bc0901e1bcad6b7d1b19bc352d2dd0130edf6750ed1822fb24203439185eef1328e7ba6adfdbdefb1a |
25 |
|
26 |
diff --git a/sys-libs/openipmi/openipmi-2.0.22.ebuild b/sys-libs/openipmi/openipmi-2.0.22.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..f7b7c94 |
29 |
--- /dev/null |
30 |
+++ b/sys-libs/openipmi/openipmi-2.0.22.ebuild |
31 |
@@ -0,0 +1,104 @@ |
32 |
+# Copyright 1999-2016 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python2_7 ) |
39 |
+ |
40 |
+inherit eutils autotools python-single-r1 |
41 |
+ |
42 |
+DESCRIPTION="Library interface to IPMI" |
43 |
+HOMEPAGE="https://sourceforge.net/projects/openipmi/" |
44 |
+MY_PN="OpenIPMI" |
45 |
+MY_P="${MY_PN}-${PV}" |
46 |
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="LGPL-2.1 GPL-2" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~x86" |
51 |
+IUSE="crypt snmp perl python tcl" |
52 |
+S="${WORKDIR}/${MY_P}" |
53 |
+RESTRICT='test' |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ dev-libs/glib:2 |
57 |
+ sys-libs/gdbm |
58 |
+ crypt? ( dev-libs/openssl:0= ) |
59 |
+ snmp? ( net-analyzer/net-snmp ) |
60 |
+ perl? ( dev-lang/perl ) |
61 |
+ python? ( ${PYTHON_DEPS} ) |
62 |
+ tcl? ( dev-lang/tcl:0= )" |
63 |
+DEPEND="${RDEPEND} |
64 |
+ >=dev-lang/swig-1.3.21 |
65 |
+ virtual/pkgconfig" |
66 |
+# Gui is broken! |
67 |
+# python? ( tcl? ( tk? ( dev-lang/tk dev-tcltk/tix ) ) )" |
68 |
+ |
69 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
70 |
+ |
71 |
+PATCHES=( |
72 |
+ # Bug #338499: The installed OpenIPMIpthread.pc depends on a non-existing |
73 |
+ # pthread.pc. We patch it to link -lpthread directly instead. |
74 |
+ "${FILESDIR}/${PN}-2.0.16-pthreads.patch" |
75 |
+ |
76 |
+ # https://bugs.gentoo.org/501510 |
77 |
+ "${FILESDIR}/${PN}-2.0.21-tinfo.patch" |
78 |
+) |
79 |
+ |
80 |
+pkg_setup() { |
81 |
+ use python && python-single-r1_pkg_setup |
82 |
+} |
83 |
+ |
84 |
+src_prepare() { |
85 |
+ default |
86 |
+ |
87 |
+ # Bug #290763: The buildsys tries to compile+optimize the py file during |
88 |
+ # install, when the .so might not be been added yet. We just skip the files |
89 |
+ # and use python_optimize ourselves later instead. |
90 |
+ sed -r -i \ |
91 |
+ -e '/INSTALL.*\.py[oc] /d' \ |
92 |
+ -e '/install-exec-local/s,OpenIPMI.pyc OpenIPMI.pyo,,g' \ |
93 |
+ swig/python/Makefile.{am,in} |
94 |
+ |
95 |
+ # Bug #298250: parallel install fix. |
96 |
+ sed -r -i \ |
97 |
+ -e '/^install-data-local:/s,$, install-exec-am,g' \ |
98 |
+ cmdlang/Makefile.{am,in} |
99 |
+ |
100 |
+ # We touch the .in and .am above because if we use the below, the Perl stuff |
101 |
+ # is very fragile, and often fails to link. |
102 |
+ #cd "${S}" |
103 |
+ eautoreconf |
104 |
+} |
105 |
+ |
106 |
+src_configure() { |
107 |
+ local myconf=() |
108 |
+ myconf+=( $(use_with snmp ucdsnmp yes) ) |
109 |
+ myconf+=( $(use_with crypt openssl yes) ) |
110 |
+ myconf+=( $(use_with perl perl yes) ) |
111 |
+ myconf+=( $(use_with tcl tcl yes) ) |
112 |
+ myconf+=( $(use_with python python yes) ) |
113 |
+ |
114 |
+ # GUI is broken |
115 |
+ #use tk && use python && use !tcl && \ |
116 |
+ # ewarn "Not building Tk GUI because it needs both Python AND Tcl" |
117 |
+ #if use python && use tcl; then |
118 |
+ # myconf+=( $(use_with tk tkinter) ) |
119 |
+ #else |
120 |
+ # myconf+=( --without-tkinter ) |
121 |
+ #fi |
122 |
+ |
123 |
+ myconf+=( --without-tkinter ) |
124 |
+ myconf+=( --with-glib --with-swig ) |
125 |
+ # these binaries are for root! |
126 |
+ econf ${myconf[@]} --bindir=/usr/sbin |
127 |
+} |
128 |
+ |
129 |
+src_install() { |
130 |
+ emake DESTDIR="${D}" install |
131 |
+ dodoc README* FAQ ChangeLog TODO doc/IPMI.pdf lanserv/README.vm |
132 |
+ newdoc cmdlang/README README.cmdlang |
133 |
+ |
134 |
+ use python && python_optimize |
135 |
+} |