1 |
commit: f634ca7de8f95c9fda23e6a1fc364f00148b0d5a |
2 |
Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 15 19:10:18 2019 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 15 19:10:18 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f634ca7d |
7 |
|
8 |
dev-ada/gnatcoll-core: 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/gnatcoll-core/gnatcoll-core-2019-r1.ebuild | 74 ++++++++++++++++++++++ |
14 |
1 file changed, 74 insertions(+) |
15 |
|
16 |
diff --git a/dev-ada/gnatcoll-core/gnatcoll-core-2019-r1.ebuild b/dev-ada/gnatcoll-core/gnatcoll-core-2019-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..cb9b5560cae |
19 |
--- /dev/null |
20 |
+++ b/dev-ada/gnatcoll-core/gnatcoll-core-2019-r1.ebuild |
21 |
@@ -0,0 +1,74 @@ |
22 |
+# Copyright 1999-2019 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ADA_COMPAT=( gnat_201{6,7,8,9} ) |
27 |
+inherit ada multiprocessing |
28 |
+ |
29 |
+MYP=${P}-20190515-24AD8 |
30 |
+ |
31 |
+DESCRIPTION="GNAT Component Collection Core packages" |
32 |
+HOMEPAGE="http://libre.adacore.com" |
33 |
+SRC_URI="http://mirrors.cdn.adacore.com/art/5cdf8ae231e87a8f1d425052 |
34 |
+ -> ${MYP}-src.tar.gz" |
35 |
+ |
36 |
+LICENSE="GPL-3" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~x86" |
39 |
+IUSE="gnat_2019 +shared static-libs static-pic" |
40 |
+ |
41 |
+RDEPEND=" |
42 |
+ dev-ada/libgpr[${ADA_USEDEP},shared?,static-libs?,static-pic?] |
43 |
+ !dev-ada/gnatcoll" |
44 |
+DEPEND="${RDEPEND} |
45 |
+ dev-ada/gprbuild[${ADA_USEDEP}]" |
46 |
+ |
47 |
+REQUIRED_USE="${ADA_REQUIRED_USE}" |
48 |
+ |
49 |
+S="${WORKDIR}"/${MYP}-src |
50 |
+ |
51 |
+PATCHES=( "${FILESDIR}"/${PN}-2018-gentoo.patch ) |
52 |
+ |
53 |
+src_prepare() { |
54 |
+ default |
55 |
+ sed -i \ |
56 |
+ -e "s:@GNATLS@:${GNATLS}:g" \ |
57 |
+ src/gnatcoll-projects.ads \ |
58 |
+ || die |
59 |
+} |
60 |
+ |
61 |
+src_configure() { |
62 |
+ emake prefix="${D}"/usr PROCESSORS=$(makeopts_jobs) setup |
63 |
+} |
64 |
+ |
65 |
+src_compile() { |
66 |
+ build () { |
67 |
+ gprbuild -p -m -j$(makeopts_jobs) \ |
68 |
+ -XBUILD=PROD -v -XGNATCOLL_VERSION=${PV} \ |
69 |
+ -XLIBRARY_TYPE=$1 -XXMLADA_BUILD=$* -XGPR_BUILD=$1 \ |
70 |
+ gnatcoll.gpr -cargs:C ${CFLAGS} -cargs:Ada ${ADAFLAGS} || die |
71 |
+ } |
72 |
+ if use shared; then |
73 |
+ build relocatable |
74 |
+ fi |
75 |
+ if use static-pic; then |
76 |
+ build static-pic |
77 |
+ fi |
78 |
+ if use static-libs; then |
79 |
+ build static |
80 |
+ fi |
81 |
+} |
82 |
+ |
83 |
+src_install() { |
84 |
+ if use shared; then |
85 |
+ emake install-relocatable |
86 |
+ fi |
87 |
+ if use static-pic; then |
88 |
+ emake install-static-pic |
89 |
+ fi |
90 |
+ if use static-libs; then |
91 |
+ emake install-static |
92 |
+ fi |
93 |
+ rm -r "${D}"/usr/share/gpr/manifests || die |
94 |
+ einstalldocs |
95 |
+} |