1 |
commit: f406928d9d838acf1e6052aa6a056c87af77952d |
2 |
Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 21 18:20:11 2017 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 21 18:20:11 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f406928d |
7 |
|
8 |
dev-lang/spark: Add dev-lang/spark |
9 |
|
10 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
11 |
|
12 |
dev-lang/spark/Manifest | 2 + |
13 |
dev-lang/spark/files/spark-2017-gentoo.patch | 10 +++++ |
14 |
dev-lang/spark/metadata.xml | 16 ++++++++ |
15 |
dev-lang/spark/spark-2017.ebuild | 60 ++++++++++++++++++++++++++++ |
16 |
4 files changed, 88 insertions(+) |
17 |
|
18 |
diff --git a/dev-lang/spark/Manifest b/dev-lang/spark/Manifest |
19 |
new file mode 100644 |
20 |
index 00000000000..72f350b3621 |
21 |
--- /dev/null |
22 |
+++ b/dev-lang/spark/Manifest |
23 |
@@ -0,0 +1,2 @@ |
24 |
+DIST gnat-gpl-2017-src.tar.gz 8783473 SHA256 91c9733fb8f8ca4c42fbcab3bc8a54fc83083126f6e6b630c9a36f3654537c29 SHA512 ae7314a2241107ed4d962dce08306eeb34c5f11e26183935bbb1ccf3a5eb011d6457c1b6fcded93dd0ee9ba31d791971ebe2a5a5a0ae04ff80d87a670325a098 WHIRLPOOL cf98ed36553ddfb54502f10898016017e387920bea074395c3a84047c2ec707734a9299de8c5f2f1931a53e04c24e67f8ab017437fbee7b7a658a6c0bca46e35 |
25 |
+DIST spark-gpl-2017-src.tar.gz 19750595 SHA256 39f12849e0c537fe29b874ddc8f6949956894eb4b8e8f5451cbcea6bd3552622 SHA512 90e7644daa6a935c839da9799c6dc5fe0a566f29c5f5d0a964ef5c888581f18c11adf6aa0151ae72437b91430fae06604dab8c3f1fd3222d749cfd330293ff6e WHIRLPOOL f476fd03e1c30f2bc9e92719bf7b3724699586e3c030096dac5c4042e44b6f2cbf28e410bd918e2f4c25ac930229e7b42d6ed6a0b18be65d6a234b8cedd6f5c7 |
26 |
|
27 |
diff --git a/dev-lang/spark/files/spark-2017-gentoo.patch b/dev-lang/spark/files/spark-2017-gentoo.patch |
28 |
new file mode 100644 |
29 |
index 00000000000..479a7ace4dc |
30 |
--- /dev/null |
31 |
+++ b/dev-lang/spark/files/spark-2017-gentoo.patch |
32 |
@@ -0,0 +1,10 @@ |
33 |
+--- spark-gpl-2017-src/gnat2why/gnat2why_c.gpr.old 2017-10-04 21:41:41.613376056 +0200 |
34 |
++++ spark-gpl-2017-src/gnat2why/gnat2why_c.gpr 2017-10-04 21:42:30.582572536 +0200 |
35 |
+@@ -1,4 +1,7 @@ |
36 |
+ project Gnat2Why_C is |
37 |
+ for Languages use ("C"); |
38 |
+ for Object_Dir use "obj"; |
39 |
++ package Compiler is |
40 |
++ for Driver ("C") use External ("CC", "gcc"); |
41 |
++ end Compiler; |
42 |
+ end Gnat2Why_C; |
43 |
|
44 |
diff --git a/dev-lang/spark/metadata.xml b/dev-lang/spark/metadata.xml |
45 |
new file mode 100644 |
46 |
index 00000000000..ca4e653c68e |
47 |
--- /dev/null |
48 |
+++ b/dev-lang/spark/metadata.xml |
49 |
@@ -0,0 +1,16 @@ |
50 |
+<?xml version="1.0" encoding="UTF-8"?> |
51 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
52 |
+<pkgmetadata> |
53 |
+ <maintainer type="person"> |
54 |
+ <email>tupone@g.o</email> |
55 |
+ <name>Tupone Alfredo</name> |
56 |
+ </maintainer> |
57 |
+ <longdescription lang="en"> |
58 |
+ SPARK is a software development technology specifically designed for |
59 |
+ engineering high-reliability applications. It consists of a programming |
60 |
+ language, a verification toolset and a design method which, taken |
61 |
+ together, ensure that ultra-low defect software can be deployed in |
62 |
+ application domains where high-reliability must be assured, for example |
63 |
+ where safety and security are key requirements. |
64 |
+ </longdescription> |
65 |
+</pkgmetadata> |
66 |
|
67 |
diff --git a/dev-lang/spark/spark-2017.ebuild b/dev-lang/spark/spark-2017.ebuild |
68 |
new file mode 100644 |
69 |
index 00000000000..9f1b5646a0e |
70 |
--- /dev/null |
71 |
+++ b/dev-lang/spark/spark-2017.ebuild |
72 |
@@ -0,0 +1,60 @@ |
73 |
+# Copyright 1999-2017 Gentoo Foundation |
74 |
+# Distributed under the terms of the GNU General Public License v2 |
75 |
+ |
76 |
+EAPI=6 |
77 |
+ |
78 |
+inherit toolchain-funcs multiprocessing |
79 |
+ |
80 |
+MYP=${PN}-gpl-${PV} |
81 |
+ |
82 |
+DESCRIPTION="Software development for high-reliability applications." |
83 |
+HOMEPAGE="http://libre.adacore.com" |
84 |
+SRC_URI="http://mirrors.cdn.adacore.com/art/591c4777c7a447af2deed05e |
85 |
+ -> ${MYP}-src.tar.gz |
86 |
+ http://mirrors.cdn.adacore.com/art/591adbb4c7a4473fcc4532a3 |
87 |
+ -> gnat-gpl-2017-src.tar.gz" |
88 |
+ |
89 |
+LICENSE="GPL-3" |
90 |
+SLOT="0" |
91 |
+KEYWORDS="~amd64" |
92 |
+IUSE="" |
93 |
+ |
94 |
+RDEPEND="dev-lang/gnat-gpl:6.3.0 |
95 |
+ >=dev-ada/gnatcoll-2017[gnat_2017,projects] |
96 |
+ sci-mathematics/alt-ergo |
97 |
+ sci-mathematics/why3-for-spark" |
98 |
+DEPEND="${RDEPEND} |
99 |
+ dev-ada/gprbuild[gnat_2017]" |
100 |
+ |
101 |
+S="${WORKDIR}"/${MYP}-src |
102 |
+ |
103 |
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) |
104 |
+ |
105 |
+src_prepare() { |
106 |
+ ln -sf "${WORKDIR}"/gnat-gpl-2017-src/src/ada gnat2why/gnat_src || die |
107 |
+ GCC_PV=6.3.0 |
108 |
+ sed -i \ |
109 |
+ -e "s:gnatmake:gnatmake-${GCC_PV}:g" \ |
110 |
+ -e "s:gnatls:gnatls-${GCC_PV}:g" \ |
111 |
+ Makefile \ |
112 |
+ gnat2why/Makefile || die |
113 |
+ default |
114 |
+} |
115 |
+ |
116 |
+src_compile() { |
117 |
+ emake gnat2why gnatprove |
118 |
+} |
119 |
+ |
120 |
+src_install() { |
121 |
+ emake INSTALLDIR="${D}"/usr install |
122 |
+ einstalldocs |
123 |
+ dosym ../../../lib64/why3/why3server /usr/libexec/spark/bin/why3server |
124 |
+ dobin install/bin/gnatprove |
125 |
+ mv install/share/doc/spark/* "${D}"/usr/share/doc/${PF} || die |
126 |
+ exeinto /usr/libexec/spark/bin |
127 |
+ doexe install/bin/gnat2why |
128 |
+ doexe install/bin/spark_memcached_wrapper |
129 |
+ doexe install/bin/spark_report |
130 |
+ doexe install/bin/spark_codepeer_wrapper |
131 |
+ mv "${D}"/usr/bin/target.atp "${D}"/usr/libexec/spark/bin || die |
132 |
+} |