* [gentoo-commits] gentoo-x86 commit in dev-ada/asis-gpl: ChangeLog asis-gpl-4.1.3.2008-r1.ebuild
@ 2008-08-19 11:56 George Shapovalov (george)
0 siblings, 0 replies; only message in thread
From: George Shapovalov (george) @ 2008-08-19 11:56 UTC (permalink / raw
To: gentoo-commits
george 08/08/19 11:56:55
Modified: ChangeLog
Added: asis-gpl-4.1.3.2008-r1.ebuild
Log:
asis-2008 should go into the same new SLOT as gnat-2008. Revbumping to force
(Portage version: 2.2_rc8/cvs/Linux 2.6.25-gentoo-r4 x86_64)
Revision Changes Path
1.10 dev-ada/asis-gpl/ChangeLog
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ada/asis-gpl/ChangeLog?rev=1.10&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ada/asis-gpl/ChangeLog?rev=1.10&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ada/asis-gpl/ChangeLog?r1=1.9&r2=1.10
Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-ada/asis-gpl/ChangeLog,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- ChangeLog 7 Jul 2008 13:23:32 -0000 1.9
+++ ChangeLog 19 Aug 2008 11:56:54 -0000 1.10
@@ -1,6 +1,13 @@
# ChangeLog for dev-ada/asis-gpl
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ada/asis-gpl/ChangeLog,v 1.9 2008/07/07 13:23:32 george Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ada/asis-gpl/ChangeLog,v 1.10 2008/08/19 11:56:54 george Exp $
+
+*asis-gpl-4.1.3.2008-r1 (19 Aug 2008)
+
+ 19 Aug 2008; George Shapovalov <george@gentoo.org>
+ +asis-gpl-4.1.3.2008-r1.ebuild:
+ asis-2008 should go into the same new SLOT as gnat-2008. Revbumping to
+ force
*asis-gpl-4.1.3.2008 (07 Jul 2008)
1.1 dev-ada/asis-gpl/asis-gpl-4.1.3.2008-r1.ebuild
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ada/asis-gpl/asis-gpl-4.1.3.2008-r1.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ada/asis-gpl/asis-gpl-4.1.3.2008-r1.ebuild?rev=1.1&content-type=text/plain
Index: asis-gpl-4.1.3.2008-r1.ebuild
===================================================================
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ada/asis-gpl/asis-gpl-4.1.3.2008-r1.ebuild,v 1.1 2008/08/19 11:56:54 george Exp $
# NOTE: gnat-gpl-2007 and 2008 have "incompatible bugs"
# so, we separate asis following the separation of gnat
SLOT="4.1-2008"
inherit eutils flag-o-matic gnatbuild
ACT_Ver=$(get_version_component_range 4)
Gnat_Name="gnat-gpl"
DESCRIPTION="The Ada Semantic Interface Specification (semantic analysis and tools tied to compiler)"
SRC_URI="mirror://gentoo/${PN}-${ACT_Ver}-src.tgz"
HOMEPAGE="https://libre.adacore.com/"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
RDEPEND="=dev-lang/gnat-gpl-${PV}*"
DEPEND="${RDEPEND}
doc? ( virtual/latex-base
app-text/texi2html )"
S="${WORKDIR}/asis-${ACT_Ver}-src"
# it may be even better to force plain -O2 -pipe -ftracer here
replace-flags -O3 -O2
# we need to adjust some vars defined in gnatbuild.eclass so that they use
# gnat-gpl instead of asis
LIBPATH=${LIBPATH/${PN}/${Gnat_Name}}
BINPATH=${BINPATH/${PN}/${Gnat_Name}}
DATAPATH=${DATAPATH/${PN}/${Gnat_Name}}
QA_EXECSTACK="${BINPATH:1}/*
${LIBPATH:1}/adalib/libasis-${ACT_Ver}.so"
pkg_setup() {
currGnat=$(eselect --no-color gnat show | grep "gnat-" | awk '{ print $1 }')
if [[ "${currGnat}" != "${CTARGET}-${Gnat_Name}-${SLOT}" ]]; then
echo
eerror "The active gnat profile does not correspond to the selected"
eerror "version of asis! Please install the appropriate gnat (if you"
eerror "did not so yet) and run:"
eerror "eselect gnat set ${CTARGET}-${Gnat_Name}-${SLOT}"
eerror "env-update && source /etc/profile"
eerror "and then emerge =dev-ada/${P} again.."
echo
die
fi
}
# we need to override the eclass defined src_unpack
# and change gcc to gnatgcc where appropriate
src_unpack() {
unpack ${A}
cd "${S}"
for fn in asis/a4g-gnat_int.adb gnat/snames.adb \
tools/tool_utils/asis_ul-common.adb \
tools/gnatmetric/metrics-compute.adb; do
sed -i -e "s:\"gcc:\"gnatgcc:" ${fn}
done
}
src_compile() {
# Build the shared library first, we need -fPIC here
gnatmake -Pasis_bld -XBLD=prod -XOPSYS=default_Unix -cargs ${CFLAGS} -fPIC \
|| die "building libasis.a failed"
gnatgcc -shared -Wl,-soname,libasis-${ACT_Ver}.so \
-o obj/libasis-${ACT_Ver}.so obj/*.o -lc \
|| die "building libasis.so failed"
# build tools
for fn in tools/*; do
pushd ${fn}
gnatmake -P${fn:6}.gpr || die "building ${fn:6} failed"
popd
done
# common stuff is just docs in this case
if use doc; then
emake -C documentation all || die "Failed while compiling documentation"
fi
}
src_install () {
# install the lib
mkdir -p "${D}${LIBPATH}"/adalib
chmod 0755 obj/libasis-${ACT_Ver}.so
cp obj/libasis-${ACT_Ver}.so "${D}${LIBPATH}"/adalib
insinto ${LIBPATH}/adalib
doins obj/*.ali lib/libasis.a
# make appropriate symlinks
pushd "${D}${LIBPATH}"/adalib
ln -s libasis-${ACT_Ver}.so libasis.so
popd
# sources
insinto ${LIBPATH}/adainclude
doins gnat/*.ad[sb]
doins asis/*.ad[sb]
# tools
mkdir -p "${D}${BINPATH}"
for fn in tools/{asistant,gnat*}; do
cp ${fn}/${fn:6} "${D}${BINPATH}"
done
# docs and examples
dodoc documentation/*.txt
dohtml documentation/*.html
# info's should go into gnat-gpl dirs
insinto ${DATAPATH}/info/
doins documentation/*.info
insinto /usr/share/doc/${PF}
doins -r documentation/*.pdf tutorial/ templates/
}
pkg_postinst() {
echo
elog "The ASIS is installed for the active gnat compiler at gnat's location."
elog "No further configuration is necessary. Enjoy."
echo
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-08-19 11:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-19 11:56 [gentoo-commits] gentoo-x86 commit in dev-ada/asis-gpl: ChangeLog asis-gpl-4.1.3.2008-r1.ebuild George Shapovalov (george)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox