diff options
Diffstat (limited to 'dev-libs/ace/ace-5.5.3.ebuild')
-rw-r--r-- | dev-libs/ace/ace-5.5.3.ebuild | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/dev-libs/ace/ace-5.5.3.ebuild b/dev-libs/ace/ace-5.5.3.ebuild new file mode 100644 index 000000000000..e1dc2b11c678 --- /dev/null +++ b/dev-libs/ace/ace-5.5.3.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/ace/ace-5.5.3.ebuild,v 1.1 2006/11/04 00:18:43 dragonheart Exp $ + +inherit eutils autotools + +S="${WORKDIR}/ACE_wrappers" +DESCRIPTION="The Adaptive Communications Environment" +SRC_URI="http://download.dre.vanderbilt.edu/previous_versions/ACE-${PV}.tar.bz2" + +# tao? ( !ciao? ( +# http://download.dre.vanderbilt.edu/previous_versions/ACE+TAO-${PV}.tar.bz2 ) +# ciao? ( +# http://download.dre.vanderbilt.edu/previous_versions/ACE+TAO+CIAO-${PV}.tar.bz2 +# ) +# )" + +# tao currently has upstream bug +# http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=2684 + +# ciao currently isn't autoconf and depends of tao +# http://www.dre.vanderbilt.edu/~schmidt/DOC_ROOT/CIAO/CIAO-INSTALL.html + +HOMEPAGE="http://www.cs.wustl.edu/~schmidt/ACE.html" + +SLOT="0" +LICENSE="BSD as-is" +KEYWORDS="~x86 ~sparc ~ppc ~alpha ~amd64" +#IUSE="X ipv6 tao ciao" +IUSE="X ipv6" + +DEPEND="dev-libs/openssl" + +RDEPEND="${DEPEND} + X? ( || ( + ( x11-libs/libXt + x11-libs/libXaw ) + virtual/x11 ) + )" + +DEPEND="${DEPEND} + X? ( || ( + ( x11-proto/xproto ) + virtual/x11 ) + )" + +src_compile() { + export ACE_ROOT="${S}" + mkdir build + cd build + ECONF_SOURCE="${S}" + econf --enable-lib-all $(use_with X) $(use_enable ipv6) || \ + die "econf died" + # --with-qos needs ACE_HAS_RAPI + emake static_libs=1 || die +} + + +src_test() { + cd ${S}/build + make ACE_ROOT=${S} check || die "self test failed" + #einfo "src_test currently stalls after Process_Mutex_Test" +} + +src_install() { + cd build + make ACE_ROOT="${S}" DESTDIR="${D}" install || die "failed to install" +} + + +pkg_postinst() { + # This is required, as anything trying to compile against ACE will have + # problems with conflicting OS.h files if this is not done. + + local CC_MACHINE=`gcc -dumpmachine` + local CC_VERSION=`gcc -dumpversion` + if [ -d "/usr/lib/gcc-lib/${CC_MACHINE}/${CC_VERSION}/include/ace" ]; then + mv "/usr/lib/gcc-lib/${CC_MACHINE}/${CC_VERSION}/include/ace" \ + "/usr/lib/gcc-lib/${CC_MACHINE}/${CC_VERSION}/include/ace.old" + fi +} |