Gentoo Archives: gentoo-commits

From: Alfredo Tupone <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ada/aws/, dev-ada/aws/files/
Date: Fri, 31 May 2019 18:26:43
Message-Id: 1559327182.b7a0e12e3ab2f75eb96bc96e7351eb59b1ee3a9d.tupone@gentoo
1 commit: b7a0e12e3ab2f75eb96bc96e7351eb59b1ee3a9d
2 Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 31 18:26:22 2019 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Fri May 31 18:26:22 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7a0e12e
7
8 dev-ada/aws: enable build with gnat-gpl-2019
9
10 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
11 Package-Manager: Portage-2.3.66, Repoman-2.3.11
12
13 dev-ada/aws/aws-2018-r1.ebuild | 50 +++++++++++++++++++++++++++++
14 dev-ada/aws/files/aws-2018-gentoo.patch | 56 +++++++++++++++++++++++++++++++++
15 dev-ada/aws/metadata.xml | 1 +
16 3 files changed, 107 insertions(+)
17
18 diff --git a/dev-ada/aws/aws-2018-r1.ebuild b/dev-ada/aws/aws-2018-r1.ebuild
19 new file mode 100644
20 index 00000000000..14d971edcf9
21 --- /dev/null
22 +++ b/dev-ada/aws/aws-2018-r1.ebuild
23 @@ -0,0 +1,50 @@
24 +# Copyright 1999-2019 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=6
28 +
29 +inherit multiprocessing
30 +
31 +MY_P=${PN}-gpl-${PV}-src
32 +
33 +DESCRIPTION="A complete Web development framework"
34 +HOMEPAGE="http://libre.adacore.com/tools/aws/"
35 +SRC_URI="http://mirrors.cdn.adacore.com/art/5b0819e0c7a447df26c27abd
36 + -> ${MY_P}.tar.gz"
37 +
38 +LICENSE="GPL-3"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~x86"
41 +IUSE="gnat_2016 gnat_2017 +gnat_2018 gnat_2019"
42 +
43 +RDEPEND="dev-ada/xmlada[gnat_2016=,gnat_2017=,gnat_2018(-)=,gnat_2019(-)=]
44 + dev-ada/xmlada[shared,static-libs]"
45 +DEPEND="${RDEPEND}
46 + gnat_2016? ( dev-ada/asis[gnat_2016] )
47 + gnat_2017? ( dev-ada/asis[gnat_2017] )
48 + gnat_2018? ( dev-ada/asis[gnat_2018] )
49 + gnat_2019? ( dev-ada/asis[gnat_2019] )
50 + dev-ada/gprbuild[gnat_2016=,gnat_2017=,gnat_2018(-)=,gnat_2019(-)=]"
51 +
52 +S="${WORKDIR}"/${MY_P}
53 +
54 +PATCHES=(
55 + "${FILESDIR}"/${PN}-2016-gentoo.patch
56 + "${FILESDIR}"/${PN}-2018-gentoo.patch
57 +)
58 +
59 +src_configure() {
60 + emake -j1 setup prefix=/usr ENABLE_SHARED=true \
61 + GPRBUILD="/usr/bin/gprbuild -v"
62 +}
63 +
64 +src_compile() {
65 + emake \
66 + PROCESSORS=$(makeopts_jobs) \
67 + GPRBUILD="/usr/bin/gprbuild -v"
68 +}
69 +
70 +src_install() {
71 + emake DESTDIR="${D}" install
72 + einstalldocs
73 +}
74
75 diff --git a/dev-ada/aws/files/aws-2018-gentoo.patch b/dev-ada/aws/files/aws-2018-gentoo.patch
76 new file mode 100644
77 index 00000000000..5c615d32dba
78 --- /dev/null
79 +++ b/dev-ada/aws/files/aws-2018-gentoo.patch
80 @@ -0,0 +1,56 @@
81 +--- a/config/src/aws-net-std__gnat.adb 2019-05-31 19:03:42.565961279 +0200
82 ++++ b/config/src/aws-net-std__gnat.adb 2019-05-31 19:05:23.895245892 +0200
83 +@@ -132,7 +132,7 @@
84 +
85 + if Reuse_Address then
86 + Sockets.Set_Socket_Option
87 +- (Socket.S.FD, Option => (Sockets.Reuse_Address, Enabled => True));
88 ++ (Socket.S.FD, Sockets.Socket_Level, (Sockets.Reuse_Address, Enabled => True));
89 + end if;
90 +
91 + Sockets.Bind_Socket
92 +@@ -263,7 +263,7 @@
93 + package SC renames OS_Lib;
94 +
95 + Option : constant Option_Type :=
96 +- Get_Socket_Option (Socket.S.FD, Name => Error);
97 ++ Get_Socket_Option (Socket.S.FD, Socket_Level, Error);
98 + begin
99 + case Option.Error is
100 + when Success =>
101 +@@ -439,7 +439,7 @@
102 + is
103 + use Sockets;
104 + begin
105 +- return Get_Socket_Option (Socket.S.FD, Name => Receive_Buffer).Size;
106 ++ return Get_Socket_Option (Socket.S.FD, Socket_Level, Receive_Buffer).Size;
107 + exception
108 + when E : Sockets.Socket_Error =>
109 + Raise_Exception (E, "Get_Receive_Buffer_Size", Socket);
110 +@@ -454,7 +454,7 @@
111 + is
112 + use Sockets;
113 + begin
114 +- return Get_Socket_Option (Socket.S.FD, Name => Send_Buffer).Size;
115 ++ return Get_Socket_Option (Socket.S.FD, Socket_Level, Send_Buffer).Size;
116 + exception
117 + when E : Sockets.Socket_Error =>
118 + Raise_Exception (E, "Get_Send_Buffer_Size", Socket);
119 +@@ -709,7 +709,7 @@
120 + is
121 + use Sockets;
122 + begin
123 +- Set_Socket_Option (Socket.S.FD, Option => (Receive_Buffer, Size));
124 ++ Set_Socket_Option (Socket.S.FD, Socket_Level, (Receive_Buffer, Size));
125 + exception
126 + when E : Sockets.Socket_Error =>
127 + Raise_Exception (E, "Set_Receive_Buffer_Size", Socket);
128 +@@ -725,7 +725,7 @@
129 + is
130 + use Sockets;
131 + begin
132 +- Set_Socket_Option (Socket.S.FD, Option => (Send_Buffer, Size));
133 ++ Set_Socket_Option (Socket.S.FD, Socket_Level, (Send_Buffer, Size));
134 + exception
135 + when E : Sockets.Socket_Error =>
136 + Raise_Exception (E, "Set_Send_Buffer_Size", Socket);
137
138 diff --git a/dev-ada/aws/metadata.xml b/dev-ada/aws/metadata.xml
139 index d2da6346373..7384a3dfb57 100644
140 --- a/dev-ada/aws/metadata.xml
141 +++ b/dev-ada/aws/metadata.xml
142 @@ -9,6 +9,7 @@
143 <flag name="gnat_2016">Compile with dev-lang/gnat-gpl-2016</flag>
144 <flag name="gnat_2017">Compile with dev-lang/gnat-gpl-2017</flag>
145 <flag name="gnat_2018">Compile with dev-lang/gnat-gpl-2018</flag>
146 + <flag name="gnat_2019">Compile with dev-lang/gnat-gpl-2019</flag>
147 </use>
148 <longdescription lang="en">
149 AWS is a complete framework to develop Web based applications. The main part