[sys-libs/openipmi] sync with tree

This commit is contained in:
Robert Förster 2014-12-26 14:53:00 +01:00
parent ff02128e55
commit c8eeb698de

View File

@ -5,7 +5,7 @@
EAPI=5 EAPI=5
PYTHON_COMPAT=( python2_7 ) PYTHON_COMPAT=( python2_7 )
inherit eutils python-single-r1 inherit eutils autotools python-single-r1
DESCRIPTION="Library interface to IPMI" DESCRIPTION="Library interface to IPMI"
HOMEPAGE="http://sourceforge.net/projects/openipmi/" HOMEPAGE="http://sourceforge.net/projects/openipmi/"
@ -20,8 +20,7 @@ IUSE="crypt snmp perl tcl python"
S="${WORKDIR}/${MY_P}" S="${WORKDIR}/${MY_P}"
RESTRICT='test' RESTRICT='test'
RDEPEND="dev-libs/popt RDEPEND="dev-libs/glib:2
dev-libs/glib
sys-libs/gdbm sys-libs/gdbm
crypt? ( dev-libs/openssl ) crypt? ( dev-libs/openssl )
snmp? ( net-analyzer/net-snmp ) snmp? ( net-analyzer/net-snmp )
@ -33,18 +32,8 @@ DEPEND="${RDEPEND}
virtual/pkgconfig" virtual/pkgconfig"
# Gui is broken! # Gui is broken!
# python? ( tcl? ( tk? ( dev-lang/tk dev-tcltk/tix ) ) )" # python? ( tcl? ( tk? ( dev-lang/tk dev-tcltk/tix ) ) )"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
# Upstream doesn't use --without properly REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
use_yesno() {
yesmsg="yes"
[ -n "$3" ] && yesmsg="$3"
if use $1; then
echo "--with-$2=${yesmsg}"
else
echo "--without-$2"
fi
}
pkg_setup() { pkg_setup() {
use python && python-single-r1_pkg_setup use python && python-single-r1_pkg_setup
@ -56,16 +45,16 @@ src_prepare() {
epatch "${FILESDIR}/${PN}-2.0.16-pthreads.patch" epatch "${FILESDIR}/${PN}-2.0.16-pthreads.patch"
# Bug #290763: The buildsys tries to compile+optimize the py file during # Bug #290763: The buildsys tries to compile+optimize the py file during
# install, when the .so might not be been added yet. We just skip the files # install, when the .so might not be been added yet. We just skip the files
# and use python_mod_optimize ourselves later instead. # and use python_optimize ourselves later instead.
sed -r -i \ sed -r -i \
-e '/INSTALL.*\.py[oc] /d' \ -e '/INSTALL.*\.py[oc] /d' \
-e '/install-exec-local/s,OpenIPMI.pyc OpenIPMI.pyo,,g' \ -e '/install-exec-local/s,OpenIPMI.pyc OpenIPMI.pyo,,g' \
swig/python/Makefile.{am,in} || die swig/python/Makefile.{am,in}
# Bug #298250: parallel install fix. # Bug #298250: parallel install fix.
sed -r -i \ sed -r -i \
-e '/^install-data-local:/s,$, install-exec-am,g' \ -e '/^install-data-local:/s,$, install-exec-am,g' \
cmdlang/Makefile.{am,in} || die cmdlang/Makefile.{am,in}
# We touch the .in and .am above because if we use the below, the Perl stuff # We touch the .in and .am above because if we use the below, the Perl stuff
# is very fragile, and often fails to link. # is very fragile, and often fails to link.
@ -99,9 +88,9 @@ src_configure() {
} }
src_install() { src_install() {
default emake DESTDIR="${D}" install
dodoc README* FAQ ChangeLog TODO doc/IPMI.pdf lanserv/README.vm dodoc README* FAQ ChangeLog TODO doc/IPMI.pdf lanserv/README.vm
newdoc cmdlang/README README.cmdlang newdoc cmdlang/README README.cmdlang
prune_libtool_files
use python && python_optimize "${ED}"/$(python_get_sitedir) use python && python_optimize
} }