ChangeLog

# ChangeLog for dev-ada/glade
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-ada/glade/ChangeLog,v 1.3 2008/01/27 00:11:43 george Exp $

27 Jan 2008; George Shapovalov glade-2006.0.ebuild:
adjusted DEPEND to use new virtual/ada, minor cleanups

25 Sep 2007; George Shapovalov glade-2006.0.ebuild:
adjusted ebuild to follow eclass reorg, gnat_src_unpack was factored out

*glade-2006.0 (05 Feb 2007)

05 Feb 2007; George Shapovalov +glade-2006.0.ebuild,+metadata.xml :
initial addition

Manifest

DIST glade-2006.0.tar.bz2 393969 RMD160 478e8082febce36d0997e76c793d534b3789ee65 SHA1 378c97b2db45de633b0bc462f48ae73fad4b89c7 SHA256 0a0ef4b7aeb426b4b298b38fcdb9d7236b56a9c5aa6d16c24745450587b6ef85
EBUILD glade-2006.0.ebuild 2381 RMD160 e66a9115b63713c67aa257160c7b11b7574e4ea2 SHA1 55c63ed31f7fd7718de8ae13d2a3caa567b6d98d SHA256 f04c2f9c09795c6103a661195ba0a50d736ddbb1e8749b15ffb8ce3fdabe67ed
MISC ChangeLog 620 RMD160 fde76a903873bb2e97e1d45c92b7fc7ee72409d1 SHA1 b1c66fd78430a9754f42df867f0d9675064f9c6f SHA256 2d110cd41808174f613a5527368e565569392cc435b540625ae5fe4bc333e94b
MISC metadata.xml 156 RMD160 176ce2ddfa15a21eb2b752633f3514cc3640749e SHA1 de9b70211ac77fb8e22706d4e968b04a634f65f2 SHA256 34f8bec858b5da24b0fc4d703932bf225d4ee545f13cc253e42d8bc84956dbec

glade-2006.0.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ada/glade/glade-2006.0.ebuild,v 1.4 2008/01/27 00:11:43 george Exp $

inherit gnat

IUSE=""

DESCRIPTION="An implementation of the Distributed Systems Annex for the GNAT compiler"
HOMEPAGE="http://libre2.adacore.com/"
SRC_URI="mirror://gentoo/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"

DEPEND="virtual/ada"

# temporary install pool
DN="${WORKDIR}/LocalD"

src_unpack() {
unpack ${A}

cd "${S}"
# configure performs some stupid check and in a wrong way, we will surely
# have a modern enough gnat
sed -i -e "s:-le \"\$am_gnatls_date\":-le \"20040909\":" configure
}

lib_compile()
{
econf --with-optimization="${CFLAGS}" || die "econf failed"
emake || die "make failed"
einfo "lib_compile completed"
}

# NOTE: we are using $1 - the passed gnat profile name
lib_install()
{
# This package expands the libs and sources rovided by compiler. Therefore
# we install in yet another local location, to bypass gnat's automation.
# The compiler specific stuf is then moved to ${D} directly. Not ideal, as
# this hook is called from within src_compile, but alternatives are more
# complex. The next version should probably be done mirroring the asis-xxx.
make prefix="${DN}" \
bindir="${DN}"/$(get_gnat_value PATH) \
install || die "make install failed"
#
# Makefile does not seem to accept much more than bindir, so the rest we
# will move manually
local Gnat_Libdir=$(get_gnat_value ADA_OBJECTS_PATH)
local Gnat_Incdir=$(get_gnat_value ADA_INCLUDE_PATH)
mkdir -p "${DN}/${Gnat_Libdir}"
mv "${DN}/lib/garlic"/*.ali "${DN}/lib/garlic"/libgarlic.a "${DN}/${Gnat_Libdir}"

mkdir -p "${DN}/${Gnat_Incdir}"
mv "${DN}/lib/garlic"/*.ad? "${DN}/${Gnat_Incdir}"
rm -rf "${DN}/lib"
}

src_install ()
{
# library is installed into the corresponding gnat, no extra env setting
# necessary
echo "" > ${LibEnv}

gnat_src_install

# clean empty dirs
rm -rf "${D}"/usr/share/gnat/ "${D}"/usr/lib/ada/

# move prepared stuff over
cp -rp "${DN}"/* "${D}"
dodoc README NEWS
insinto /usr/share/doc/${PF}
doins -r Examples/
}

pkg_postinst() {
echo
elog "GLADE has been installed at the gnat compiler location, expanding System Library."
elog "No further configuration is necessary. Enjoy."
echo
}

metadata.xml




ada