1 |
commit: 5286b4f6cd79dc7a1797daa9109d06ae5c2c9331 |
2 |
Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 5 06:11:30 2019 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 5 06:11:30 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5286b4f6 |
7 |
|
8 |
dev-ada/gprbuild: using ada eclass |
9 |
|
10 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
11 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
12 |
|
13 |
dev-ada/gprbuild/gprbuild-2017-r2.ebuild | 89 ++++++++++++++++++++++++++++++++ |
14 |
dev-ada/gprbuild/gprbuild-2019-r1.ebuild | 81 +++++++++++++++++++++++++++++ |
15 |
2 files changed, 170 insertions(+) |
16 |
|
17 |
diff --git a/dev-ada/gprbuild/gprbuild-2017-r2.ebuild b/dev-ada/gprbuild/gprbuild-2017-r2.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..79897043cf6 |
20 |
--- /dev/null |
21 |
+++ b/dev-ada/gprbuild/gprbuild-2017-r2.ebuild |
22 |
@@ -0,0 +1,89 @@ |
23 |
+# Copyright 1999-2019 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+ADA_COMPAT=( gnat_201{6,7} ) |
29 |
+ |
30 |
+inherit ada toolchain-funcs multiprocessing |
31 |
+ |
32 |
+MYP=${PN}-gpl-${PV} |
33 |
+ |
34 |
+DESCRIPTION="Multi-Language Management" |
35 |
+HOMEPAGE="http://libre.adacore.com/" |
36 |
+SRC_URI=" |
37 |
+ http://mirrors.cdn.adacore.com/art/591c45e2c7a447af2deecff7 |
38 |
+ -> ${MYP}-src.tar.gz |
39 |
+ http://mirrors.cdn.adacore.com/art/591aeb88c7a4473fcbb154f8 |
40 |
+ -> xmlada-gpl-${PV}-src.tar.gz" |
41 |
+LICENSE="GPL-3" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64 ~x86" |
44 |
+IUSE="" |
45 |
+ |
46 |
+REQUIRED_USE="${ADA_REQUIRED_USE}" |
47 |
+ |
48 |
+DEPEND="${ADA_DEPS}" |
49 |
+RDEPEND="${DEPEND}" |
50 |
+ |
51 |
+S="${WORKDIR}"/${MYP}-src |
52 |
+ |
53 |
+PATCHES=( |
54 |
+ "${FILESDIR}"/${P}-gentoo.patch |
55 |
+ "${FILESDIR}"/${P}-config.patch |
56 |
+) |
57 |
+ |
58 |
+src_prepare() { |
59 |
+ default |
60 |
+ sed -i \ |
61 |
+ -e "s:@VER@:${GCC_PV}:g" \ |
62 |
+ share/gprconfig/compilers.xml \ |
63 |
+ share/gprconfig/gnat.xml \ |
64 |
+ share/gprconfig/c.xml \ |
65 |
+ share/gprconfig/linker.xml \ |
66 |
+ || die |
67 |
+ sed -i \ |
68 |
+ -e "s:@GNATBIND@:${GNATBIND}:g" \ |
69 |
+ src/gprlib.adb \ |
70 |
+ || die |
71 |
+ if use ada_target_gnat_2016; then |
72 |
+ sed -i \ |
73 |
+ -e 's:"-no-pie", ::g' \ |
74 |
+ share/gprconfig/linker.xml \ |
75 |
+ || die |
76 |
+ fi |
77 |
+} |
78 |
+ |
79 |
+src_configure() { |
80 |
+ emake prefix="${D}"/usr setup |
81 |
+} |
82 |
+ |
83 |
+bin_progs="gprbuild gprconfig gprclean gprinstall gprname gprls" |
84 |
+lib_progs="gprlib gprbind" |
85 |
+ |
86 |
+src_compile() { |
87 |
+ local xmlada_src="../xmlada-gpl-${PV}-src" |
88 |
+ incflags="-Isrc -Igpr/src -I${xmlada_src}/sax -I${xmlada_src}/dom \ |
89 |
+ -I${xmlada_src}/schema -I${xmlada_src}/unicode \ |
90 |
+ -I${xmlada_src}/input_sources" |
91 |
+ ${GCC} -c ${CFLAGS} gpr/src/gpr_imports.c -o gpr_imports.o || die |
92 |
+ for bin in ${bin_progs}; do |
93 |
+ ${GNATMAKE} -j$(makeopts_jobs) ${incflags} $ADAFLAGS ${bin}-main \ |
94 |
+ -o ${bin} -largs gpr_imports.o || die |
95 |
+ done |
96 |
+ for lib in $lib_progs; do |
97 |
+ ${GNATMAKE} -j$(makeopts_jobs) ${incflags} ${lib} $ADAFLAGS \ |
98 |
+ -largs gpr_imports.o || die |
99 |
+ done |
100 |
+} |
101 |
+ |
102 |
+src_install() { |
103 |
+ dobin ${bin_progs} |
104 |
+ exeinto /usr/libexec/gprbuild |
105 |
+ doexe ${lib_progs} |
106 |
+ insinto /usr/share/gprconfig |
107 |
+ doins share/gprconfig/* |
108 |
+ insinto /usr/share/gpr |
109 |
+ doins share/_default.gpr |
110 |
+ einstalldocs |
111 |
+} |
112 |
|
113 |
diff --git a/dev-ada/gprbuild/gprbuild-2019-r1.ebuild b/dev-ada/gprbuild/gprbuild-2019-r1.ebuild |
114 |
new file mode 100644 |
115 |
index 00000000000..14f410a45c1 |
116 |
--- /dev/null |
117 |
+++ b/dev-ada/gprbuild/gprbuild-2019-r1.ebuild |
118 |
@@ -0,0 +1,81 @@ |
119 |
+# Copyright 1999-2019 Gentoo Authors |
120 |
+# Distributed under the terms of the GNU General Public License v2 |
121 |
+ |
122 |
+EAPI=7 |
123 |
+ |
124 |
+ADA_COMPAT=( gnat_201{7,8,9} ) |
125 |
+ |
126 |
+inherit ada toolchain-funcs multiprocessing |
127 |
+ |
128 |
+MYP=${P}-20190517-194D8-src |
129 |
+XMLADA=xmlada-${PV}-20190429-19B9D-src |
130 |
+ |
131 |
+DESCRIPTION="Multi-Language Management" |
132 |
+HOMEPAGE="http://libre.adacore.com/" |
133 |
+SRC_URI=" |
134 |
+ http://mirrors.cdn.adacore.com/art/5cdf8e8031e87a8f1d425093 |
135 |
+ -> ${MYP}.tar.gz |
136 |
+ http://mirrors.cdn.adacore.com/art/5cdf916831e87a8f1d4250b5 |
137 |
+ -> ${XMLADA}.tar.gz" |
138 |
+LICENSE="GPL-3" |
139 |
+SLOT="0" |
140 |
+KEYWORDS="~amd64 ~x86" |
141 |
+IUSE="" |
142 |
+ |
143 |
+REQUIRED_USE="${ADA_REQUIRED_USE}" |
144 |
+ |
145 |
+DEPEND="${ADA_DEPS}" |
146 |
+RDEPEND="${DEPEND}" |
147 |
+ |
148 |
+S="${WORKDIR}"/${MYP} |
149 |
+ |
150 |
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) |
151 |
+ |
152 |
+src_prepare() { |
153 |
+ default |
154 |
+ sed -i \ |
155 |
+ -e "s:@VER@:${GCC_PV}:g" \ |
156 |
+ share/gprconfig/compilers.xml \ |
157 |
+ share/gprconfig/gnat.xml \ |
158 |
+ share/gprconfig/c.xml \ |
159 |
+ share/gprconfig/linker.xml \ |
160 |
+ || die |
161 |
+ sed -i \ |
162 |
+ -e "s:@GNATBIND@:${GNATBIND}:g" \ |
163 |
+ src/gprlib.adb \ |
164 |
+ || die |
165 |
+} |
166 |
+ |
167 |
+src_configure() { |
168 |
+ emake prefix="${D}"/usr setup |
169 |
+} |
170 |
+ |
171 |
+bin_progs="gprbuild gprconfig gprclean gprinstall gprname gprls" |
172 |
+lib_progs="gprlib gprbind" |
173 |
+ |
174 |
+src_compile() { |
175 |
+ local xmlada_src="../${XMLADA}" |
176 |
+ incflags="-Isrc -Igpr/src -I${xmlada_src}/sax -I${xmlada_src}/dom \ |
177 |
+ -I${xmlada_src}/schema -I${xmlada_src}/unicode \ |
178 |
+ -I${xmlada_src}/input_sources" |
179 |
+ ${GCC} -c ${CFLAGS} gpr/src/gpr_imports.c -o gpr_imports.o || die |
180 |
+ for bin in ${bin_progs}; do |
181 |
+ ${GNATMAKE} -j$(makeopts_jobs) ${incflags} $ADAFLAGS ${bin}-main \ |
182 |
+ -o ${bin} -largs gpr_imports.o || die |
183 |
+ done |
184 |
+ for lib in $lib_progs; do |
185 |
+ ${GNATMAKE} -j$(makeopts_jobs) ${incflags} ${lib} $ADAFLAGS \ |
186 |
+ -largs gpr_imports.o || die |
187 |
+ done |
188 |
+} |
189 |
+ |
190 |
+src_install() { |
191 |
+ dobin ${bin_progs} |
192 |
+ exeinto /usr/libexec/gprbuild |
193 |
+ doexe ${lib_progs} |
194 |
+ insinto /usr/share/gprconfig |
195 |
+ doins share/gprconfig/* |
196 |
+ insinto /usr/share/gpr |
197 |
+ doins share/_default.gpr |
198 |
+ einstalldocs |
199 |
+} |