diff options
author | George Shapovalov <george@gentoo.org> | 2003-07-13 17:46:38 +0000 |
---|---|---|
committer | George Shapovalov <george@gentoo.org> | 2003-07-13 17:46:38 +0000 |
commit | 8e6ad038366c35a4af511a1d156a24a896320610 (patch) | |
tree | 6bd7d2eb75a2ad1a7bfb345ec0569dd60e409600 /dev-ada | |
parent | new package: Ada Semantic Interface Specification (diff) | |
download | gentoo-2-8e6ad038366c35a4af511a1d156a24a896320610.tar.gz gentoo-2-8e6ad038366c35a4af511a1d156a24a896320610.tar.bz2 gentoo-2-8e6ad038366c35a4af511a1d156a24a896320610.zip |
new package: Ada Semantic Interface Specification
Diffstat (limited to 'dev-ada')
-rw-r--r-- | dev-ada/asis/ChangeLog | 10 | ||||
-rw-r--r-- | dev-ada/asis/Manifest | 4 | ||||
-rw-r--r-- | dev-ada/asis/asis-3.15p.ebuild | 83 | ||||
-rw-r--r-- | dev-ada/asis/files/asis-3.15p.diff | 46 | ||||
-rw-r--r-- | dev-ada/asis/files/digest-asis-3.15p | 1 |
5 files changed, 143 insertions, 1 deletions
diff --git a/dev-ada/asis/ChangeLog b/dev-ada/asis/ChangeLog new file mode 100644 index 000000000000..35c77f5a4f59 --- /dev/null +++ b/dev-ada/asis/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-ada/asis +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL +# $Header: /var/cvsroot/gentoo-x86/dev-ada/asis/ChangeLog,v 1.1 2003/07/13 17:46:21 george Exp $ + +*asis-3.15p (13 Jul 2003) + + 13 Jul 2003; George Shapovalov <george@gentoo.org> asis-3.15p.ebuild, Manifest, files/{asis-3.15p.diff,digest-asis-3.15p} : + initial release (#23047) + The Ada Semantic Interface Specification queries and services provide a consistent interface to information within the Ada Program Library created at compile time. + ebuild submitted by David Holm <dholm@telia.com> diff --git a/dev-ada/asis/Manifest b/dev-ada/asis/Manifest index f877c4b8bcec..045f936669fe 100644 --- a/dev-ada/asis/Manifest +++ b/dev-ada/asis/Manifest @@ -1,2 +1,4 @@ -MD5 f93b1bc27f0503c40f61d6587cb7b9b7 asis-3.15p.ebuild 2217 +MD5 9c600564ed38de212d5c21e149f1aaf0 asis-3.15p.ebuild 2503 +MD5 7acb723a585b2fa49b92796520a80bd1 ChangeLog 595 MD5 0d239a4e8d4fd1134f91a1f28f0bdd47 files/digest-asis-3.15p 64 +MD5 69d5c644b8ab42132401a32d66174a32 files/asis-3.15p.diff 1558 diff --git a/dev-ada/asis/asis-3.15p.ebuild b/dev-ada/asis/asis-3.15p.ebuild new file mode 100644 index 000000000000..7d7982f0485a --- /dev/null +++ b/dev-ada/asis/asis-3.15p.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/dev-ada/asis/asis-3.15p.ebuild,v 1.1 2003/07/13 17:46:21 george Exp $ + +inherit gnat + +S="${WORKDIR}/${P}-src" +DESCRIPTION="The Ada Semantic Interface Specification queries and services provide a consistent interface to information within the Ada Program Library created at compile time." +SRC_URI="http://gd.tuwien.ac.at/languages/ada/gnat/3.15p/asis/${P}-src.tgz" +HOMEPAGE="http://www.gnat.com/" + +LICENSE="GMGPL" +DEPEND="dev-lang/gnat" +RDEPEND="" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +src_unpack() { + unpack "${P}-src.tgz" + cd "${S}" + patch -p1 < "${FILESDIR}/${P}.diff" +} + +src_compile() { + emake -C obj libasis.a CFLAGS="${ADACFLAGS} -fPIC" \ + CC=gnatgcc RM="rm -f" || die "Failed while compiling ASIS" + emake -C documentation || die "Failed while compiling documentation" + + # Build the shared library + ${ADAC} -shared -Wl,-soname,libasis-${PV}.so.1 \ + -o obj/libasis-${PV}.so.1 obj/*.o -lc + + local MAKEFLAGS="-cargs ${ADACFLAGS} -I../../asis -I../../gnat -I../../obj -largs -L../../obj ../../obj/libasis.a" + cd "${S}/tools/asistant" + ${ADAMAKE} asistant-driver -o asistant ${MAKEFLAGS} + cd "${S}/tools/gnatelim" + ${ADAMAKE} gnatelim-driver -o gnatelim ${MAKEFLAGS} + cd "${S}/tools/gnatstub" + ${ADAMAKE} gnatstub-driver -o gnatstub ${MAKEFLAGS} + cd "${S}" +} + +src_install () { + dodoc documentation/*.{html,ps,txt} + doinfo documentation/*.info + + insinto /usr/lib/ada/adalib/${PN} + # Install the dynamic library + chmod 0755 obj/libasis-${PV}.so.1 + doins obj/libasis-${PV}.so.1 + + # Install the intermediate compiler information files + doins obj/*.ali + chmod 0644 obj/libasis.a + + # Install the static library + newins obj/libasis.a libasis-${PV}.a + + #make local symlinks, as done usually in libs + cd ${D}/usr/lib/ada/adalib/${PN}/ + ln -s libasis-${PV}.so.1 libasis-${PV}.so + ln -s libasis-${PV}.so libasis.so + ln -s libasis-${PV}.a libasis.a + cd ${S} +# dosym /usr/lib/ada/adalib/asis/libasis-${PV}.so.1 \ +# /usr/lib/ada/adalib/asis/libasis-${PV}.so +# dosym /usr/lib/ada/adalib/asis/libasis-${PV}.so \ +# /usr/lib/ada/adalib/asis/libasis.so +# dosym /usr/lib/ada/adalib/asis/libasis-${PV}.a \ +# /usr/lib/ada/adalib/asis/libasis.a + + #headers and binaries + insinto /usr/lib/ada/adainclude/${PN} + doins gnat/*.ad[sb] + doins asis/*.ad[sb] + + insinto /usr/bin + dobin tools/asistant/asistant + dobin tools/gnatelim/gnatelim + dobin tools/gnatstub/gnatstub +} + diff --git a/dev-ada/asis/files/asis-3.15p.diff b/dev-ada/asis/files/asis-3.15p.diff new file mode 100644 index 000000000000..ad0c9f656f4f --- /dev/null +++ b/dev-ada/asis/files/asis-3.15p.diff @@ -0,0 +1,46 @@ +diff -Naur asis-3.15p-src.orig/asis/a4g-gnat_int.ads asis-3.15p-src/asis/a4g-gnat_int.ads +--- asis-3.15p-src.orig/asis/a4g-gnat_int.ads 2002-10-24 10:13:16.000000000 +0200 ++++ asis-3.15p-src/asis/a4g-gnat_int.ads 2003-06-09 22:34:06.000000000 +0200 +@@ -69,7 +69,7 @@ + -- Compiler Variables & Routines -- + ----------------------------------- + +- Gcc : constant String := "gcc"; ++ Gcc : constant String := "gnatgcc"; + + Nul_Argument_List : constant Argument_List (1 .. 0) := (others => null); + +diff -Naur asis-3.15p-src.orig/Makefile.stub asis-3.15p-src/Makefile.stub +--- asis-3.15p-src.orig/Makefile.stub 2002-10-24 10:13:16.000000000 +0200 ++++ asis-3.15p-src/Makefile.stub 2003-06-09 22:34:06.000000000 +0200 +@@ -1,8 +1,8 @@ + #host system +-host := $(shell gcc -dumpmachine) ++host := $(shell gnatgcc -dumpmachine) + + # Where Asis library should be installed +-INSTALL_DIR=$(HOME)/local ++INSTALL_DIR=/usr + + # Asis specific directories + GNAT_DIR=../gnat +@@ -55,4 +55,4 @@ + + # GCC backend specific flags + CFLAGS= -O2 -g +-CC=gcc ++CC=gnatgcc +diff -Naur asis-3.15p-src.orig/obj/Makefile asis-3.15p-src/obj/Makefile +--- asis-3.15p-src.orig/obj/Makefile 2002-10-24 10:13:17.000000000 +0200 ++++ asis-3.15p-src/obj/Makefile 2003-06-09 22:36:00.000000000 +0200 +@@ -1,8 +1,7 @@ + include ../Makefile.stub +-IDIR=$(INSTALL_DIR)/asis ++IDIR=$(INSTALL_DIR)/share/asis + install: libasis$(arext) +- $(RMDIR) $(IDIR) +- $(MKDIR) $(IDIR) ++ install -d $(IDIR) + $(INSTALL_FILES) *.ali $(IDIR) + $(CHMOD) a-w $(IDIR)/*.ali + $(INSTALL_FILES) *$(arext) $(IDIR) diff --git a/dev-ada/asis/files/digest-asis-3.15p b/dev-ada/asis/files/digest-asis-3.15p new file mode 100644 index 000000000000..5c06417681a0 --- /dev/null +++ b/dev-ada/asis/files/digest-asis-3.15p @@ -0,0 +1 @@ +MD5 649f92bca189da5c35d6c1af8d833c2f asis-3.15p-src.tgz 1401350 |