diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-mathematics/spass |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-mathematics/spass')
-rw-r--r-- | sci-mathematics/spass/Manifest | 7 | ||||
-rw-r--r-- | sci-mathematics/spass/metadata.xml | 18 | ||||
-rw-r--r-- | sci-mathematics/spass/spass-3.7.ebuild | 81 | ||||
-rw-r--r-- | sci-mathematics/spass/spass-3.9.ebuild | 145 |
4 files changed, 251 insertions, 0 deletions
diff --git a/sci-mathematics/spass/Manifest b/sci-mathematics/spass/Manifest new file mode 100644 index 000000000000..ef0da8fd4682 --- /dev/null +++ b/sci-mathematics/spass/Manifest @@ -0,0 +1,7 @@ +DIST spass37.tgz 1340925 SHA256 13c67e5e09b814ba50f38a391fe653661ba714e7541ffd4951efef91274aaacc SHA512 5b4efd7b767dfee3f24e7917a6ec58ac240ab33bf601722eabd50af57637d8fdd62de9e34e7cd1cd98b8b7e371c9e2d47c8fa3e07c6e7ce2fa616a76646a4e12 WHIRLPOOL 2fa8881b08a0fcdb9f1a6e7d27849f5c900a32f2cb27d878fbdae4986d0854608fd137e4608349c4eb612f4e1981142e63af8462ab904f7d08c3e2758f319835 +DIST spass39.tgz 554633 SHA256 1797c3fbd1954189c812fbab7927880bad964ded400bae733a9938c7e6b09e85 SHA512 d7ea0697426c476f2e03b2f9078b7e060671067a67fad7144bb5887a2dd3f39e19e1888f121fce546b5d6ea9a4dc458d1cbec56b59c93507e7dc2d0afa25a89b WHIRLPOOL ad69c2e3714c5c640898a71a47ad6ab8370d3dd568372d492e82e6ba17312e84d3885016db3f923a4d7b3967cb0ac65c8e9dd8f0c8ce93f9de0534be01a371aa +EBUILD spass-3.7.ebuild 1991 SHA256 8524f5dcdd8259d5e1738dff7913a80733c019b2bfea2eb38061d38c10d46a60 SHA512 a155b205249cd9e80b274d8316d42e3a69d60aeecaabe4162b8b6225433a138b5b33605cde7dea391b65c9acb97f65807e0bbf7f2eb9fbe7970e38c81cccb33b WHIRLPOOL 888941f10f766da432b55e3c9e5de885a63232ea03b2cf4dc9150ef1fb2b25bcdb6e575304a774408878f72842c1955d58fae10b34850ad6324adb1bb899814e +EBUILD spass-3.9.ebuild 4528 SHA256 3e57af8d835a632140db27e2adae2d432fe0f4a8af089dc6e787442f9c27a71e SHA512 5cd41de9201063f2ebf696b5cdd1cf2572e6e0e99282c41a0fd3a92ea8589337da63e4392e0e45257b79dd667d986f7206655310696372ce433e43f5473a6f2c WHIRLPOOL c7d039bc9b3ea7e384f95282a95496879d06f70efb5a348302a8e9b70e1498b0dffc6e46b5c6230a8d048a47b7afe0a7c680409041db6e913d8ab2fb58d11beb +MISC ChangeLog 2424 SHA256 f4936a0ff754040be0956d786c7158b361c450e27f8237913536b4a4bcda2812 SHA512 4b0181fb1b17724771d12059ce3cf492e51855bfdf79e433c8f390855977c9e5764416ade2a18e3d836044826d796430ca100fec41fe92bbe53bb2a555e4618d WHIRLPOOL 8169fcaec589d542e37d97948ac3e100f2b9a0466a888f9c9390dcb97caccd4643361387af38672f91ee3445de91216666a8e5a03decbaf7685198098720feec +MISC ChangeLog-2015 1093 SHA256 3c2d8b3531c2a1bc4b3e8043f2e7c22412692835d4afbdec8c6bbdd11be581fb SHA512 a2207b16aa8aad5a71d04e263bddf2cf2044a6f9851dac97aef8af43cd70d917fe875af989782e1116d5f6b3c5080bee687c0301efaa564964368f431b01d809 WHIRLPOOL aacab1927f786e96938be5b4b7073b935f1e882485c6ae98c58cca35e2efa004ff7e97455983d2cb422e7b1e775e5ec4289e789ac4b806ff938071722660aac9 +MISC metadata.xml 576 SHA256 7a3da86dbf6e3e8dbcec949179166741b53122cff989568c9651dee00bc43308 SHA512 0524dd35d60d33e5e75d83079dcf6e9dadfb65bc16fcafda1a8128e0cf8256e0c2d4c1aa0e7f54e19ff6568c00c2be9b9a7b6309d905735b6298bdf721bbbf4c WHIRLPOOL f3e819cae52a36d233867654563bf865f64e3109f4866115d3a565e3923a70d26d21611df23140c456b3b827b8868282187b49be2dc4ac9d1f50527a8812b23b diff --git a/sci-mathematics/spass/metadata.xml b/sci-mathematics/spass/metadata.xml new file mode 100644 index 000000000000..742f96e9a9c2 --- /dev/null +++ b/sci-mathematics/spass/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>gienah@gentoo.org</email> + </maintainer> + <maintainer type="project"> + <email>sci-mathematics@gentoo.org</email> + <name>Gentoo Mathematics Project</name> + </maintainer> + <longdescription lang="en"> +SPASS: An Automated Theorem Prover for First-Order Logic with Equality. +</longdescription> + <use> + <flag name="isabelle">Add integration support for the Isabelle/HOL + theorem prover.</flag> + </use> +</pkgmetadata> diff --git a/sci-mathematics/spass/spass-3.7.ebuild b/sci-mathematics/spass/spass-3.7.ebuild new file mode 100644 index 000000000000..6f16128d8a8c --- /dev/null +++ b/sci-mathematics/spass/spass-3.7.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit versionator + +MY_PV=$(delete_all_version_separators "${PV}") +MY_P="${PN}${MY_PV}" + +DESCRIPTION="An Automated Theorem Prover for First-Order Logic with Equality" +HOMEPAGE="http://www.spass-prover.org/" +SRC_URI="http://www.spass-prover.org/download/sources/${MY_P}.tgz" + +LICENSE="BSD-2" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples isabelle" + +RDEPEND="isabelle? ( + >=sci-mathematics/isabelle-2011.1-r1:= + )" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/SPASS-${PV}" + +src_prepare() { + sed \ + -e "s:-O3:${CFLAGS}:g" \ + -i configure || die +} + +src_install() { + default + + if use examples; then + insinto /usr/share/${PN}/ + doins -r examples + fi + + if use isabelle; then + ewarn "All open source versions of spass are broken with Isabelle 2016.1" + ISABELLE_HOME="$(isabelle getenv ISABELLE_HOME | cut -d'=' -f 2)" + [[ -n "${ISABELLE_HOME}" ]] || die "ISABELLE_HOME empty" + dodir "${ISABELLE_HOME}/contrib/${PN}-${PV}/etc" + cat <<- EOF >> "${S}/settings" + SPASS_HOME="${ROOT}usr/bin" + SPASS_VERSION="${PV}" + EOF + insinto "${ISABELLE_HOME}/contrib/${PN}-${PV}/etc" + doins "${S}/settings" + fi +} + +pkg_postinst() { + if use isabelle; then + if [ -f "${ROOT}etc/isabelle/components" ]; then + if egrep "contrib/${PN}-[0-9.]*" "${ROOT}etc/isabelle/components"; then + sed -e "/contrib\/${PN}-[0-9.]*/d" \ + -i "${ROOT}etc/isabelle/components" + fi + cat <<- EOF >> "${ROOT}etc/isabelle/components" + contrib/${PN}-${PV} + EOF + fi + fi +} + +pkg_postrm() { + if use isabelle; then + if [ ! -f "${ROOT}usr/bin/SPASS" ]; then + if [ -f "${ROOT}etc/isabelle/components" ]; then + # Note: this sed should only match the version of this ebuild + # Which is what we want as we do not want to remove the line + # of a new spass being installed during an upgrade. + sed -e "/contrib\/${PN}-${PV}/d" \ + -i "${ROOT}etc/isabelle/components" + fi + fi + fi +} diff --git a/sci-mathematics/spass/spass-3.9.ebuild b/sci-mathematics/spass/spass-3.9.ebuild new file mode 100644 index 000000000000..8fdbb7ebb633 --- /dev/null +++ b/sci-mathematics/spass/spass-3.9.ebuild @@ -0,0 +1,145 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit versionator + +MY_PV=$(delete_all_version_separators "${PV}") +MY_P="${PN}${MY_PV}" + +DESCRIPTION="An Automated Theorem Prover for First-Order Logic with Equality" +HOMEPAGE="http://www.spass-prover.org/" +SRC_URI="http://www.spass-prover.org/download/sources/${MY_P}.tgz" + +LICENSE="BSD-2" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="isabelle" + +RDEPEND="isabelle? ( + sci-mathematics/isabelle:= + )" +DEPEND="${RDEPEND}" + +src_unpack() { + mkdir -p "${P}" || die + cd "${S}" || die + unpack "${MY_P}.tgz" +} + +src_compile() { + einfo "generating parsers" + bison -d -p pro_ -o proparser.c proparser.y || die + bison -d -p tptp_ -o tptpparser.c tptpparser.y || die + bison -d -p ia_ -o iaparser.c iaparser.y || die + + einfo "generating lexers" + flex -Ppro_ -o proscanner.c proscanner.l || die + flex -Ptptp_ -o tptpscanner.c tptpscanner.l || die + flex -Pia_ -o iascanner.c iascanner.l || die + + einfo "compiling sources" + local x + for x in *.c + do + $(tc-getCC) \ + ${CPPFLAGS} ${CFLAGS} \ + -c -o ${x/.c/.o} ${x} || die "compile ${x} failed" + done + + einfo "linking tptp2dfg" + $(tc-getCC) \ + ${LDFLAGS} -o tptp2dfg \ + array.o clause.o cmdline.o context.o description.o dfg_diagnostic.o \ + dfg_string_table.o dfg_token.o dfgparser.o dfglexer.o \ + tptpparser.o tptpscanner.o eml.o flags.o foldfg.o hashmap.o kbo.o \ + list.o memory.o misc.o order.o rpos.o sharing.o st.o stack.o \ + strings.o subst.o symbol.o term.o unify.o tptp2dfg.o -lm \ + || die "link tptp2dfg failed" + + einfo "linking dfg2ascii" + $(tc-getCC) \ + ${LDFLAGS} -o dfg2ascii \ + array.o clause.o cmdline.o context.o description.o dfg_diagnostic.o \ + dfg_string_table.o dfg_token.o dfgparser.o dfglexer.o \ + tptpparser.o tptpscanner.o eml.o flags.o foldfg.o hashmap.o kbo.o \ + list.o memory.o misc.o order.o rpos.o sharing.o st.o stack.o \ + strings.o subst.o symbol.o term.o unify.o dfg2ascii.o -lm \ + || die "link dfg2ascii failed" + + einfo "linking dfg2dfg" + $(tc-getCC) \ + ${LDFLAGS} -o dfg2dfg \ + array.o clause.o cmdline.o context.o description.o dfg_diagnostic.o \ + dfg_string_table.o dfg_token.o dfgparser.o dfglexer.o \ + tptpparser.o tptpscanner.o eml.o flags.o foldfg.o hashmap.o kbo.o \ + list.o memory.o misc.o order.o rpos.o sharing.o st.o stack.o \ + strings.o subst.o symbol.o term.o unify.o approx.o dfg2dfg.o -lm \ + || die "link dfg2dfg failed" + + einfo "linking SPASS" + $(tc-getCC) \ + ${LDFLAGS} -o SPASS \ + array.o clause.o cmdline.o context.o description.o dfg_diagnostic.o \ + dfg_string_table.o dfg_token.o dfgparser.o dfglexer.o \ + tptpparser.o tptpscanner.o eml.o flags.o foldfg.o hashmap.o kbo.o \ + list.o memory.o misc.o order.o rpos.o sharing.o st.o stack.o \ + strings.o subst.o symbol.o term.o unify.o analyze.o clock.o \ + closure.o cnf.o component.o condensing.o defs.o doc-proof.o graph.o \ + hash.o hasharray.o iaparser.o iascanner.o partition.o proofcheck.o \ + ras.o renaming.o resolution.o rules-inf.o rules-red.o rules-sort.o \ + rules-split.o rules-ur.o search.o sort.o subsumption.o table.o \ + tableau.o terminator.o top.o vector.o -lm \ + || die "link SPASS failed" +} + +src_install() { + exeinto /usr/bin + local x + for x in tptp2dfg dfg2ascii dfg2dfg SPASS + do + doexe ${x} + done + + if use isabelle; then + ewarn "All open source versions of spass are broken with Isabelle 2016.1" + ISABELLE_HOME="$(isabelle getenv ISABELLE_HOME | cut -d'=' -f 2)" + [[ -n "${ISABELLE_HOME}" ]] || die "ISABELLE_HOME empty" + dodir "${ISABELLE_HOME}/contrib/${PN}-${PV}/etc" + cat <<- EOF >> "${S}/settings" + SPASS_HOME="${ROOT}usr/bin" + SPASS_VERSION="${PV}" + EOF + insinto "${ISABELLE_HOME}/contrib/${PN}-${PV}/etc" + doins "${S}/settings" + fi +} + +pkg_postinst() { + if use isabelle; then + if [ -f "${ROOT}etc/isabelle/components" ]; then + if egrep "contrib/${PN}-[0-9.]*" "${ROOT}etc/isabelle/components"; then + sed -e "/contrib\/${PN}-[0-9.]*/d" \ + -i "${ROOT}etc/isabelle/components" + fi + cat <<- EOF >> "${ROOT}etc/isabelle/components" + contrib/${PN}-${PV} + EOF + fi + fi +} + +pkg_postrm() { + if use isabelle; then + if [ ! -f "${ROOT}usr/bin/SPASS" ]; then + if [ -f "${ROOT}etc/isabelle/components" ]; then + # Note: this sed should only match the version of this ebuild + # Which is what we want as we do not want to remove the line + # of a new spass being installed during an upgrade. + sed -e "/contrib\/${PN}-${PV}/d" \ + -i "${ROOT}etc/isabelle/components" + fi + fi + fi +} |