Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 316957 | Differences between
and this patch

Collapse All | Expand All

(-)openipmi-2.0.18.ebuild (-18 / +11 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
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.ebuild,v 1.2 2012/05/04 07:33:12 jdhore Exp $
3
# $Header: /var/cvsroot/gentoo-x86/sys-libs/openipmi/openipmi-2.0.18.ebuild,v 1.2 2012/05/04 07:33:12 jdhore Exp $
4
4
5
inherit eutils autotools python
5
EAPI=5
6
PYTHON_COMPAT=( python{2_6,2_7} )
7
8
inherit eutils autotools python-single-r1
6
9
7
DESCRIPTION="Library interface to IPMI"
10
DESCRIPTION="Library interface to IPMI"
8
HOMEPAGE="http://sourceforge.net/projects/openipmi/"
11
HOMEPAGE="http://sourceforge.net/projects/openipmi/"
Lines 41-49 Link Here
41
	fi
44
	fi
42
}
45
}
43
46
44
src_unpack() {
47
src_prepare() {
45
	unpack ${A}
46
	cd "${S}"
47
	# Bug #338499: The installed OpenIPMIpthread.pc depends on a non-existing
48
	# Bug #338499: The installed OpenIPMIpthread.pc depends on a non-existing
48
	# pthread.pc. We patch it to link -lpthread directly instead.
49
	# pthread.pc. We patch it to link -lpthread directly instead.
49
	epatch "${FILESDIR}/${PN}-2.0.16-pthreads.patch"
50
	epatch "${FILESDIR}/${PN}-2.0.16-pthreads.patch"
Lines 53-64 Link Here
53
	sed -r -i \
54
	sed -r -i \
54
		-e '/INSTALL.*\.py[oc] /d' \
55
		-e '/INSTALL.*\.py[oc] /d' \
55
		-e '/install-exec-local/s,OpenIPMI.pyc OpenIPMI.pyo,,g' \
56
		-e '/install-exec-local/s,OpenIPMI.pyc OpenIPMI.pyo,,g' \
56
		swig/python/Makefile.{am,in}
57
		swig/python/Makefile.{am,in} || die
57
58
58
	# Bug #298250: parallel install fix.
59
	# Bug #298250: parallel install fix.
59
	sed -r -i \
60
	sed -r -i \
60
		-e '/^install-data-local:/s,$, install-exec-am,g' \
61
		-e '/^install-data-local:/s,$, install-exec-am,g' \
61
		cmdlang/Makefile.{am,in}
62
		cmdlang/Makefile.{am,in} || die
62
63
63
	# We touch the .in and .am above because if we use the below, the Perl stuff
64
	# We touch the .in and .am above because if we use the below, the Perl stuff
64
	# is very fragile, and often fails to link.
65
	# is very fragile, and often fails to link.
Lines 67-73 Link Here
67
	#eautoreconf
68
	#eautoreconf
68
}
69
}
69
70
70
src_compile() {
71
src_configure() {
71
	local myconf=""
72
	local myconf=""
72
	myconf="${myconf} `use_with snmp ucdsnmp yes`"
73
	myconf="${myconf} `use_with snmp ucdsnmp yes`"
73
	myconf="${myconf} `use_with crypt openssl yes`"
74
	myconf="${myconf} `use_with crypt openssl yes`"
Lines 87-106 Link Here
87
	myconf="${myconf} --without-tkinter"
88
	myconf="${myconf} --without-tkinter"
88
	myconf="${myconf} --with-glib --with-swig"
89
	myconf="${myconf} --with-glib --with-swig"
89
	# these binaries are for root!
90
	# these binaries are for root!
90
	econf ${myconf} --bindir=/usr/sbin || die "econf failed"
91
	econf ${myconf} --bindir=/usr/sbin
91
	emake || die "emake $i failed"
92
}
92
}
93
93
94
src_install() {
94
src_install() {
95
	emake DESTDIR="${D}" install || die
95
	default
96
	dodoc README* FAQ ChangeLog TODO doc/IPMI.pdf lanserv/README.emulator
96
	dodoc README* FAQ ChangeLog TODO doc/IPMI.pdf lanserv/README.emulator
97
	newdoc cmdlang/README README.cmdlang
97
	newdoc cmdlang/README README.cmdlang
98
}
98
	use python && python_optimize "${ED}"/$(python_get_sitedir)
99
100
pkg_postinst() {
101
	use python && python_mod_optimize $(python_get_sitedir)/OpenIPMI.py
102
}
103
104
pkg_postrm() {
105
	use python && python_mod_cleanup $(python_get_sitedir)/OpenIPMI.py
106
}
99
}

Return to bug 316957