1 |
commit: b1d4964c32652ae62c7720f9ec9ba59793d83b18 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 2 13:15:17 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 2 13:25:41 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1d4964c |
7 |
|
8 |
sys-libs/openipmi: Revbump adding python3 support |
9 |
|
10 |
also remove libtool archives and optionally static libs |
11 |
|
12 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
13 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
14 |
|
15 |
sys-libs/openipmi/openipmi-2.0.27-r1.ebuild | 103 ++++++++++++++++++++++++++++ |
16 |
1 file changed, 103 insertions(+) |
17 |
|
18 |
diff --git a/sys-libs/openipmi/openipmi-2.0.27-r1.ebuild b/sys-libs/openipmi/openipmi-2.0.27-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..e4bc46a974e |
21 |
--- /dev/null |
22 |
+++ b/sys-libs/openipmi/openipmi-2.0.27-r1.ebuild |
23 |
@@ -0,0 +1,103 @@ |
24 |
+# Copyright 1999-2019 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=7 |
28 |
+ |
29 |
+PYTHON_COMPAT=( python{2_7,3_{5,6,7}} ) |
30 |
+ |
31 |
+inherit autotools python-single-r1 |
32 |
+ |
33 |
+DESCRIPTION="Library interface to IPMI" |
34 |
+HOMEPAGE="https://sourceforge.net/projects/openipmi/" |
35 |
+MY_PN="OpenIPMI" |
36 |
+MY_P="${MY_PN}-${PV/_/-}" |
37 |
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" |
38 |
+ |
39 |
+LICENSE="LGPL-2.1 GPL-2" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~x86" |
42 |
+IUSE="crypt snmp perl python static-libs tcl" |
43 |
+S="${WORKDIR}/${MY_P}" |
44 |
+RESTRICT='test' |
45 |
+ |
46 |
+RDEPEND=" |
47 |
+ dev-libs/glib:2 |
48 |
+ sys-libs/gdbm:= |
49 |
+ sys-libs/ncurses:0= |
50 |
+ sys-libs/readline:0= |
51 |
+ crypt? ( dev-libs/openssl:0= ) |
52 |
+ snmp? ( net-analyzer/net-snmp ) |
53 |
+ perl? ( dev-lang/perl ) |
54 |
+ python? ( ${PYTHON_DEPS} ) |
55 |
+ tcl? ( dev-lang/tcl:0= )" |
56 |
+DEPEND="${RDEPEND} |
57 |
+ >=dev-lang/swig-1.3.21" |
58 |
+BDEPEND="virtual/pkgconfig" |
59 |
+ |
60 |
+# Gui is broken! |
61 |
+# python? ( tcl? ( tk? ( dev-lang/tk dev-tcltk/tix ) ) )" |
62 |
+ |
63 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
64 |
+ |
65 |
+PATCHES=( |
66 |
+ "${FILESDIR}/${PN}-2.0.26-tinfo.patch" #501510 |
67 |
+ |
68 |
+ "${FILESDIR}/${PN}-2.0.26-readline.patch" |
69 |
+) |
70 |
+ |
71 |
+pkg_setup() { |
72 |
+ use python && python-single-r1_pkg_setup |
73 |
+} |
74 |
+ |
75 |
+src_prepare() { |
76 |
+ default |
77 |
+ |
78 |
+ # Bug #298250: parallel install fix. |
79 |
+ sed -r -i \ |
80 |
+ -e '/^install-data-local:/s,$, install-exec-am,g' \ |
81 |
+ cmdlang/Makefile.{am,in} || die |
82 |
+ |
83 |
+ # We touch the .in and .am above because if we use the below, the Perl stuff |
84 |
+ # is very fragile, and often fails to link. |
85 |
+ eautoreconf |
86 |
+} |
87 |
+ |
88 |
+src_configure() { |
89 |
+ local myconf=( |
90 |
+ # these binaries are for root! |
91 |
+ --bindir="${EPREFIX}"/usr/sbin |
92 |
+ --with-glib |
93 |
+ --with-glibver=2.0 |
94 |
+ --with-swig |
95 |
+ --without-tkinter |
96 |
+ $(use_with snmp ucdsnmp yes) |
97 |
+ $(use_with crypt openssl yes) |
98 |
+ $(use_with perl perl yes) |
99 |
+ $(use_with tcl tcl yes) |
100 |
+ $(use_with python python yes) |
101 |
+ ) |
102 |
+ |
103 |
+ # GUI is broken |
104 |
+ #use tk && use python && use !tcl && \ |
105 |
+ # ewarn "Not building Tk GUI because it needs both Python AND Tcl" |
106 |
+ #if use python && use tcl; then |
107 |
+ # myconf+=( $(use_with tk tkinter) ) |
108 |
+ #else |
109 |
+ # myconf+=( --without-tkinter ) |
110 |
+ #fi |
111 |
+ |
112 |
+ econf "${myconf[@]}" |
113 |
+} |
114 |
+ |
115 |
+src_install() { |
116 |
+ emake DESTDIR="${D}" install |
117 |
+ dodoc README* FAQ ChangeLog TODO doc/IPMI.pdf lanserv/README.vm |
118 |
+ newdoc cmdlang/README README.cmdlang |
119 |
+ |
120 |
+ use python && python_optimize |
121 |
+ |
122 |
+ find "${ED}" -name "*.la" -delete || die |
123 |
+ if ! use static-libs ; then |
124 |
+ find "${ED}" -name "*.a" -delete || die |
125 |
+ fi |
126 |
+} |