You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/gnome-base/orbit/orbit-2.14.19-r3.ebuild

87 lines
2.4 KiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnome-base/orbit/orbit-2.14.19-r3.ebuild,v 1.1 2013/05/03 17:15:27 jlec Exp $
EAPI="5"
GCONF_DEBUG="yes"
GNOME_ORG_MODULE="ORBit2"
GNOME_TARBALL_SUFFIX="bz2"
GNOME2_LA_PUNT="yes"
inherit eutils gnome2 toolchain-funcs autotools
DESCRIPTION="ORBit2 is a high-performance CORBA ORB"
HOMEPAGE="http://projects.gnome.org/ORBit2/"
LICENSE="GPL-2 LGPL-2"
SLOT="2"
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
IUSE="pic static-libs test"
REQUIRED_USE="test? ( debug )"
RDEPEND=">=dev-libs/glib-2.8:2
>=dev-libs/libIDL-0.8.2
"
DEPEND="${RDEPEND}
dev-util/gtk-doc-am
virtual/pkgconfig
"
src_prepare() {
# Fix wrong process kill, bug #268142
sed "s:killall lt-timeout-server:killall timeout-server:" \
-i test/timeout.sh || die "sed 1 failed"
# Do not mess with CFLAGS
sed 's/-ggdb -O0//' -i configure.in configure || die "sed 2 failed"
if ! use test; then
sed -i -e 's/test //' Makefile.am || die
fi
# Drop failing test, bug #331709
sed -i -e 's/test-mem //' test/Makefile.am || die
# Fix link_protocol_is_local() for ipv4 on machines with ipv6
# https://bugzilla.gnome.org/show_bug.cgi?id=693636
epatch "${FILESDIR}/${PN}-2.14.19-link_protocol_is_local.patch"
# Build libname-server-2.a with -fPIC on hardened, bug #312161
epatch "${FILESDIR}/${PN}-2.14.19-fPIC.patch"
epatch "${FILESDIR}"/${P}-automake-1.13.patch
eautoreconf
gnome2_src_prepare
}
src_configure() {
DOCS="AUTHORS ChangeLog HACKING MAINTAINERS NEWS README* TODO"
# We need to unset IDL_DIR, which is set by RSI's IDL. This causes certain
# files to be not found by autotools when compiling ORBit. See bug #58540
# for more information. Please don't remove -- 8/18/06
unset IDL_DIR
# We need to use the hosts IDL compiler if cross-compiling, bug #262741
if tc-is-cross-compiler; then
# check that host version is present and executable
[ -x /usr/bin/orbit-idl-2 ] || die "Please emerge ~${CATEGORY}/${P} on the host system first"
G2CONF="${G2CONF} --with-idl-compiler=/usr/bin/orbit-idl-2"
fi
gnome2_src_configure \
$(use_enable pic libname-server-pic) \
$(use_enable static-libs static)
}
src_compile() {
# Parallel build fails from time to time, bug #273031
MAKEOPTS="${MAKEOPTS} -j1"
gnome2_src_compile
}
src_test() {
# can fail in parallel, see bug #235994
emake -j1 check
}