added the ACT version of asis
authorGeorge Shapovalov <george@gentoo.org>
Thu, 26 Oct 2006 15:31:39 +0000 (15:31 +0000)
committerGeorge Shapovalov <george@gentoo.org>
Thu, 26 Oct 2006 15:31:39 +0000 (15:31 +0000)
Package-Manager: portage-2.1.2_pre3-r9

dev-ada/asis-gpl/ChangeLog [new file with mode: 0644]
dev-ada/asis-gpl/Manifest [new file with mode: 0644]
dev-ada/asis-gpl/asis-gpl-3.4.6.2006.ebuild [new file with mode: 0644]
dev-ada/asis-gpl/files/digest-asis-gpl-3.4.6.2006 [new file with mode: 0644]
dev-ada/asis-gpl/metadata.xml [new file with mode: 0644]

diff --git a/dev-ada/asis-gpl/ChangeLog b/dev-ada/asis-gpl/ChangeLog
new file mode 100644 (file)
index 0000000..c67ffbd
--- /dev/null
@@ -0,0 +1,10 @@
+# ChangeLog for dev-ada/asis-gpl
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ada/asis-gpl/ChangeLog,v 1.1 2006/10/26 15:31:39 george Exp $
+
+*asis-gpl-3.4.6.2006 (26 Oct 2006)
+
+  26 Oct 2006; George Shapovalov <george@gentoo.org> +metadata.xml,
+  +asis-gpl-3.4.6.2006.ebuild:
+  added the ACT version of asis
+
diff --git a/dev-ada/asis-gpl/Manifest b/dev-ada/asis-gpl/Manifest
new file mode 100644 (file)
index 0000000..8b19931
--- /dev/null
@@ -0,0 +1,16 @@
+DIST asis-gpl-2006.tar.bz2 1546623 RMD160 98dbf455cb45a9cd2352b01d624cae5153b9b881 SHA1 6bd02da83d8c1eede5dd9f038cbcf436201f4d70 SHA256 66825814792b1ddce9a6e3cc43c7426f9a563d9dbaa1b254884139b51279ebf4
+EBUILD asis-gpl-3.4.6.2006.ebuild 3167 RMD160 1c99f414548c366b34938b8471ea18f9f12f6ca7 SHA1 1acc6f2e0e124b1d82a6a0b4c004b60099621c7f SHA256 64eac0daedc2ef457af872a8344c91c1e24e410d99de8425caa4d88ef2950ae4
+MD5 06597a5c84d1c3705ab911d74b399f07 asis-gpl-3.4.6.2006.ebuild 3167
+RMD160 1c99f414548c366b34938b8471ea18f9f12f6ca7 asis-gpl-3.4.6.2006.ebuild 3167
+SHA256 64eac0daedc2ef457af872a8344c91c1e24e410d99de8425caa4d88ef2950ae4 asis-gpl-3.4.6.2006.ebuild 3167
+MISC ChangeLog 373 RMD160 3b213b967309c5e62ef120fd789c1b2a0258d013 SHA1 b16a03e68fb407c17ce80969c14a3165bba01fb1 SHA256 6f44bfda4fdfff73e2c65262f6fe8174a0e9d501df8368f7835712f0ca0ab2e8
+MD5 aa50ab9ea73c59524679e9e96d306b8a ChangeLog 373
+RMD160 3b213b967309c5e62ef120fd789c1b2a0258d013 ChangeLog 373
+SHA256 6f44bfda4fdfff73e2c65262f6fe8174a0e9d501df8368f7835712f0ca0ab2e8 ChangeLog 373
+MISC metadata.xml 637 RMD160 6df3899e69c0810ca05efcbcff060061a15a73ac SHA1 e1a007ec0c698ac861bea0644ade8d8b959beecb SHA256 308a2c7d3860cb42a0227e831e43c12da9c1e914696e3fc38013b31dc2896863
+MD5 e02eb39aefd967b3bccfdd0cc4771166 metadata.xml 637
+RMD160 6df3899e69c0810ca05efcbcff060061a15a73ac metadata.xml 637
+SHA256 308a2c7d3860cb42a0227e831e43c12da9c1e914696e3fc38013b31dc2896863 metadata.xml 637
+MD5 a73ee5d92b8be8d896d08328577f1938 files/digest-asis-gpl-3.4.6.2006 247
+RMD160 c600e315776203e4a1aa2c101b35de4c1be59be9 files/digest-asis-gpl-3.4.6.2006 247
+SHA256 67d8d19783505598c35f3988b9fd707c6d0ad6b693d21ac319767344770dfb09 files/digest-asis-gpl-3.4.6.2006 247
diff --git a/dev-ada/asis-gpl/asis-gpl-3.4.6.2006.ebuild b/dev-ada/asis-gpl/asis-gpl-3.4.6.2006.ebuild
new file mode 100644 (file)
index 0000000..03f0845
--- /dev/null
@@ -0,0 +1,117 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ada/asis-gpl/asis-gpl-3.4.6.2006.ebuild,v 1.1 2006/10/26 15:31:39 george Exp $
+
+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="http://mirrors/gentoo/${PN}-${ACT_Ver}.tar.bz2"
+HOMEPAGE="https://libre2.adacore.com/"
+LICENSE="GPL-2"
+
+KEYWORDS="~amd64 ~x86"
+
+
+IUSE="doc"
+RDEPEND="=dev-lang/gnat-gpl-${PV}*"
+DEPEND="${RDEPEND}
+       doc? ( virtual/tetex
+       app-text/texi2html )"
+
+S="${WORKDIR}/asis-${ACT_Ver}"
+
+# it may be even better to force plain -O2 -pipe -ftracer here
+replace-flags -O3 -O2
+
+
+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:"
+               einfo  "eselect gnat set ${CTARGET}-${Gnat_Name}-${SLOT}"
+               einfo  "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
+src_unpack() {
+       unpack ${A}
+}
+
+
+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 () {
+       # 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}}
+
+       # 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 examples/ tutorial/ templates/
+}
+
+pkg_postinst() {
+       echo
+       einfo "The ASIS is installed for the active gnat compiler at gnat's     location."
+       einfo "No further configuration is necessary. Enjoy."
+       echo
+}
diff --git a/dev-ada/asis-gpl/files/digest-asis-gpl-3.4.6.2006 b/dev-ada/asis-gpl/files/digest-asis-gpl-3.4.6.2006
new file mode 100644 (file)
index 0000000..bb02f4c
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 719dd1bd298eea42b2947edda58951eb asis-gpl-2006.tar.bz2 1546623
+RMD160 98dbf455cb45a9cd2352b01d624cae5153b9b881 asis-gpl-2006.tar.bz2 1546623
+SHA256 66825814792b1ddce9a6e3cc43c7426f9a563d9dbaa1b254884139b51279ebf4 asis-gpl-2006.tar.bz2 1546623
diff --git a/dev-ada/asis-gpl/metadata.xml b/dev-ada/asis-gpl/metadata.xml
new file mode 100644 (file)
index 0000000..c352257
--- /dev/null
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>ada</herd>
+<longdescription>
+       Ada Semantic Interface Specification is a published international ISO 
+       standard (ISO/IEC 15291:1999). ASIS represents a compiler independent 
+       toolset consisting of a set of standard Ada interfaces which allow extraction 
+       of information about user source programs. This information was previously 
+       only available inside the Ada compilers themselves or exported in 
+       non-standard, and thus non portable mechanisms.
+       This is the ACT version.
+</longdescription>
+</pkgmetadata>