summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Shapovalov <george@gentoo.org>2006-01-17 20:19:36 +0000
committerGeorge Shapovalov <george@gentoo.org>2006-01-17 20:19:36 +0000
commit060a62e304f66af65729d7b89adf6d35cec52b05 (patch)
tree00f8ea54fd932fd8757e69a764b4f4da3c1ba70e /dev-lang/gnat-gpl
parentStable on hppa. (diff)
downloadhistorical-060a62e304f66af65729d7b89adf6d35cec52b05.tar.gz
historical-060a62e304f66af65729d7b89adf6d35cec52b05.tar.bz2
historical-060a62e304f66af65729d7b89adf6d35cec52b05.zip
initial commit. Split gnat package - AdaCore version (#111340)
Package-Manager: portage-2.1_pre3-r1
Diffstat (limited to 'dev-lang/gnat-gpl')
-rw-r--r--dev-lang/gnat-gpl/ChangeLog9
-rw-r--r--dev-lang/gnat-gpl/Manifest5
-rw-r--r--dev-lang/gnat-gpl/files/digest-gnat-gpl-3.4.5.15
-rw-r--r--dev-lang/gnat-gpl/files/gnat-Make-lang.in.patch14
-rw-r--r--dev-lang/gnat-gpl/gnat-gpl-3.4.5.1.ebuild72
-rw-r--r--dev-lang/gnat-gpl/metadata.xml12
6 files changed, 117 insertions, 0 deletions
diff --git a/dev-lang/gnat-gpl/ChangeLog b/dev-lang/gnat-gpl/ChangeLog
new file mode 100644
index 000000000000..f76825417974
--- /dev/null
+++ b/dev-lang/gnat-gpl/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-lang/gnat-gpl
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/gnat-gpl/ChangeLog,v 1.1 2006/01/17 20:19:36 george Exp $
+
+*gnat-gpl-3.4.5.1 (17 Jan 2006)
+
+ 17 Jan 2006; George Shapovalov <george@gentoo.org>
+ +files/gnat-Make-lang.in.patch, +metadata.xml, +gnat-gpl-3.4.5.1.ebuild:
+ initial commit. Split gnat package - AdaCore version (#111340)
diff --git a/dev-lang/gnat-gpl/Manifest b/dev-lang/gnat-gpl/Manifest
new file mode 100644
index 000000000000..7b14037673eb
--- /dev/null
+++ b/dev-lang/gnat-gpl/Manifest
@@ -0,0 +1,5 @@
+MD5 4b3acf26fc1161062d4bcc2171631f04 ChangeLog 433
+MD5 f3f1bdb05304f35fac9bd27ec98475b4 files/digest-gnat-gpl-3.4.5.1 348
+MD5 c370fea9c771c16d066a4c661e93edc7 files/gnat-Make-lang.in.patch 555
+MD5 72aedef3cc64b046fdb8ee77cdf451f2 gnat-gpl-3.4.5.1.ebuild 2383
+MD5 63fe50d3f9c3d288e7c1d1ac98eac6d7 metadata.xml 552
diff --git a/dev-lang/gnat-gpl/files/digest-gnat-gpl-3.4.5.1 b/dev-lang/gnat-gpl/files/digest-gnat-gpl-3.4.5.1
new file mode 100644
index 000000000000..ddee2286d606
--- /dev/null
+++ b/dev-lang/gnat-gpl/files/digest-gnat-gpl-3.4.5.1
@@ -0,0 +1,5 @@
+MD5 91f813b5dcd60289587092f552b6a037 RM-05-Html.zip 1506487
+MD5 0114ba67f9aabad91d96797d0b6017c4 gcc-core-3.4.5.tar.bz2 13397308
+MD5 003b8f14eeacad4e6977043232b249f9 gnat-gpl-3.4.5.1-src.tar.bz2 5057268
+MD5 57a47a08504a2bc06fb1b24925aab918 gnatboot-3.4-amd64.tar.bz2 12043726
+MD5 1c846f5ef514714baa1e0f70c0c3df9e gnatboot-3.4-i686.tar.bz2 10608480
diff --git a/dev-lang/gnat-gpl/files/gnat-Make-lang.in.patch b/dev-lang/gnat-gpl/files/gnat-Make-lang.in.patch
new file mode 100644
index 000000000000..ccb4e273d6e1
--- /dev/null
+++ b/dev-lang/gnat-gpl/files/gnat-Make-lang.in.patch
@@ -0,0 +1,14 @@
+--- Make-lang.in-orig 2005-12-14 19:11:41.538266250 +0100
++++ Make-lang.in 2005-12-14 19:12:50.358567250 +0100
+@@ -341,9 +341,9 @@
+ gnatlib-shared: force
+ $(MAKE) -C ada $(FLAGS_TO_PASS) \
+ GNATLIBFLAGS="$(GNATLIBFLAGS)" \
+- GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
++ GNATLIBCFLAGS="$(GNATLIBCFLAGS) -fPIC" \
+ GNATLIBLDFLAGS="$(GNATLIBLDFLAGS)" \
+- TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" \
++ TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS) -fPIC" \
+ THREAD_KIND="$(THREAD_KIND)" \
+ TRACE="$(TRACE)" \
+ gnatlib-shared
diff --git a/dev-lang/gnat-gpl/gnat-gpl-3.4.5.1.ebuild b/dev-lang/gnat-gpl/gnat-gpl-3.4.5.1.ebuild
new file mode 100644
index 000000000000..56d93cd86166
--- /dev/null
+++ b/dev-lang/gnat-gpl/gnat-gpl-3.4.5.1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/gnat-gpl/gnat-gpl-3.4.5.1.ebuild,v 1.1 2006/01/17 20:19:36 george Exp $
+
+inherit gnatbuild flag-o-matic
+
+DESCRIPTION="GNAT Ada Compiler - AdaCore GPL version"
+HOMEPAGE="https://libre2.adacore.com/"
+LICENSE="GPL-2"
+
+SRC_URI="ftp://gcc.gnu.org/pub/gcc/releases/gcc-${GCCVER}/gcc-core-${GCCVER}.tar.bz2
+ http://www.adaic.org/standards/05rm/RM-05-Html.zip
+ http://dev.gentoo.org/~george/src/${P}-src.tar.bz2
+ x86? ( http://dev.gentoo.org/~george/src/gnatboot-3.4-i686.tar.bz2 )
+ amd64? ( http://dev.gentoo.org/~george/src/gnatboot-3.4-amd64.tar.bz2 )"
+# ${GNATBRANCH} and ${GCCVER} are defined in gnatbuild.eclass and depend
+# only on $PV, so should be safe to use in DEPEND/SRC_URI
+
+KEYWORDS="~amd64 ~x86"
+DEPEND=""
+
+GNATSOURCE="${WORKDIR}/${P}-src"
+
+src_unpack() {
+ gnatbuild_src_unpack base_unpack
+
+ # prep gcc sources for Ada
+ mv "${GNATSOURCE}/src/ada" "${S}/gcc"
+ cd "${S}"
+ patch -p0 < "${GNATSOURCE}/src/gcc-34.dif"
+
+ gnatbuild_src_unpack common_prep
+
+ # one of the converted gcc->gnatgcc in common_prep needs to stay gcc in
+ # fact in this version
+ sed -i -e 's:(Last3 = "gnatgcc"):(Last3 = "gcc"):' "${S}/gcc/ada/makegpr.adb"
+}
+
+src_install() {
+ gnatbuild_src_install install
+
+ # there is something strange with provided Makefiles, causing an
+ # access violation on gprmake. Have to do funny things..
+ make DESTDIR=${D} bindir="${D}${BINPATH}" install || die
+ mv "${D}${D}${PREFIX}/${CTARGET}" "${D}${PREFIX}"
+ rm -rf "${D}var"
+
+ gnatbuild_src_install move_libs cleanup prep_env
+
+ # docs have to be fetched from 3rd place, quite messy package
+ dodir /usr/share/doc/${PF}/html
+ dohtml "${WORKDIR}"/*.html
+
+ # misc notes and examples
+ cd ${GNATSOURCE}
+ dodoc COPYING README features-503 features-ada0y known-problems-503a
+ cp -pPR examples/ "${D}/usr/share/doc/${PF}/"
+}
+
+pkg_postinst() {
+ gnatbuild_pkg_postinst
+
+ einfo
+ einfo "This is an experimental issue of the gnat-gpl compiler, supporting"
+ einfo "some of the new features of Ada2005. You may consider registering with"
+ einfo "AdaCore at https://libre2.adacore.com/."
+ einfo
+ ewarn "Please note!!!"
+ ewarn "gnat-gpl is distributed under the GPL-2 license, without the GMGPL provision!!"
+ einfo "For the GMGPL version you may look at the gnat-gcc compiler."
+ einfo
+}
diff --git a/dev-lang/gnat-gpl/metadata.xml b/dev-lang/gnat-gpl/metadata.xml
new file mode 100644
index 000000000000..75cf5c42edb4
--- /dev/null
+++ b/dev-lang/gnat-gpl/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>ada</herd>
+<longdescription>
+GNAT, the (GN)U (A)da (T)oolchain, is a high performance Ada 95
+development environment based on the mature GCC compiler technology. It
+implements the full Ada 95 language defined by the ISO standard and is upward
+compatible with Ada 83. This is a newest development released by AdaCore under
+GPL. This is the first version implementing the Ada2005 standard.
+</longdescription>
+</pkgmetadata>