summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Shapovalov <george@gentoo.org>2006-10-26 15:31:39 +0000
committerGeorge Shapovalov <george@gentoo.org>2006-10-26 15:31:39 +0000
commit43f6be4076c4f7e62bdf3686667e1a5a98d62fe7 (patch)
tree8032177f45e90271a608d51e4b6b94fc4af1716e /dev-ada
parentmasked old asis versions (diff)
downloadgentoo-2-43f6be4076c4f7e62bdf3686667e1a5a98d62fe7.tar.gz
gentoo-2-43f6be4076c4f7e62bdf3686667e1a5a98d62fe7.tar.bz2
gentoo-2-43f6be4076c4f7e62bdf3686667e1a5a98d62fe7.zip
added the ACT version of asis
(Portage version: 2.1.2_pre3-r9)
Diffstat (limited to 'dev-ada')
-rw-r--r--dev-ada/asis-gpl/ChangeLog10
-rw-r--r--dev-ada/asis-gpl/Manifest16
-rw-r--r--dev-ada/asis-gpl/asis-gpl-3.4.6.2006.ebuild117
-rw-r--r--dev-ada/asis-gpl/files/digest-asis-gpl-3.4.6.20063
-rw-r--r--dev-ada/asis-gpl/metadata.xml14
5 files changed, 160 insertions, 0 deletions
diff --git a/dev-ada/asis-gpl/ChangeLog b/dev-ada/asis-gpl/ChangeLog
new file mode 100644
index 000000000000..c67ffbd90ab8
--- /dev/null
+++ b/dev-ada/asis-gpl/ChangeLog
@@ -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
index 000000000000..302c978d8ac3
--- /dev/null
+++ b/dev-ada/asis-gpl/Manifest
@@ -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 3062 RMD160 cad8549f58420cbfc30733ebc61abed0f8b636aa SHA1 476d90ced81a509d98737125dbecf89811709c0d SHA256 0b20ceb43d015cf145e0bd6672864605cc8ea42764219b2d21fe437c42b7260d
+MD5 30a97e093d21063a5d1abe6c548d52f0 asis-gpl-3.4.6.2006.ebuild 3062
+RMD160 cad8549f58420cbfc30733ebc61abed0f8b636aa asis-gpl-3.4.6.2006.ebuild 3062
+SHA256 0b20ceb43d015cf145e0bd6672864605cc8ea42764219b2d21fe437c42b7260d asis-gpl-3.4.6.2006.ebuild 3062
+MISC ChangeLog 285 RMD160 a85ca63e61203d13f1adc02c1f600e0f40407299 SHA1 163a0c794494e5387f9c6d0813e857ff916a3f84 SHA256 872dc8ff01fe004c4af2f272c18f46de9df09dcafff605e9ba7ea3a53cb66616
+MD5 fdc0cf619b99e4365233a16697e5c79d ChangeLog 285
+RMD160 a85ca63e61203d13f1adc02c1f600e0f40407299 ChangeLog 285
+SHA256 872dc8ff01fe004c4af2f272c18f46de9df09dcafff605e9ba7ea3a53cb66616 ChangeLog 285
+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
index 000000000000..03f0845a4c8f
--- /dev/null
+++ b/dev-ada/asis-gpl/asis-gpl-3.4.6.2006.ebuild
@@ -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
index 000000000000..bb02f4c62c70
--- /dev/null
+++ b/dev-ada/asis-gpl/files/digest-asis-gpl-3.4.6.2006
@@ -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
index 000000000000..c352257de3bd
--- /dev/null
+++ b/dev-ada/asis-gpl/metadata.xml
@@ -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>