/[gentoo-x86]/sys-libs/openipmi/openipmi-2.0.18-r1.ebuild
Gentoo

Contents of /sys-libs/openipmi/openipmi-2.0.18-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri Jun 12 05:13:28 2015 UTC (4 years, 7 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +2 -2 lines
Stable for HPPA (bug #539602).

(Portage version: 2.2.20/cvs/Linux x86_64, RepoMan options: --ignore-arches, signed Manifest commit with key A792A613)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-libs/openipmi/openipmi-2.0.18-r1.ebuild,v 1.5 2015/06/11 14:17:19 ago Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python2_7 )
8
9 inherit eutils autotools python-single-r1
10
11 DESCRIPTION="Library interface to IPMI"
12 HOMEPAGE="http://sourceforge.net/projects/openipmi/"
13 MY_PN="OpenIPMI"
14 MY_P="${MY_PN}-${PV}"
15 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
16
17 LICENSE="LGPL-2.1 GPL-2"
18 SLOT="0"
19 KEYWORDS="amd64 hppa ~ia64 ppc x86"
20 IUSE="crypt snmp perl tcl python"
21 S="${WORKDIR}/${MY_P}"
22 RESTRICT='test'
23
24 RDEPEND="
25 dev-libs/glib:2
26 sys-libs/gdbm
27 crypt? ( dev-libs/openssl:0= )
28 snmp? ( net-analyzer/net-snmp )
29 perl? ( dev-lang/perl )
30 python? ( ${PYTHON_DEPS} )
31 tcl? ( dev-lang/tcl:0= )"
32 DEPEND="${RDEPEND}
33 >=dev-lang/swig-1.3.21
34 virtual/pkgconfig"
35 # Gui is broken!
36 # python? ( tcl? ( tk? ( dev-lang/tk dev-tcltk/tix ) ) )"
37
38 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
39
40 pkg_setup() {
41 use python && python-single-r1_pkg_setup
42 }
43
44 src_prepare() {
45 # Bug #338499: The installed OpenIPMIpthread.pc depends on a non-existing
46 # pthread.pc. We patch it to link -lpthread directly instead.
47 epatch "${FILESDIR}/${PN}-2.0.16-pthreads.patch"
48 # Bug #290763: The buildsys tries to compile+optimize the py file during
49 # install, when the .so might not be been added yet. We just skip the files
50 # and use python_optimize ourselves later instead.
51 sed -r -i \
52 -e '/INSTALL.*\.py[oc] /d' \
53 -e '/install-exec-local/s,OpenIPMI.pyc OpenIPMI.pyo,,g' \
54 swig/python/Makefile.{am,in}
55
56 # Bug #298250: parallel install fix.
57 sed -r -i \
58 -e '/^install-data-local:/s,$, install-exec-am,g' \
59 cmdlang/Makefile.{am,in}
60
61 # We touch the .in and .am above because if we use the below, the Perl stuff
62 # is very fragile, and often fails to link.
63 #cd "${S}"
64 #elibtoolize
65 #eautoreconf
66 }
67
68 src_configure() {
69 local myconf=""
70 myconf="${myconf} `use_with snmp ucdsnmp yes`"
71 myconf="${myconf} `use_with crypt openssl yes`"
72 myconf="${myconf} `use_with perl perl yes`"
73 myconf="${myconf} `use_with tcl tcl yes`"
74 myconf="${myconf} `use_with python python yes`"
75
76 # GUI is broken
77 #use tk && use python && use !tcl && \
78 # ewarn "Not building Tk GUI because it needs both Python AND Tcl"
79 #if use python && use tcl; then
80 # myconf="${myconf} `use_yesno tk tkinter yes`"
81 #else
82 # myconf="${myconf} `use_yesno tk tkinter no`"
83 #fi
84
85 myconf="${myconf} --without-tkinter"
86 myconf="${myconf} --with-glib --with-swig"
87 # these binaries are for root!
88 econf ${myconf} --bindir=/usr/sbin
89 }
90
91 src_install() {
92 emake DESTDIR="${D}" install
93 dodoc README* FAQ ChangeLog TODO doc/IPMI.pdf lanserv/README.emulator
94 newdoc cmdlang/README README.cmdlang
95
96 use python && python_optimize
97 }

  ViewVC Help
Powered by ViewVC 1.1.20