Portage is a package management system used by Gentoo Linux
# ChangeLog for dev-ada/polyorb
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-ada/polyorb/ChangeLog,v 1.2 2008/01/27 00:15:45 george Exp $
27 Jan 2008; George Shapovalov
adjusted DEPEND to use new virtual/ada, minor cleanups
*polyorb-2.1.0 (18 Dec 2006)
18 Dec 2006; George Shapovalov
first addition
DIST polyorb-2.1.0.tar.bz2 1852658 RMD160 172ccbd2af87f812f4faef738835c544dac8bd9b SHA1 41a330dca124ed1a58e5bd05d6f8afa6a9df7766 SHA256 66c5e33894f96ec1f02da4e43f5805655143c3d51e4d8eedbfa5a903aac40b25
EBUILD polyorb-2.1.0.ebuild 1991 RMD160 a6b3f1645c438c5e92593073ec4598aeca1ec646 SHA1 8e9a7c5f103e6fae2452dbe22c76796b357a99f4 SHA256 c03cdb89bc0a19eda9a65d1dad115743aa78d222d3362cbc8b6b43a2e472c2e4
MISC ChangeLog 460 RMD160 7bcaca896d078e4d71307970de6867a4b3766436 SHA1 b9b2406daa3d75688a381c5bc869fb4118b99e03 SHA256 26fab87f41534f314e55cd65a72430d59b4c1a2c3bdd6f9397175415d5813e55
MISC metadata.xml 938 RMD160 d56fe21a5d0e3476dea7db8c325618f6ec007502 SHA1 47efe6a2dbcf0f11b04f1bd9d144e018ace7579d SHA256 2f009a0f62b8fc89cc7188d5bedfcd8cea774d70456f69454ad2ec6cd544a377
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ada/polyorb/polyorb-2.1.0.ebuild,v 1.6 2008/01/27 00:15:45 george Exp $
inherit gnat
IUSE="doc ssl"
DESCRIPTION="A CORBA implementation for Ada"
HOMEPAGE="http://libre.adacore.com/polyorb/"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
RDEPEND="ssl? ( dev-libs/openssl )"
DEPEND="${RDEPEND}
virtual/ada"
#lib_compile()
lib_compile()
{
econf --libdir=/usr/lib \
$(use_with ssl openssl) || die "econf failed"
#--enable-shared \
# NOTE: --libdir is passed here to simplify logic - all the proper files
# are anyway moved to the final destination by the eclass
emake || die "make failed"
}
# NOTE: we are using $1 - the passed gnat profile name
#lib_install() {
lib_install()
{
make DESTDIR=${DL} install || die "install failed"
# move installed files to appropriate locations
mv ${DL}/usr/* ${DL}
find ${DL} -name "*.ali" -exec mv {} ${DL}/lib \;
chmod 0444 ${DL}/lib/*.ali
# remove sources and other common stuff
rm -rf "${DL}"/{include,usr}
# fix paths in polyorb-config
sed -i -e "s:includedir=\"\${prefix}/include\":includedir=/usr/include/ada:" \
-e "s:libdir=\"/usr/lib\":libdir=${AdalibLibTop}/$1/${PN}/lib:" \
${DL}/bin/${PN}-config
}
src_install ()
{
cd "${S}"
# install sources
dodir ${AdalibSpecsDir}/${PN}
insinto ${AdalibSpecsDir}/${PN}
doins -r src/*
#set up environment
echo "PATH=%DL%/bin" > ${LibEnv}
echo "LDPATH=%DL%/lib" >> ${LibEnv}
echo "ADA_OBJECTS_PATH=%DL%/lib" >> ${LibEnv}
echo "ADA_INCLUDE_PATH=/usr/include/ada/${PN}" >> ${LibEnv}
gnat_src_install
dodoc CHANGE_10049 FEATURES MANIFEST NEWS README
doinfo docs/*.info
if use doc; then
dohtml docs/polyorb_ug.html/*.html
insinto /usr/share/doc/${PF}
doins docs/*.pdf
dodir /usr/share/doc/${PF}/examples
insinto /usr/share/doc/${PF}/examples
doins -r examples/*
fi
}