Gentoo Archives: gentoo-commits

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