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

Contents of /sys-libs/openipmi/openipmi-2.0.11.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Fri May 4 07:33:12 2012 UTC (7 years, 8 months ago) by jdhore
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +3 -3 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 # Copyright 1999-2012 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.11.ebuild,v 1.9 2010/01/27 04:51:32 robbat2 Exp $
4
5 DESCRIPTION="Library interface to IPMI"
6 HOMEPAGE="http://sourceforge.net/projects/openipmi/"
7 MY_PN="OpenIPMI"
8 MY_P="${MY_PN}-${PV}"
9 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
10
11 LICENSE="LGPL-2.1 GPL-2"
12 SLOT="0"
13 KEYWORDS="amd64 ~ia64 ppc x86"
14 IUSE="crypt snmp perl tcl python"
15 S="${WORKDIR}/${MY_P}"
16 RESTRICT='test'
17
18 RDEPEND="dev-libs/glib
19 sys-libs/gdbm
20 crypt? ( dev-libs/openssl )
21 snmp? ( net-analyzer/net-snmp )
22 perl? ( dev-lang/perl )
23 python? ( dev-lang/python )
24 tcl? ( dev-lang/tcl )"
25 DEPEND="${RDEPEND}
26 >=dev-lang/swig-1.3.21
27 virtual/pkgconfig"
28 # Gui is broken!
29 # python? ( tcl? ( tk? ( dev-lang/tk dev-tcltk/tix ) ) )"
30
31 # Upstream doesn't use --without properly
32 use_yesno() {
33 yesmsg="yes"
34 [ -n "$3" ] && yesmsg="$3"
35 if use $1; then
36 echo "--with-$2=${yesmsg}"
37 else
38 echo "--without-$2"
39 fi
40 }
41
42 src_compile() {
43 local myconf=""
44 myconf="${myconf} `use_with snmp ucdsnmp yes`"
45 myconf="${myconf} `use_with crypt openssl yes`"
46 myconf="${myconf} `use_with perl perl yes`"
47 myconf="${myconf} `use_with tcl tcl yes`"
48 myconf="${myconf} `use_with python python yes`"
49
50 # GUI is broken
51 #use tk && use python && use !tcl && \
52 # ewarn "Not building Tk GUI because it needs both Python AND Tcl"
53 #if use python && use tcl; then
54 # myconf="${myconf} `use_yesno tk tkinter yes`"
55 #else
56 # myconf="${myconf} `use_yesno tk tkinter no`"
57 #fi
58
59 myconf="${myconf} --without-tkinter"
60 myconf="${myconf} --with-glib --with-swig"
61 # these binaries are for root!
62 econf ${myconf} --bindir=/usr/sbin || die "econf failed"
63 emake || die "emake failed"
64 }
65
66 src_install() {
67 # bug #298250
68 emake -j1 DESTDIR="${D}" install || die
69 dodoc README* FAQ ChangeLog TODO doc/IPMI.pdf lanserv/README.emulator
70 newdoc cmdlang/README README.cmdlang
71 }

  ViewVC Help
Powered by ViewVC 1.1.20