summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Shapovalov <george@gentoo.org>2012-04-27 14:33:30 +0000
committerGeorge Shapovalov <george@gentoo.org>2012-04-27 14:33:30 +0000
commitf62bb0bf9bdff493291bdbef08b13d1abab91876 (patch)
tree7e183df48a451b44049d3e491d4c3cab6c73daae /dev-ada
parentfix info collision upon update (diff)
downloadhistorical-f62bb0bf9bdff493291bdbef08b13d1abab91876.tar.gz
historical-f62bb0bf9bdff493291bdbef08b13d1abab91876.tar.bz2
historical-f62bb0bf9bdff493291bdbef08b13d1abab91876.zip
new version, matching gnat-gcc:4.4
Package-Manager: portage-2.1.10.56/cvs/Linux x86_64
Diffstat (limited to 'dev-ada')
-rw-r--r--dev-ada/asis-gcc/ChangeLog7
-rw-r--r--dev-ada/asis-gcc/Manifest4
-rw-r--r--dev-ada/asis-gcc/asis-gcc-4.4.ebuild136
3 files changed, 145 insertions, 2 deletions
diff --git a/dev-ada/asis-gcc/ChangeLog b/dev-ada/asis-gcc/ChangeLog
index 01b455718c54..426ef202bc60 100644
--- a/dev-ada/asis-gcc/ChangeLog
+++ b/dev-ada/asis-gcc/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-ada/asis-gcc
# Copyright 2002-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ada/asis-gcc/ChangeLog,v 1.16 2012/04/27 13:53:11 george Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ada/asis-gcc/ChangeLog,v 1.17 2012/04/27 14:33:30 george Exp $
+
+*asis-gcc-4.4 (27 Apr 2012)
+
+ 27 Apr 2012; george <george@gentoo.org> +asis-gcc-4.4.ebuild:
+ new version, matching gnat-gcc:4.4
*asis-gcc-4.3.1-r1 (27 Apr 2012)
diff --git a/dev-ada/asis-gcc/Manifest b/dev-ada/asis-gcc/Manifest
index 568e7794b51d..68488ba2a335 100644
--- a/dev-ada/asis-gcc/Manifest
+++ b/dev-ada/asis-gcc/Manifest
@@ -4,6 +4,7 @@ DIST asis-gcc-4.1.2.tar.bz2 2617806 RMD160 851e91181d396c60899858d922edea2ed6f17
DIST asis-gcc-4.2.2.tar.bz2 2474467 RMD160 c5b5d26c83a41b71b1b44bd55100b23e77629c70 SHA1 38b6881c02ff53b63d508fefaa2700d1cc39823e SHA256 5da24ed1cb73845facf062d0c277bbb978fcddf3e5ac2706859205cb8ac875bb
DIST asis-gcc-4.3.0_pre132166.tar.bz2 2552217 RMD160 d8ec051778d58e3c9e00dc433309843555691ce7 SHA1 8a3690dff45eaf9e9e6813e93ef07da6fab819b8 SHA256 663144c94a3c30ec8d9af16f1b6cb40f271e858d43bdd44a9c170257a5d21263
DIST asis-gpl-2009-src.tgz 2445137 RMD160 b485c5cdeeeb258e5b505f3fb70c6805542a887a SHA1 b69d9b13ccfe16a22d77de3a37f1e6f426405418 SHA256 2bc72317de6d5f5274d04ac4366ec0a700268ae84afe8e3311bc9257a0755700
+DIST asis-gpl-2010-src.tgz 2784774 RMD160 5dc8048d4df5c77628daf800cc74047785dc8dbf SHA1 e06470169754c51069a7c05b79ea2dddb1f94e74 SHA256 2e8a94827255fa532c07e54b067655fabebcc0adaaca8a243c3068f6ffa69958
EBUILD asis-gcc-3.4.6.ebuild 4665 RMD160 2a26fa53fa8a593e91f351b66fb0fe18db44e310 SHA1 f68bd1331c9348cc5acb94956d69230b7157d425 SHA256 4efeff84f41988c24afa4df1391dde3279ae3aaf2893ffe2a9d0a421da1197ac
EBUILD asis-gcc-4.1.2-r1.ebuild 4658 RMD160 d9f02591c1bcecfbf3f89c26d9f40e3ebaf78111 SHA1 fa25d543abddf8053bc1c9cd6a3513207c516277 SHA256 03abbc67607e46dc35205b3963004fef6f3c89a6c57c768d9e540c72343b3379
EBUILD asis-gcc-4.1.2.ebuild 4740 RMD160 7ecfa92a460f03ad2f1d117bb723777e9732e1e5 SHA1 962f315285d4fc93af60891b4cb037e01f546d8f SHA256 e4426f542ff34a2c9f36bd526dd2a670278d744c9cac4124581dd103900c3c13
@@ -11,5 +12,6 @@ EBUILD asis-gcc-4.2.2.ebuild 4829 RMD160 25d643263966bcdb6145327d4ea6f084dad1ca8
EBUILD asis-gcc-4.3.0_pre132166.ebuild 4858 RMD160 ca4f8effd7ced9682075267862890c10f48e0e43 SHA1 35228e2be831c3c4c2d02225a6c795005c6ae36f SHA256 7d60d6373d16034622d949315c40765c64040462b369782f414c6126d2db055d
EBUILD asis-gcc-4.3.1-r1.ebuild 3896 RMD160 4227e43b9f564b49f2e2b41756b55a1f6fbbad2c SHA1 6add3e5657f37aceb691231766a21c48f017ee4f SHA256 3adf24e8fab71dae184a001b42a25dbb8df5ab8c3abe27badd1f43d9581a8bcd
EBUILD asis-gcc-4.3.1.ebuild 3887 RMD160 966803f5d37f040e09a98c2b51b1d2124dd29294 SHA1 7556d1c0418c02006e7002d41a0a4b26f47fb7ab SHA256 7ad186b2dc13bd45b015d71b53384d7cc850ecc0e2108a2f8b93663e9abf00c9
-MISC ChangeLog 2907 RMD160 249eab9eef79d81221293475236696b01936b032 SHA1 975732e736a19b19340fb9cb74855eb946f979d4 SHA256 ecb4d54c73e4df9fd55bc85f444c56021e385432b19162694871975edf711d6e
+EBUILD asis-gcc-4.4.ebuild 3929 RMD160 0aae61fec7e4e4a1d8475ab1dd27d40b20911d98 SHA1 ef811a7f2471836c4041173c3422593c731b521b SHA256 dae190698f9e233c709e50ca04b2279355ba3bc6839ef4f57d1023fddf4709fb
+MISC ChangeLog 3038 RMD160 3755619fdbb3f32a8839733cb5b855aaf3ff08a3 SHA1 beba265f66c35be502255f82ec35b1fdb3c6f88e SHA256 1d7ee40eabc92e18ef2e0b446dd407fc1996cfcc37b19dd46531b84cc5dc374f
MISC metadata.xml 697 RMD160 bb7db4aaaa1ac14f321b0f2d9958835b29d03cde SHA1 2a40deb3b8729e82013db46498802e6c49708c6f SHA256 d32f466670f99fd6e28bb2c1e1257adac3f78db0d8d325f9507a81f9b9a5f975
diff --git a/dev-ada/asis-gcc/asis-gcc-4.4.ebuild b/dev-ada/asis-gcc/asis-gcc-4.4.ebuild
new file mode 100644
index 000000000000..46a4cd85603b
--- /dev/null
+++ b/dev-ada/asis-gcc/asis-gcc-4.4.ebuild
@@ -0,0 +1,136 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ada/asis-gcc/asis-gcc-4.4.ebuild,v 1.1 2012/04/27 14:33:30 george Exp $
+
+inherit eutils flag-o-matic gnatbuild
+
+ACT_Ver="2010"
+Gnat_Name="gnat-gcc"
+
+DESCRIPTION="The Ada Semantic Interface Specification (semantic analysis and tools tied to compiler)"
+SRC_URI="http://dev.gentoo.org/~george/src/asis-gpl-${ACT_Ver}-src.tgz"
+HOMEPAGE="https://libre.adacore.com/"
+LICENSE="GPL-2"
+
+KEYWORDS="~amd64 ~x86"
+
+IUSE="doc"
+RDEPEND="=dev-lang/gnat-gcc-${SLOT}*"
+DEPEND="${RDEPEND}
+ doc? ( virtual/latex-base
+ app-text/texi2html )"
+
+S="${WORKDIR}/asis-gpl-${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-gcc 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 asis-gcc:${SLOT} 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}"/gnat/
+ # newer versions autogen snames.ad?
+ # Looks logical to keep it here, as this is a part of source prep
+ gnatmake xsnamest.adb
+ ./xsnamest
+ mv snames.ns snames.ads
+ mv snames.nb snames.adb
+ # need to change gcc -> gnatgcc
+ cd "${S}"
+ for fn in asis/a4g-gnat_int.adb \
+ asis/a4g-contt.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
+
+ # no point in rebuilding pregenerated docs
+ #if use doc; then
+ # emake -C documentation all || die "Failed while compiling documentation"
+ #fi
+}
+
+src_install () {
+ # README asks to run make install, claiming that some sources are built at
+ # that point
+ make all install prefix="${D}"
+ # now manually move all the stuff to proper places
+ mkdir -p "${D}${LIBPATH}"
+ mv "${D}"lib/asis/ "${D}${LIBPATH}"/adalib
+ # install the shared lib
+ chmod 0755 obj/libasis-${ACT_Ver}.so
+ cp obj/libasis-${ACT_Ver}.so "${D}${LIBPATH}"/adalib
+ # make appropriate symlinks
+ pushd "${D}${LIBPATH}"/adalib
+ ln -s libasis-${ACT_Ver}.so libasis.so
+ popd
+ # sources
+ mv "${D}"include/asis/ "${D}${LIBPATH}"/adainclude
+
+ # tools
+ mkdir -p "${D}${BINPATH}"
+ find "${S}"/tools/ -type f -executable -exec cp {} "${D}${BINPATH}" \;
+ rm -f "${D}${BINPATH}"/Makefile*
+
+ # docs and examples
+ cd "${S}"/documentation/
+ if use doc; then
+ dodoc *.txt
+ dohtml *.html
+ cd "${S}"
+ insinto /usr/share/doc/${PF}
+ doins -r documentation/*.pdf documentation/*.info tutorial/ templates/
+ fi
+
+ # cleanup empty dirs
+ rm -rf "${D}"/{bin,include,lib,share}
+}
+
+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
+}