summaryrefslogtreecommitdiff
path: root/dev-ada/aws
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ada/aws')
-rw-r--r--dev-ada/aws/Manifest7
-rw-r--r--dev-ada/aws/aws-2016.ebuild49
-rw-r--r--dev-ada/aws/aws-2017.ebuild50
-rw-r--r--dev-ada/aws/files/aws-2016-gentoo.patch36
-rw-r--r--dev-ada/aws/files/aws-2017-gentoo.patch36
-rw-r--r--dev-ada/aws/metadata.xml20
6 files changed, 198 insertions, 0 deletions
diff --git a/dev-ada/aws/Manifest b/dev-ada/aws/Manifest
new file mode 100644
index 000000000000..63e76bc63a06
--- /dev/null
+++ b/dev-ada/aws/Manifest
@@ -0,0 +1,7 @@
+AUX aws-2016-gentoo.patch 1510 SHA256 df5fa816a111175aabf77632daca0089b159d47b14278a0db2b1499cf5a0912b SHA512 29f121d22f1dd21a1228a96c15ba28a61da1e07bdb57ae5f0ba2babb2c8d0b38bab21edeb44fb8480fcb4c9bdf55b1f20f7d6b3668943a1814a5564dd168c92d WHIRLPOOL 0526ba4602560245ae6c1e3dc839101d5b27b6ab8c3d4871e33c4dc841101901917f251ee01c24300b79aa24e2ad746ea3f8a5608fe5c968ccef2de295156965
+AUX aws-2017-gentoo.patch 1510 SHA256 df5fa816a111175aabf77632daca0089b159d47b14278a0db2b1499cf5a0912b SHA512 29f121d22f1dd21a1228a96c15ba28a61da1e07bdb57ae5f0ba2babb2c8d0b38bab21edeb44fb8480fcb4c9bdf55b1f20f7d6b3668943a1814a5564dd168c92d WHIRLPOOL 0526ba4602560245ae6c1e3dc839101d5b27b6ab8c3d4871e33c4dc841101901917f251ee01c24300b79aa24e2ad746ea3f8a5608fe5c968ccef2de295156965
+DIST aws-gpl-2016-src.tar.gz 15054562 SHA256 310d7a79fba1cf622f6c8d53103226422c788126198911efef09e372d559db32 SHA512 296825e4683bbf4701a42d52cb0b58ebed8d3715972d0c5f83765987d1e96ab4d6d22835c37c043f49ae106fedf5d61ef22cbe348384c2de388519637e26df0b WHIRLPOOL 48428b840149064f96a1656074cfb2f308abdc546ece87d939ab2f95f05e668caafbe9969ab99770909739fe8a4013337cd1ea8b56a7ed06291114c5d812c62f
+DIST aws-gpl-2017-src.tar.gz 12298806 SHA256 f7b2720f31c21c46bf4bca79e0921a4e796e6a4108be1bada1775eb2ba7fd935 SHA512 a7ddd332cbf3e699fdb7f734fba7dfabed2a92745bbc7fbd4ae5ea5da6a5e98c5434d7a9a3d7071d57b8294cc5c0c2a3802ded607e9402a1cf5e5bed8f5a8c35 WHIRLPOOL 41081537d1d017bb19d665c6b134b54b56d4841a98f713a94367c6e57915185f8ed7fe983ef641d79ce0cece09211fbd34220df81953dfee393d70824c5728d0
+EBUILD aws-2016.ebuild 1062 SHA256 d5d67451d4d45faa012d8ee510c3696e407a0718352e88e4e4be7f238eccbfe3 SHA512 fe58623d1d1f86c84d9f79f9c2fd5a98b50637296b0898db633a74726628100a4b5fd6d12019f04718e8b26d1d8593a5ea41c2c1dc15fccf02b078b65e670d2b WHIRLPOOL e583137a45f960af64cca66cff134f44d0f1b7161587320c44b2c75f458d482fdc0a861e2766f003e6fd18ed47682fbfed51d828ae72007bce7f61a8adb43cd8
+EBUILD aws-2017.ebuild 1063 SHA256 c4565496cb859311d4493a7862d12097c1237a8b64b0a4c684e0d3202be71e42 SHA512 eaf0879a32e26dbc58abd5a8a36991a616a14222c3dd6f46661d72f5bed26ead08010a8071c868afd783ce41cc666583e8ceb2c0050e1d341cc7f5179274be7a WHIRLPOOL 9614693f548f7a30be9a65a5b6182391502907a37553819c33dfdc8b15469469b5b7a9ba6bc1a2536897519f54370a541289c4147bbb2948eeebee653c35d8d0
+MISC metadata.xml 842 SHA256 69b8eb5bef931f533a223288a7b68eb9d8667d2b9fd6727ccb3d9f562372631c SHA512 3d9c37dea2923f66efbb4a66ca226ac7874b216683cf54adacef577593d267f3ffd61799626b347c0d78e87a1165bc4518586e7852e38c02fb335847667a48a4 WHIRLPOOL b41a890d8d1b12f918a7c46bb4b4edd126170ca2d0d04dd053b483f53fe41f411b920da6ed7553dde128abf60abcdd680ab66e0730b24ecb3ba80cdfbb6fbdd4
diff --git a/dev-ada/aws/aws-2016.ebuild b/dev-ada/aws/aws-2016.ebuild
new file mode 100644
index 000000000000..90711d2b8ec5
--- /dev/null
+++ b/dev-ada/aws/aws-2016.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit multiprocessing
+
+MY_P=${PN}-gpl-${PV}-src
+
+DESCRIPTION="A complete Web development framework"
+HOMEPAGE="http://libre.adacore.com/tools/aws/"
+SRC_URI="http://mirrors.cdn.adacore.com/art/57399112c7a447658d00e1cd -> ${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="gnat_2016 gnat_2017"
+
+RDEPEND="dev-ada/xmlada[gnat_2016=,gnat_2017=,static]"
+DEPEND="${RDEPEND}
+ dev-ada/gnat_util[gnat_2016=,gnat_2017=,static]
+ dev-ada/asis[gnat_2016=,gnat_2017=]
+ dev-ada/gprbuild[gnat_2016=,gnat_2017=]"
+REQUIRED_USE="^^ ( gnat_2016 gnat_2017 )"
+
+S="${WORKDIR}"/${MY_P}
+
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
+src_configure() {
+ emake -j1 setup prefix=/usr
+}
+
+src_compile() {
+ if use gnat_2016; then
+ GCC_PV=4.9.4
+ else
+ GCC_PV=6.3.0
+ fi
+ emake GCC=${CHOST}-gcc-${GCC_PV} \
+ PROCESSORS=$(makeopts_jobs) \
+ DEBUG=true \
+ GPRBUILD="/usr/bin/gprbuild -v"
+}
+
+src_install() {
+ emake DESTDIR="${D}" DEBUG=true install
+ einstalldocs
+}
diff --git a/dev-ada/aws/aws-2017.ebuild b/dev-ada/aws/aws-2017.ebuild
new file mode 100644
index 000000000000..c6f097ad1dce
--- /dev/null
+++ b/dev-ada/aws/aws-2017.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit multiprocessing
+
+MY_P=${PN}-gpl-${PV}-src
+
+DESCRIPTION="A complete Web development framework"
+HOMEPAGE="http://libre.adacore.com/tools/aws/"
+SRC_URI="http://mirrors.cdn.adacore.com/art/591c45e2c7a447af2deed001
+ -> ${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="gnat_2016 gnat_2017"
+
+RDEPEND="dev-ada/xmlada[gnat_2016=,gnat_2017=,static]"
+DEPEND="${RDEPEND}
+ dev-ada/gnat_util[gnat_2016=,gnat_2017=,static]
+ dev-ada/asis[gnat_2016=,gnat_2017=]
+ dev-ada/gprbuild[gnat_2016=,gnat_2017=]"
+REQUIRED_USE="^^ ( gnat_2016 gnat_2017 )"
+
+S="${WORKDIR}"/${MY_P}
+
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
+src_configure() {
+ emake -j1 setup prefix=/usr
+}
+
+src_compile() {
+ if use gnat_2016; then
+ GCC_PV=4.9.4
+ else
+ GCC_PV=6.3.0
+ fi
+ emake GCC=${CHOST}-gcc-${GCC_PV} \
+ PROCESSORS=$(makeopts_jobs) \
+ DEBUG=true \
+ GPRBUILD="/usr/bin/gprbuild -v"
+}
+
+src_install() {
+ emake DESTDIR="${D}" DEBUG=true install
+ einstalldocs
+}
diff --git a/dev-ada/aws/files/aws-2016-gentoo.patch b/dev-ada/aws/files/aws-2016-gentoo.patch
new file mode 100644
index 000000000000..b33073afa443
--- /dev/null
+++ b/dev-ada/aws/files/aws-2016-gentoo.patch
@@ -0,0 +1,36 @@
+--- aws-gpl-2016-src/shared.gpr.old 2017-01-30 20:00:39.022743691 +0100
++++ aws-gpl-2016-src/shared.gpr 2017-01-30 20:01:20.524985069 +0100
+@@ -130,6 +130,7 @@
+ package Compiler is
+
+ for Driver ("Makefile") use "";
++ for Driver ("C") use External ("GCC", "gcc");
+
+ case Build is
+ when "Debug" =>
+@@ -151,11 +151,11 @@
+ end case;
+
+ for Switches ("aws-attachments.adb")
+- use Common_Options & Debug_Options & ("-gnatVn");
++ use Common_Options & Debug_Options & ("-gnatVn") & Adaflags;
+ for Switches ("aws-session.adb")
+- use Common_Options & Debug_Options & ("-gnatVn");
++ use Common_Options & Debug_Options & ("-gnatVn") & Adaflags;
+ for Switches ("templates_parser.adb")
+- use Common_Options & Debug_Options & ("-gnatVn");
++ use Common_Options & Debug_Options & ("-gnatVn") & Adaflags;
+ -- Disable validity check on this unit to work-around N728-028
+
+ -- ADAFLAGS and CFLAGS should come last so that command line
+--- aws-gpl-2016-src/include/include.gpr.old 2017-02-17 22:09:14.361695926 +0100
++++ aws-gpl-2016-src/include/include.gpr 2017-02-17 22:11:36.497215517 +0100
+@@ -54,7 +54,7 @@
+
+ when "Release" =>
+ for Default_Switches ("Ada") use
+- ("-gnat2012", "-O2", "-gnatws", "-gnatn") & Shared.Global_Options;
++ ("-gnat2012", "-O2", "-gnatws", "-gnatn") & Shared.Adaflags & Shared.Global_Options;
+ end case;
+
+ case Shared.S_Target is
diff --git a/dev-ada/aws/files/aws-2017-gentoo.patch b/dev-ada/aws/files/aws-2017-gentoo.patch
new file mode 100644
index 000000000000..b33073afa443
--- /dev/null
+++ b/dev-ada/aws/files/aws-2017-gentoo.patch
@@ -0,0 +1,36 @@
+--- aws-gpl-2016-src/shared.gpr.old 2017-01-30 20:00:39.022743691 +0100
++++ aws-gpl-2016-src/shared.gpr 2017-01-30 20:01:20.524985069 +0100
+@@ -130,6 +130,7 @@
+ package Compiler is
+
+ for Driver ("Makefile") use "";
++ for Driver ("C") use External ("GCC", "gcc");
+
+ case Build is
+ when "Debug" =>
+@@ -151,11 +151,11 @@
+ end case;
+
+ for Switches ("aws-attachments.adb")
+- use Common_Options & Debug_Options & ("-gnatVn");
++ use Common_Options & Debug_Options & ("-gnatVn") & Adaflags;
+ for Switches ("aws-session.adb")
+- use Common_Options & Debug_Options & ("-gnatVn");
++ use Common_Options & Debug_Options & ("-gnatVn") & Adaflags;
+ for Switches ("templates_parser.adb")
+- use Common_Options & Debug_Options & ("-gnatVn");
++ use Common_Options & Debug_Options & ("-gnatVn") & Adaflags;
+ -- Disable validity check on this unit to work-around N728-028
+
+ -- ADAFLAGS and CFLAGS should come last so that command line
+--- aws-gpl-2016-src/include/include.gpr.old 2017-02-17 22:09:14.361695926 +0100
++++ aws-gpl-2016-src/include/include.gpr 2017-02-17 22:11:36.497215517 +0100
+@@ -54,7 +54,7 @@
+
+ when "Release" =>
+ for Default_Switches ("Ada") use
+- ("-gnat2012", "-O2", "-gnatws", "-gnatn") & Shared.Global_Options;
++ ("-gnat2012", "-O2", "-gnatws", "-gnatn") & Shared.Adaflags & Shared.Global_Options;
+ end case;
+
+ case Shared.S_Target is
diff --git a/dev-ada/aws/metadata.xml b/dev-ada/aws/metadata.xml
new file mode 100644
index 000000000000..7662c41c5d1c
--- /dev/null
+++ b/dev-ada/aws/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>tupone@gentoo.org</email>
+ <name>Tupone Alfredo</name>
+ </maintainer>
+ <use>
+ <flag name="gnat_2016">Compile with dev-lang/gnat-gpl-2016</flag>
+ <flag name="gnat_2017">Compile with dev-lang/gnat-gpl-2017</flag>
+ </use>
+ <longdescription lang="en">
+ AWS is a complete framework to develop Web based applications. The main part
+ of the framework is the embedded Web server. This small yet powerful Web
+ server can be embedded into your application so your application will be
+ able to talk with a standard Web browser like Microsoft Internet Explorer or
+ Firefox for example. Around this Web server a lot of services have been
+ developed.
+ </longdescription>
+</pkgmetadata>