From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- sci-mathematics/spass/Manifest | 1 + sci-mathematics/spass/metadata.xml | 15 +++++++ sci-mathematics/spass/spass-3.7.ebuild | 81 ++++++++++++++++++++++++++++++++++ 3 files changed, 97 insertions(+) create mode 100644 sci-mathematics/spass/Manifest create mode 100644 sci-mathematics/spass/metadata.xml create mode 100644 sci-mathematics/spass/spass-3.7.ebuild (limited to 'sci-mathematics/spass') diff --git a/sci-mathematics/spass/Manifest b/sci-mathematics/spass/Manifest new file mode 100644 index 000000000000..5fb13726e6ab --- /dev/null +++ b/sci-mathematics/spass/Manifest @@ -0,0 +1 @@ +DIST spass37.tgz 1340925 SHA256 13c67e5e09b814ba50f38a391fe653661ba714e7541ffd4951efef91274aaacc SHA512 5b4efd7b767dfee3f24e7917a6ec58ac240ab33bf601722eabd50af57637d8fdd62de9e34e7cd1cd98b8b7e371c9e2d47c8fa3e07c6e7ce2fa616a76646a4e12 WHIRLPOOL 2fa8881b08a0fcdb9f1a6e7d27849f5c900a32f2cb27d878fbdae4986d0854608fd137e4608349c4eb612f4e1981142e63af8462ab904f7d08c3e2758f319835 diff --git a/sci-mathematics/spass/metadata.xml b/sci-mathematics/spass/metadata.xml new file mode 100644 index 000000000000..c836a3b70c4d --- /dev/null +++ b/sci-mathematics/spass/metadata.xml @@ -0,0 +1,15 @@ + + + + + gienah@gentoo.org + + sci-mathematics + +SPASS: An Automated Theorem Prover for First-Order Logic with Equality. + + + Add integration support for the Isabelle/HOL + theorem prover. + + diff --git a/sci-mathematics/spass/spass-3.7.ebuild b/sci-mathematics/spass/spass-3.7.ebuild new file mode 100644 index 000000000000..30967c76c84d --- /dev/null +++ b/sci-mathematics/spass/spass-3.7.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 + 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 +} -- cgit v1.2.3-65-gdbad