Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/openipmi: ChangeLog openipmi-2.0.16.ebuild
Date: Mon, 28 Dec 2009 00:14:48
Message-Id: E1NP3G1-00018K-2t@stork.gentoo.org
1 robbat2 09/12/28 00:14:45
2
3 Modified: ChangeLog
4 Added: openipmi-2.0.16.ebuild
5 Log:
6 Version bump. Fix QA issues per bug #219595. Python swig install per bug #290763.
7 (Portage version: 2.2_rc58/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.17 sys-libs/openipmi/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/openipmi/ChangeLog?rev=1.17&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/openipmi/ChangeLog?rev=1.17&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/openipmi/ChangeLog?r1=1.16&r2=1.17
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-libs/openipmi/ChangeLog,v
19 retrieving revision 1.16
20 retrieving revision 1.17
21 diff -p -w -b -B -u -u -r1.16 -r1.17
22 --- ChangeLog 24 Dec 2009 19:40:15 -0000 1.16
23 +++ ChangeLog 28 Dec 2009 00:14:44 -0000 1.17
24 @@ -1,6 +1,13 @@
25 # ChangeLog for sys-libs/openipmi
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/openipmi/ChangeLog,v 1.16 2009/12/24 19:40:15 flameeyes Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/openipmi/ChangeLog,v 1.17 2009/12/28 00:14:44 robbat2 Exp $
29 +
30 +*openipmi-2.0.16 (28 Dec 2009)
31 +
32 + 28 Dec 2009; Robin H. Johnson <robbat2@g.o>
33 + +openipmi-2.0.16.ebuild:
34 + Version bump. Fix QA issues per bug #219595. Python swig install per bug
35 + #290763.
36
37 24 Dec 2009; Diego E. Pettenò <flameeyes@g.o>
38 openipmi-2.0.11.ebuild:
39
40
41
42 1.1 sys-libs/openipmi/openipmi-2.0.16.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/openipmi/openipmi-2.0.16.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/openipmi/openipmi-2.0.16.ebuild?rev=1.1&content-type=text/plain
46
47 Index: openipmi-2.0.16.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-libs/openipmi/openipmi-2.0.16.ebuild,v 1.1 2009/12/28 00:14:44 robbat2 Exp $
52
53 inherit autotools python
54
55 DESCRIPTION="Library interface to IPMI"
56 HOMEPAGE="http://sourceforge.net/projects/openipmi/"
57 MY_PN="OpenIPMI"
58 MY_P="${MY_PN}-${PV}"
59 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
60
61 LICENSE="LGPL-2.1 GPL-2"
62 SLOT="0"
63 KEYWORDS="~amd64 ~ia64 ~ppc ~x86"
64 IUSE="crypt snmp perl tcl python"
65 S="${WORKDIR}/${MY_P}"
66
67 RDEPEND="dev-libs/glib
68 sys-libs/gdbm
69 crypt? ( dev-libs/openssl )
70 snmp? ( net-analyzer/net-snmp )
71 perl? ( dev-lang/perl )
72 python? ( dev-lang/python )
73 tcl? ( dev-lang/tcl )"
74 DEPEND="${RDEPEND}
75 >=dev-lang/swig-1.3.21
76 dev-util/pkgconfig"
77 # Gui is broken!
78 # python? ( tcl? ( tk? ( dev-lang/tk dev-tcltk/tix ) ) )"
79
80 # Upstream doesn't use --without properly
81 use_yesno() {
82 yesmsg="yes"
83 [ -n "$3" ] && yesmsg="$3"
84 if use $1; then
85 echo "--with-$2=${yesmsg}"
86 else
87 echo "--without-$2"
88 fi
89 }
90
91 src_unpack() {
92 unpack ${A}
93 # Bug #290763: The buildsys tries to compile+optimize the py file during
94 # install, when the .so might not be been added yet. We just skip the files
95 # and use python_mod_optimize ourselves later instead.
96 sed -r -i \
97 -e '/INSTALL.*\.py[oc] /d' \
98 -e '/install-exec-local/s,OpenIPMI.pyc OpenIPMI.pyo,,g' \
99 "${S}"/swig/python/Makefile.am \
100 "${S}"/swig/python/Makefile.in
101 # We touch the .in and .am above because if we use the below, the Perl stuff
102 # is very fragile, and often fails to link.
103 #cd "${S}"
104 #elibtoolize
105 #eautoreconf
106 }
107
108 src_compile() {
109 local myconf=""
110 myconf="${myconf} `use_with snmp ucdsnmp yes`"
111 myconf="${myconf} `use_with crypt openssl yes`"
112 myconf="${myconf} `use_with perl perl yes`"
113 myconf="${myconf} `use_with tcl tcl yes`"
114 myconf="${myconf} `use_with python python yes`"
115
116 # GUI is broken
117 #use tk && use python && use !tcl && \
118 # ewarn "Not building Tk GUI because it needs both Python AND Tcl"
119 #if use python && use tcl; then
120 # myconf="${myconf} `use_yesno tk tkinter yes`"
121 #else
122 # myconf="${myconf} `use_yesno tk tkinter no`"
123 #fi
124
125 myconf="${myconf} --without-tkinter"
126 myconf="${myconf} --with-glib --with-swig"
127 # these binaries are for root!
128 econf ${myconf} --bindir=/usr/sbin || die "econf failed"
129 emake || die "emake $i failed"
130 }
131
132 src_install() {
133 # bug #298250
134 emake -j1 DESTDIR="${D}" install || die
135 dodoc README* FAQ ChangeLog TODO doc/IPMI.pdf lanserv/README.emulator
136 newdoc cmdlang/README README.cmdlang
137 }
138
139 pkg_postinst() {
140 use python && python_mod_optimize
141 }