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-lang/spark/
Date: Sun, 15 Jul 2018 08:21:55
Message-Id: 1531642893.228032327ba5efdef41a23138d9c4cd2dd74c5e4.tupone@gentoo
1 commit: 228032327ba5efdef41a23138d9c4cd2dd74c5e4
2 Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 15 08:21:33 2018 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 15 08:21:33 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22803232
7
8 dev-lang/spark: Version bump to 2018
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 dev-lang/spark/Manifest | 2 ++
13 dev-lang/spark/spark-2018.ebuild | 61 ++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 63 insertions(+)
15
16 diff --git a/dev-lang/spark/Manifest b/dev-lang/spark/Manifest
17 index 459039cb881..e73c276d0b1 100644
18 --- a/dev-lang/spark/Manifest
19 +++ b/dev-lang/spark/Manifest
20 @@ -1,2 +1,4 @@
21 DIST gnat-gpl-2017-src.tar.gz 8783473 BLAKE2B b0415b42f4d3a5e8675591a5602ff0a96945670104064671a232c0c12271ee141a3a5d148b8507bdab83cb8a0677c57b78e690060088308c51732bad3715964f SHA512 ae7314a2241107ed4d962dce08306eeb34c5f11e26183935bbb1ccf3a5eb011d6457c1b6fcded93dd0ee9ba31d791971ebe2a5a5a0ae04ff80d87a670325a098
22 +DIST gnat-gpl-2018-src.tar.gz 8706578 BLAKE2B ba245fd91cc5263d5b8c159d9e75caf6bed21dcaa5fa43734af8775a4008ce5f96bfb84a8b5e6e734ff883314ab3219dacec3fe95a5baa33fb712bfb5ff8bce8 SHA512 0ff7e848ef77f7e772e2a1b01905307a91c332f32329456f5238c4b7eb46cc118709e8682a5fc826d98a7d99fd15a92c194f4a278f04bc465165cfa616cc3c2e
23 DIST spark-gpl-2017-src.tar.gz 19750595 BLAKE2B 840eb9044b732aad16d2b6be9972e4805caf1e1b521ba40cc2a234871775d0212153ed9e9f84b4a2ddbeefc2b9c7d7556db943153655df6051cf4dc3f1be2e01 SHA512 90e7644daa6a935c839da9799c6dc5fe0a566f29c5f5d0a964ef5c888581f18c11adf6aa0151ae72437b91430fae06604dab8c3f1fd3222d749cfd330293ff6e
24 +DIST spark-gpl-2018-src.tar.gz 20244517 BLAKE2B efb8120a869eaf79aa513ea3b3393dcefdb548e66a00a630bfb9d28a59785c15362c111df3635423a7312c491c9929a7bcd8e7161607dc4d3acd6d1c27f3ca3e SHA512 83490a95c2d6401bcd077a8ec508eaf18609b5b480ccd9f247f4bb61164b5e52e34473526cd49ebdf5fd15ac422ed4a121dc50cab96241db02af9e32812a4df8
25
26 diff --git a/dev-lang/spark/spark-2018.ebuild b/dev-lang/spark/spark-2018.ebuild
27 new file mode 100644
28 index 00000000000..e25af28a4b1
29 --- /dev/null
30 +++ b/dev-lang/spark/spark-2018.ebuild
31 @@ -0,0 +1,61 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +inherit toolchain-funcs multiprocessing
38 +
39 +MYP=${PN}-gpl-${PV}
40 +
41 +DESCRIPTION="Software development for high-reliability applications."
42 +HOMEPAGE="http://libre.adacore.com"
43 +SRC_URI="http://mirrors.cdn.adacore.com/art/5b0819dec7a447df26c27a47
44 + -> ${MYP}-src.tar.gz
45 + http://mirrors.cdn.adacore.com/art/5b0819dfc7a447df26c27aa5
46 + -> gnat-gpl-2018-src.tar.gz"
47 +
48 +LICENSE="GPL-3"
49 +SLOT="0"
50 +KEYWORDS="~amd64"
51 +IUSE=""
52 +
53 +RDEPEND="dev-lang/gnat-gpl:7.3.1
54 + dev-ada/gnatcoll-core[gnat_2018,shared]
55 + sci-mathematics/alt-ergo
56 + sci-mathematics/why3-for-spark"
57 +DEPEND="${RDEPEND}
58 + dev-ada/gprbuild[gnat_2018]"
59 +
60 +S="${WORKDIR}"/${MYP}-src
61 +
62 +PATCHES=( "${FILESDIR}"/${PN}-2017-gentoo.patch )
63 +
64 +src_prepare() {
65 + ln -sf "${WORKDIR}"/gnat-gpl-2018-src/src/ada gnat2why/gnat_src || die
66 + GCC_PV=7.3.1
67 + sed -i \
68 + -e "s:gnatmake:gnatmake-${GCC_PV}:g" \
69 + -e "s:gnatls:gnatls-${GCC_PV}:g" \
70 + Makefile \
71 + gnat2why/Makefile || die
72 + default
73 +}
74 +
75 +src_compile() {
76 + emake GPRARGS="-XLIBRARY_TYPE=relocatable" gnat2why
77 + emake PROD="-XLIBRARY_TYPE=relocatable" gnatprove
78 +}
79 +
80 +src_install() {
81 + emake INSTALLDIR="${D}"/usr install
82 + einstalldocs
83 + dosym ../../../lib64/why3/why3server /usr/libexec/spark/bin/why3server
84 + dobin install/bin/gnatprove
85 + mv install/share/doc/spark/* "${D}"/usr/share/doc/${PF} || die
86 + exeinto /usr/libexec/spark/bin
87 + doexe install/bin/gnat2why
88 + doexe install/bin/spark_memcached_wrapper
89 + doexe install/bin/spark_report
90 + doexe install/bin/spark_codepeer_wrapper
91 + mv "${D}"/usr/bin/target.atp "${D}"/usr/libexec/spark/bin || die
92 +}