1 |
commit: 48f87f4aeedb2be107f78c3c29d8a7a190d4f8cb |
2 |
Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 12 19:19:40 2019 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 12 19:19:40 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48f87f4a |
7 |
|
8 |
dev-ada/xmlada: simplify 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/xmlada/xmlada-2019-r1.ebuild | 80 ++++++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 80 insertions(+) |
15 |
|
16 |
diff --git a/dev-ada/xmlada/xmlada-2019-r1.ebuild b/dev-ada/xmlada/xmlada-2019-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..994bc36f6f5 |
19 |
--- /dev/null |
20 |
+++ b/dev-ada/xmlada/xmlada-2019-r1.ebuild |
21 |
@@ -0,0 +1,80 @@ |
22 |
+# Copyright 1999-2019 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+ADA_COMPAT=( gnat_201{6,7,8,9} ) |
28 |
+inherit ada multiprocessing |
29 |
+ |
30 |
+MYP=${P}-20190429-19B9D |
31 |
+ |
32 |
+DESCRIPTION="Set of modules that provide a simple manipulation of XML streams" |
33 |
+HOMEPAGE="http://libre.adacore.com/" |
34 |
+SRC_URI="http://mirrors.cdn.adacore.com/art/5cdf916831e87a8f1d4250b5 |
35 |
+ -> ${MYP}-src.tar.gz" |
36 |
+ |
37 |
+LICENSE="GPL-3" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~amd64 ~x86" |
40 |
+IUSE="+shared static-libs static-pic" |
41 |
+REQUIRED_USE="|| ( shared static-libs static-pic ) |
42 |
+ ${ADA_REQUIRED_USE}" |
43 |
+ |
44 |
+RDEPEND="${ADA_DEPS}" |
45 |
+DEPEND="${RDEPEND} |
46 |
+ dev-ada/gprbuild[${ADA_USEDEP}]" |
47 |
+ |
48 |
+S="${WORKDIR}"/${MYP}-src |
49 |
+ |
50 |
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) |
51 |
+ |
52 |
+src_configure () { |
53 |
+ econf --prefix="${D}"/usr |
54 |
+} |
55 |
+ |
56 |
+src_compile () { |
57 |
+ build () { |
58 |
+ gprbuild -j$(makeopts_jobs) -m -p -v -XLIBRARY_TYPE=$1 \ |
59 |
+ -XBUILD=Production -XPROCESSORS=$(makeopts_jobs) xmlada.gpr \ |
60 |
+ -cargs ${ADAFLAGS} || die "gprbuild failed" |
61 |
+ } |
62 |
+ if use shared; then |
63 |
+ build relocatable |
64 |
+ fi |
65 |
+ if use static-libs; then |
66 |
+ build static |
67 |
+ fi |
68 |
+ if use static-pic; then |
69 |
+ build static-pic |
70 |
+ fi |
71 |
+} |
72 |
+ |
73 |
+src_test() { |
74 |
+ emake test |
75 |
+ emake run_test | tee xmlada.testLog |
76 |
+ grep -q DIFF xmlada.testLog && die |
77 |
+} |
78 |
+ |
79 |
+src_install () { |
80 |
+ build () { |
81 |
+ gprinstall -XLIBRARY_TYPE=$1 -f -p -XBUILD=Production \ |
82 |
+ -XPROCESSORS=$(makeopts_jobs) --prefix="${D}"/usr \ |
83 |
+ --install-name=xmlada --build-var=LIBRARY_TYPE \ |
84 |
+ --build-var=XMLADA_BUILD \ |
85 |
+ --build-name=$1 xmlada.gpr || die "gprinstall failed" |
86 |
+ } |
87 |
+ if use shared; then |
88 |
+ build relocatable |
89 |
+ fi |
90 |
+ if use static-libs; then |
91 |
+ build static |
92 |
+ fi |
93 |
+ if use static-pic; then |
94 |
+ build static-pic |
95 |
+ fi |
96 |
+ |
97 |
+ einstalldocs |
98 |
+ dodoc xmlada-roadmap.txt |
99 |
+ rm -f "${D}"/usr/share/doc/${PN}/.buildinfo |
100 |
+ rm -rf "${D}"/usr/share/gpr/manifests |
101 |
+} |