diff options
author | 2015-08-08 13:49:04 -0700 | |
---|---|---|
committer | 2015-08-08 17:38:18 -0700 | |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-lang/gnat-gpl | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-lang/gnat-gpl')
-rw-r--r-- | dev-lang/gnat-gpl/Manifest | 16 | ||||
-rw-r--r-- | dev-lang/gnat-gpl/files/gcc-configure-LANG.patch | 41 | ||||
-rw-r--r-- | dev-lang/gnat-gpl/files/gnat-Make-lang.in.patch | 14 | ||||
-rw-r--r-- | dev-lang/gnat-gpl/files/patches/51_all_gcc-3.4-libiberty-pic.patch | 10 | ||||
-rw-r--r-- | dev-lang/gnat-gpl/files/patches/74_all_sh-pr24836.patch | 25 | ||||
-rw-r--r-- | dev-lang/gnat-gpl/gnat-gpl-3.4.5.2005.ebuild | 79 | ||||
-rw-r--r-- | dev-lang/gnat-gpl/gnat-gpl-3.4.6.2006-r1.ebuild | 86 | ||||
-rw-r--r-- | dev-lang/gnat-gpl/gnat-gpl-4.1.3.2007.ebuild | 67 | ||||
-rw-r--r-- | dev-lang/gnat-gpl/gnat-gpl-4.1.3.2008-r2.ebuild | 75 | ||||
-rw-r--r-- | dev-lang/gnat-gpl/metadata.xml | 12 |
10 files changed, 425 insertions, 0 deletions
diff --git a/dev-lang/gnat-gpl/Manifest b/dev-lang/gnat-gpl/Manifest new file mode 100644 index 000000000000..e45f6c976a8c --- /dev/null +++ b/dev-lang/gnat-gpl/Manifest @@ -0,0 +1,16 @@ +DIST RM-05-Html.zip 1506487 SHA256 e7ba344dc796e66c8104d059161b6b5033b91c0f732d1f35e7bcf8400df498d6 SHA512 daaf6edc9a0839146b4d3f4d4791f8de495d370e8527b92e0724a415e64f850bd57f758a3208ceaeae4c1cf9db35570be95af8d82ecf6056cc794a8704033886 WHIRLPOOL 43b25eea69b24d4e79647d0d34232d048e3bd4aff339c1d42de67a770d21badaeff5856c772731ea6ec9890aef44d3c3935126a2c8681e99eeda36150aba685b +DIST gcc-branch-4.1.3.tar.bz2 21242772 SHA256 24d976bcc7545ae5452b38be5f4ae0ebdc7c3cf122ed602c8c58e96ac16edb77 +DIST gcc-core-3.4.5.tar.bz2 13397308 SHA256 8a2824b12a1cae8b68de3be0a8fd2da14918462e6afa27c3578ccfc8ab10d0fc SHA512 997289b39e5605bac84c2a5d80a4e5dc2d24d4f1c742b494e4fbee4d0f16f64ae9ce860ccdc99c9764a29ec92ad066fd4faf5789fc5d7f49173eace263fe5c01 WHIRLPOOL bf9834d2b7a48d99f7ac5a901bea636e547fbe77eb1e38d39f7ea0484025837f0c49ffd2544f6ce8c2f2639687d3daec59a2b97b430f53b78c773abba8e783f4 +DIST gcc-core-3.4.6.tar.bz2 13366790 SHA256 3aab171d86e5a6c14cb9de35467a0472a7d5ef1d5b79a1df72ca533f8e82a133 +DIST gnat-gpl-3.4.5.1-src.tar.bz2 5057268 SHA256 b831f83c879b22da735b1c759db1d576aaaf3547771d560f1cf8ed24e0284242 +DIST gnat-gpl-3.4.6.1-src.tar.bz2 5042218 SHA256 105fcd76e880625077243139c546c120e745d702255b7450a1c22a651f852c43 +DIST gnat-gpl-4.1.3.2007.tar.bz2 840749 SHA256 e498b0ddaaeb6a93ff017bc15896e35b9ecc8edb78aca40574b7c2dd2b6d423c +DIST gnat-gpl-4.1.3.2008.tar.bz2 22184293 SHA256 3be9cc3dd82668e155e51054c3c182a7364c8aab4e21efc1195b78625a6b0469 SHA512 c506004bcc33ecb55c101365f02f820969c271f18267be4ce1d18711ba0511eae63e3709d5459ac2f549240c30d1e62d15d9deb0abae3aa3a0dac6acbe816008 WHIRLPOOL ec7f2563005331082e7a5dbdc4de01b5ce302be5043d7132d077f659dd0adefa3fce09040e2474c763109af35f8e1b33aa1e189bd304587309b0ba5fe7a4478b +DIST gnat-gpl-gcc-3.4.6.1.diff.bz2 118229 SHA256 d722059d1f13f79e323d10e3d9ff30ef0a6c4a9fd4ad06ba5c3a34f8e4ebb874 +DIST gnat-gpl-gcc-3.4.diff.bz2 76642 SHA256 fc90a356baf483d0aab489ce2ea8278a155f48fa84950f71360657e4bc8103d5 +DIST gnatboot-3.4-amd64-r2.tar.bz2 12063245 SHA256 c0c2fe91f6c38483193415690a4f90ac205e3aa9cf42ab3ab3e5d2a3ec269d8d +DIST gnatboot-3.4-i386.tar.bz2 10629373 SHA256 7b4300e72b7f00d2fd9d0dad6940c3e6b4e19eeaf4696e92d7c92e2a38e8b049 +DIST gnatboot-3.4-ppc.tar.bz2 10996302 SHA256 1f164834e377604a943b230196d9f2a40e8e6753bac4c980d5ca2c00c7674363 +DIST gnatboot-4.1-amd64.tar.bz2 15314736 SHA256 a4016920b84f5934ec7120c7bb17c1028b193d5e146a46a9d1ceae4a456924d2 SHA512 ddeaa365ef3d127cc0bce0d7d242804dfc3a2d5612d89f08fc0ffaf63501a326168935facf359a963dda1484b76bdad01e42629c03d123f3693324038d8e5f75 WHIRLPOOL e845041091b2dddf3b4adf6628b5fd132e47758a75332715f0f99c9363d7840e66fbde92cc717a450a49cf8b736bd47bdb6e0c2e9528130c01ef8827c4348bc5 +DIST gnatboot-4.1-i386.tar.bz2 15367514 SHA256 597b4a16f38fb173b1eecc259c1566ccf81291e13b88e2160102a512cefcc518 +DIST gnatboot-4.1-ppc.tar.bz2 13651598 SHA256 2c9ed035b964a7dfcc427cb5c16dc30d3b99276fb424d25b0ebfde23a68013eb SHA512 d57e3bd9350dde62972ca270f9a0f7a7ce8fad961a2c1aad016d99259baeb3f2aea8b83cb4729d2f87e1614c19c636537bd43e771a19e90d28b191ce68de6dfa WHIRLPOOL bab53a81bb1d969c919da3b447c67dc377860ba10a86a86bfecdd3a262156f0f877a8b659a688e3198910053534076fd0898b4f8090803b40ba18b18a7b1f6f6 diff --git a/dev-lang/gnat-gpl/files/gcc-configure-LANG.patch b/dev-lang/gnat-gpl/files/gcc-configure-LANG.patch new file mode 100644 index 000000000000..3ef76ef911c0 --- /dev/null +++ b/dev-lang/gnat-gpl/files/gcc-configure-LANG.patch @@ -0,0 +1,41 @@ +The LANG vars aren't reset early enough so when sed tries to use [a-zA-Z] in +option parsing, it may break. + +http://bugs.gentoo.org/103483 + +--- configure ++++ configure +@@ -54,6 +54,16 @@ + infodir='${prefix}/info' + mandir='${prefix}/man' + ++# NLS nuisances. ++# Only set these to C if already set. These must not be set unconditionally ++# because not all systems understand e.g. LANG=C (notably SCO). ++# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! ++# Non-C LC_CTYPE values break the ctype check. ++if test "${LANG+set}" = set; then LANG=C; export LANG; fi ++if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi ++if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi ++if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi ++ + # Initialize some other variables. + subdirs= + MFLAGS= MAKEFLAGS= +@@ -452,16 +463,6 @@ + esac + done + +-# NLS nuisances. +-# Only set these to C if already set. These must not be set unconditionally +-# because not all systems understand e.g. LANG=C (notably SCO). +-# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! +-# Non-C LC_CTYPE values break the ctype check. +-if test "${LANG+set}" = set; then LANG=C; export LANG; fi +-if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi +-if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi +-if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi +- + # confdefs.h avoids OS command line length limits that DEFS can exceed. + rm -rf conftest* confdefs.h + # AIX cpp loses on an empty file, so make sure it contains at least a newline. 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/files/patches/51_all_gcc-3.4-libiberty-pic.patch b/dev-lang/gnat-gpl/files/patches/51_all_gcc-3.4-libiberty-pic.patch new file mode 100644 index 000000000000..d9a95a21b10f --- /dev/null +++ b/dev-lang/gnat-gpl/files/patches/51_all_gcc-3.4-libiberty-pic.patch @@ -0,0 +1,10 @@ +--- gcc-4.1.0-orig/libiberty/Makefile.in 2006-03-01 15:49:14.000000000 -0500 ++++ gcc-4.1.0/libiberty/Makefile.in 2006-03-01 18:10:46.000000000 -0500 +@@ -232,6 +232,7 @@ + $(AR) $(AR_FLAGS) $(TARGETLIB) \ + $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \ + $(RANLIB) $(TARGETLIB); \ ++ cp $(TARGETLIB) ../ ; \ + cd ..; \ + else true; fi + diff --git a/dev-lang/gnat-gpl/files/patches/74_all_sh-pr24836.patch b/dev-lang/gnat-gpl/files/patches/74_all_sh-pr24836.patch new file mode 100644 index 000000000000..9bad985a2647 --- /dev/null +++ b/dev-lang/gnat-gpl/files/patches/74_all_sh-pr24836.patch @@ -0,0 +1,25 @@ +http://sourceforge.net/mailarchive/forum.php?thread_id=8959304&forum_id=5348 +http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24836 + +--- gcc/configure.ac (revision 106699) ++++ gcc/configure.ac (working copy) +@@ -2446,7 +2446,7 @@ + tls_first_minor=14 + tls_as_opt="-m64 -Aesame --fatal-warnings" + ;; +- sh-*-* | sh[34]-*-*) ++ sh-*-* | sh[34]*-*-*) + conftest_s=' + .section ".tdata","awT",@progbits + foo: .long 25 +--- gcc/configure ++++ gcc/configure +@@ -14846,7 +14846,7 @@ + tls_first_minor=14 + tls_as_opt="-m64 -Aesame --fatal-warnings" + ;; +- sh-*-* | sh[34]-*-*) ++ sh-*-* | sh[34]*-*-*) + conftest_s=' + .section ".tdata","awT",@progbits + foo: .long 25 diff --git a/dev-lang/gnat-gpl/gnat-gpl-3.4.5.2005.ebuild b/dev-lang/gnat-gpl/gnat-gpl-3.4.5.2005.ebuild new file mode 100644 index 000000000000..cd421cea5f9d --- /dev/null +++ b/dev-lang/gnat-gpl/gnat-gpl-3.4.5.2005.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit gnatbuild + +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 + mirror://gentoo/${PN}-3.4.5.1-src.tar.bz2 + mirror://gentoo/${PN}-gcc-${SLOT}.diff.bz2 + x86? ( mirror://gentoo/gnatboot-${BOOT_SLOT}-i386.tar.bz2 ) + amd64? ( mirror://gentoo/gnatboot-${BOOT_SLOT}-amd64-r2.tar.bz2 )" +# ${BOOT_SLOT} 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="app-arch/unzip" +RDEPEND="" + +IUSE="" + +GNATSOURCE="${WORKDIR}/${P}-src" + +src_unpack() { + gnatbuild_src_unpack base_unpack + + # prep gcc sources for Ada + mv "${GNATSOURCE}/src/ada" "${S}/gcc" + cd "${S}" + epatch "${WORKDIR}"/${PN}-gcc-${SLOT}.diff + + 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 README features-503 features-ada0y known-problems-503a + cp -pPR examples/ "${D}/usr/share/doc/${PF}/" + + # this version of gnat does not provide info files yet + rm -f "${D}"${DATAPATH}/info/gnat.info +} + +pkg_postinst() { + gnatbuild_pkg_postinst + + elog + elog "This is an experimental issue of the gnat-gpl compiler, supporting" + elog "some of the new features of Ada2005. You may consider registering with" + elog "AdaCore at https://libre2.adacore.com/." + elog + ewarn "Please note!!!" + ewarn "gnat-gpl is distributed under the GPL-2 license, without the GMGPL provision!!" + ewarn "For the GMGPL version you may look at the gnat-gcc compiler." + ewarn +} diff --git a/dev-lang/gnat-gpl/gnat-gpl-3.4.6.2006-r1.ebuild b/dev-lang/gnat-gpl/gnat-gpl-3.4.6.2006-r1.ebuild new file mode 100644 index 000000000000..b160b5a73f93 --- /dev/null +++ b/dev-lang/gnat-gpl/gnat-gpl-3.4.6.2006-r1.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit gnatbuild + +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 + mirror://gentoo/${PN}-3.4.6.1-src.tar.bz2 + mirror://gentoo/${PN}-gcc-3.4.6.1.diff.bz2 + x86? ( mirror://gentoo/gnatboot-${BOOT_SLOT}-i386.tar.bz2 ) + ppc? ( mirror://gentoo/gnatboot-${BOOT_SLOT}-ppc.tar.bz2 ) + amd64? ( mirror://gentoo/gnatboot-${BOOT_SLOT}-amd64-r2.tar.bz2 )" +# ${BOOT_SLOT} and ${GCCVER} are defined in gnatbuild.eclass and depend +# only on $PV, so should be safe to use in DEPEND/SRC_URI + +QA_EXECSTACK="${BINPATH:1}/gnatls ${BINPATH:1}/gnatbind ${BINPATH:1}/gnatmake + ${LIBEXECPATH:1}/gnat1 + ${LIBPATH:1}/adalib/libgnat-2006.so" + +KEYWORDS="~amd64 ~ppc ~x86" +DEPEND="app-arch/unzip" +RDEPEND="" + +IUSE="" + +GNATSOURCE="${WORKDIR}/${PN}-2006-src" + +src_unpack() { + gnatbuild_src_unpack base_unpack + + # prep gcc sources for Ada + mv "${GNATSOURCE}/src/ada" "${S}/gcc" + cd "${S}" + epatch "${WORKDIR}"/${PN}-gcc-3.4.6.1.diff + + 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 + # reverting similar conversion in comment - line too long + sed -i -e 's:"gnatgcc":"gcc":' "${S}"/gcc/ada/osint.ads +} + +src_install() { + gnatbuild_src_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 +# cp -dPr "${D}${D}${PREFIX}"/* "${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 features* known-problems-504a + cp -pPR examples/ "${D}/usr/share/doc/${PF}/" + + # this version of gnat does not provide info files yet + rm -f "${D}"${DATAPATH}/info/gnat.info +} + +pkg_postinst() { + gnatbuild_pkg_postinst + + elog + elog "This is an experimental issue of the gnat-gpl compiler, supporting" + elog "some of the new features of Ada2005. You may consider registering with" + elog "AdaCore at https://libre2.adacore.com/." + elog + ewarn "Please note!!!" + ewarn "gnat-gpl is distributed under the GPL-2 license, without the GMGPL provision!!" + ewarn "For the GMGPL version you may look at the gnat-gcc compiler." + ewarn +} diff --git a/dev-lang/gnat-gpl/gnat-gpl-4.1.3.2007.ebuild b/dev-lang/gnat-gpl/gnat-gpl-4.1.3.2007.ebuild new file mode 100644 index 000000000000..bdc441672751 --- /dev/null +++ b/dev-lang/gnat-gpl/gnat-gpl-4.1.3.2007.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit gnatbuild + +DESCRIPTION="GNAT Ada Compiler - AdaCore GPL version" +HOMEPAGE="https://libre.adacore.com/" +LICENSE="GPL-2" + +SRC_URI="http://dev.gentoo.org/~george/src/gcc-branch-${GCCVER}.tar.bz2 + http://www.adaic.org/standards/05rm/RM-05-Html.zip + http://dev.gentoo.org/~george/src/${P}.tar.bz2 + x86? ( http://dev.gentoo.org/~george/src/gnatboot-${BOOT_SLOT}-i386.tar.bz2 ) + ppc? ( http://dev.gentoo.org/~george/src/gnatboot-${BOOT_SLOT}-ppc.tar.bz2 ) + amd64? ( http://dev.gentoo.org/~george/src/gnatboot-${BOOT_SLOT}-amd64.tar.bz2 )" +# ${BOOT_SLOT} and ${GCCVER} are defined in gnatbuild.eclass and depend +# only on $PV, so should be safe to use in DEPEND/SRC_URI + +KEYWORDS="amd64 ppc x86" +DEPEND="app-arch/unzip" +RDEPEND="virtual/blas + virtual/lapack" + +IUSE="" + +QA_EXECSTACK="${BINPATH:1}/gnatls ${BINPATH:1}/gnatbind + ${BINPATH:1}/gnatmake ${LIBEXECPATH:1}/gnat1 + ${LIBPATH:1}/adalib/libgnat-2007.so + ${LIBPATH:1}/libffi.so.4.0.1 ${LIBPATH:1}/32/libffi.so.4.0.1 " + +GNATSOURCE="${WORKDIR}/${PN}-2007-src" + +src_unpack() { + gnatbuild_src_unpack base_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 + # reverting similar conversion in comment - line too long + sed -i -e 's:"gnatgcc":"gcc":' "${S}"/gcc/ada/osint.ads +} + +src_install() { + gnatbuild_src_install + + # 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 features* known-problems-601 + cp -pPR examples/ Contributors.html "${D}/usr/share/doc/${PF}/" + + # this version of gnat does not provide info files yet + rm -rf "${D}${DATAPATH}/info/" +} + +pkg_postinst() { + gnatbuild_pkg_postinst + + ewarn "Please note!!!" + ewarn "gnat-gpl is distributed under the GPL-2 license, without the GMGPL provision!!" + ewarn "For the GMGPL version you may look at the gnat-gcc compiler." + ewarn +} diff --git a/dev-lang/gnat-gpl/gnat-gpl-4.1.3.2008-r2.ebuild b/dev-lang/gnat-gpl/gnat-gpl-4.1.3.2008-r2.ebuild new file mode 100644 index 000000000000..a2e968fa40a4 --- /dev/null +++ b/dev-lang/gnat-gpl/gnat-gpl-4.1.3.2008-r2.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit autotools gnatbuild + +DESCRIPTION="GNAT Ada Compiler - AdaCore GPL version" +HOMEPAGE="https://libre.adacore.com/" +LICENSE="GPL-2" + +SRC_URI="http://dev.gentoo.org/~george/src/${P}.tar.bz2 + http://www.adaic.org/standards/05rm/RM-05-Html.zip + x86? ( http://dev.gentoo.org/~george/src/gnatboot-${BOOT_SLOT}-i386.tar.bz2 ) + ppc? ( http://dev.gentoo.org/~george/src/gnatboot-${BOOT_SLOT}-ppc.tar.bz2 ) + amd64? ( http://dev.gentoo.org/~george/src/gnatboot-${BOOT_SLOT}-amd64.tar.bz2 )" +# ${BOOT_SLOT} and ${GCCVER} are defined in gnatbuild.eclass and depend +# only on $PV, so should be safe to use in DEPEND/SRC_URI + +KEYWORDS="~amd64 ~ppc ~x86" +DEPEND="app-arch/unzip" +RDEPEND="virtual/blas + virtual/lapack" + +IUSE="" + +QA_EXECSTACK="${BINPATH:1}/gnatls ${BINPATH:1}/gnatbind + ${BINPATH:1}/gnatmake ${LIBEXECPATH:1}/gnat1 + ${LIBPATH:1}/adalib/libgnat-2007.so + ${LIBPATH:1}/libffi.so.4.0.1 ${LIBPATH:1}/32/libffi.so.4.0.1 " + +GNATSOURCE="${S}/${PN}-2008-src" + +src_unpack() { + gnatbuild_src_unpack base_unpack + pushd "${S}"/gnattools &> /dev/null + eautoconf + popd &> /dev/null + 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 + # reverting similar conversion in comment - line too long + sed -i -e 's:"gnatgcc":"gcc":' "${S}"/gcc/ada/osint.ads + + # fixing some stupid misspelling issue + sed -i -e "s:the get some usefull:to get some useful:" \ + "${GNATSOURCE}"/examples/options/README.testing +} + +src_install() { + gnatbuild_src_install + + # 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 features* known-problems-601 + cp -pPR examples/ Contributors.html "${D}/usr/share/doc/${PF}/" + + # this version of gnat does not provide info files yet + rm -rf "${D}${DATAPATH}/info/" +} + +pkg_postinst() { + gnatbuild_pkg_postinst + + einfo + ewarn "Please note!!!" + ewarn "gnat-gpl is distributed under the GPL-2 license, without the GMGPL provision!!" + ewarn "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> |