From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-lang/spark/Manifest | 5 +++ dev-lang/spark/files/spark-2017-gentoo.patch | 10 +++++ dev-lang/spark/metadata.xml | 16 ++++++++ dev-lang/spark/spark-2017.ebuild | 61 ++++++++++++++++++++++++++++ 4 files changed, 92 insertions(+) create mode 100644 dev-lang/spark/Manifest create mode 100644 dev-lang/spark/files/spark-2017-gentoo.patch create mode 100644 dev-lang/spark/metadata.xml create mode 100644 dev-lang/spark/spark-2017.ebuild (limited to 'dev-lang/spark') diff --git a/dev-lang/spark/Manifest b/dev-lang/spark/Manifest new file mode 100644 index 000000000000..ded6ec1d1271 --- /dev/null +++ b/dev-lang/spark/Manifest @@ -0,0 +1,5 @@ +AUX spark-2017-gentoo.patch 379 BLAKE2B 33907d6cd9099071cd04f687b05ab33da89bbd9a1d15e8282ae7791786c5638f977b39d482dfc15d07377ed2b06937a1d3f9ca18a6eb745ac7c3ec4d7cffa5ee SHA512 b4db9b56ab003dff8aec28248ea32af6fb4067c1824b0f6d115d66d1f3c8d180a17a2fa52a5f2ebc3605b549e0b38aafa15e9f238b079d5366d5375d851d84d1 +DIST gnat-gpl-2017-src.tar.gz 8783473 BLAKE2B b0415b42f4d3a5e8675591a5602ff0a96945670104064671a232c0c12271ee141a3a5d148b8507bdab83cb8a0677c57b78e690060088308c51732bad3715964f SHA512 ae7314a2241107ed4d962dce08306eeb34c5f11e26183935bbb1ccf3a5eb011d6457c1b6fcded93dd0ee9ba31d791971ebe2a5a5a0ae04ff80d87a670325a098 +DIST spark-gpl-2017-src.tar.gz 19750595 BLAKE2B 840eb9044b732aad16d2b6be9972e4805caf1e1b521ba40cc2a234871775d0212153ed9e9f84b4a2ddbeefc2b9c7d7556db943153655df6051cf4dc3f1be2e01 SHA512 90e7644daa6a935c839da9799c6dc5fe0a566f29c5f5d0a964ef5c888581f18c11adf6aa0151ae72437b91430fae06604dab8c3f1fd3222d749cfd330293ff6e +EBUILD spark-2017.ebuild 1628 BLAKE2B ec15a84af3a0bc1417cec1db937f21e74797d2959047f6f8e07b816a4078caa283d48665917590ce8da707d16c27e0c05d4c168f6f1f1bfba2c500bd336698e4 SHA512 d9a230596c29e6ccd09aee78326904f21676bb736546df40df2ed41d93b0b4015f739d00c868d8deaa54274127b18b69c979b8deeffe6db979518d833bebd0e7 +MISC metadata.xml 702 BLAKE2B 26ae203d09cb80c4c75ca368651aa24da08657142d7e84e4dbdac335b501e98d6646e59b90b71706c8521e8e9c0692550615ef15f373f5d8d26e48ec74c2e72b SHA512 bd30717cad1bceeef722cf8a27cd3902ad636f088f64cc41f1be5d356a7def55e426bd62fd7a3e7d9272f61a6fad96bec423e7529660c8061650af72faeaeb57 diff --git a/dev-lang/spark/files/spark-2017-gentoo.patch b/dev-lang/spark/files/spark-2017-gentoo.patch new file mode 100644 index 000000000000..479a7ace4dc2 --- /dev/null +++ b/dev-lang/spark/files/spark-2017-gentoo.patch @@ -0,0 +1,10 @@ +--- spark-gpl-2017-src/gnat2why/gnat2why_c.gpr.old 2017-10-04 21:41:41.613376056 +0200 ++++ spark-gpl-2017-src/gnat2why/gnat2why_c.gpr 2017-10-04 21:42:30.582572536 +0200 +@@ -1,4 +1,7 @@ + project Gnat2Why_C is + for Languages use ("C"); + for Object_Dir use "obj"; ++ package Compiler is ++ for Driver ("C") use External ("CC", "gcc"); ++ end Compiler; + end Gnat2Why_C; diff --git a/dev-lang/spark/metadata.xml b/dev-lang/spark/metadata.xml new file mode 100644 index 000000000000..ca4e653c68ef --- /dev/null +++ b/dev-lang/spark/metadata.xml @@ -0,0 +1,16 @@ + + + + + tupone@gentoo.org + Tupone Alfredo + + + SPARK is a software development technology specifically designed for + engineering high-reliability applications. It consists of a programming + language, a verification toolset and a design method which, taken + together, ensure that ultra-low defect software can be deployed in + application domains where high-reliability must be assured, for example + where safety and security are key requirements. + + diff --git a/dev-lang/spark/spark-2017.ebuild b/dev-lang/spark/spark-2017.ebuild new file mode 100644 index 000000000000..47ad4e812b0f --- /dev/null +++ b/dev-lang/spark/spark-2017.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs multiprocessing + +MYP=${PN}-gpl-${PV} + +DESCRIPTION="Software development for high-reliability applications." +HOMEPAGE="http://libre.adacore.com" +SRC_URI="http://mirrors.cdn.adacore.com/art/591c4777c7a447af2deed05e + -> ${MYP}-src.tar.gz + http://mirrors.cdn.adacore.com/art/591adbb4c7a4473fcc4532a3 + -> gnat-gpl-2017-src.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND="dev-lang/gnat-gpl:6.3.0 + >=dev-ada/gnatcoll-2017[gnat_2017,projects,shared] + sci-mathematics/alt-ergo + sci-mathematics/why3-for-spark" +DEPEND="${RDEPEND} + dev-ada/gprbuild[gnat_2017]" + +S="${WORKDIR}"/${MYP}-src + +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) + +src_prepare() { + ln -sf "${WORKDIR}"/gnat-gpl-2017-src/src/ada gnat2why/gnat_src || die + GCC_PV=6.3.0 + sed -i \ + -e "s:gnatmake:gnatmake-${GCC_PV}:g" \ + -e "s:gnatls:gnatls-${GCC_PV}:g" \ + Makefile \ + gnat2why/Makefile || die + default +} + +src_compile() { + emake GPRARGS="-XLIBRARY_TYPE=relocatable" gnat2why + emake PROD="-XLIBRARY_TYPE=relocatable" gnatprove +} + +src_install() { + emake INSTALLDIR="${D}"/usr install + einstalldocs + dosym ../../../lib64/why3/why3server /usr/libexec/spark/bin/why3server + dobin install/bin/gnatprove + mv install/share/doc/spark/* "${D}"/usr/share/doc/${PF} || die + exeinto /usr/libexec/spark/bin + doexe install/bin/gnat2why + doexe install/bin/spark_memcached_wrapper + doexe install/bin/spark_report + doexe install/bin/spark_codepeer_wrapper + mv "${D}"/usr/bin/target.atp "${D}"/usr/libexec/spark/bin || die +} -- cgit v1.2.3