summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Hajdan <phajdan.jr@gentoo.org>2010-04-11 12:50:08 +0000
committerPaweł Hajdan <phajdan.jr@gentoo.org>2010-04-11 12:50:08 +0000
commit5622036ab4f0408e79fd9692145bfef42743a8e9 (patch)
treef670e39ec44c0c0edf0eefb129873b8770463206 /sci-mathematics
parentppc stable #302680 (diff)
downloadhistorical-5622036ab4f0408e79fd9692145bfef42743a8e9.tar.gz
historical-5622036ab4f0408e79fd9692145bfef42743a8e9.tar.bz2
historical-5622036ab4f0408e79fd9692145bfef42743a8e9.zip
Initial import of sci-mathematics/spin.
Package-Manager: portage-2.1.7.17/cvs/Linux i686
Diffstat (limited to 'sci-mathematics')
-rw-r--r--sci-mathematics/spin/ChangeLog10
-rw-r--r--sci-mathematics/spin/Manifest7
-rw-r--r--sci-mathematics/spin/files/spin-makefile.patch13
-rw-r--r--sci-mathematics/spin/files/spin-xspin.patch26
-rw-r--r--sci-mathematics/spin/metadata.xml9
-rw-r--r--sci-mathematics/spin/spin-5.2.4.ebuild54
6 files changed, 119 insertions, 0 deletions
diff --git a/sci-mathematics/spin/ChangeLog b/sci-mathematics/spin/ChangeLog
new file mode 100644
index 000000000000..af91d4d9cdda
--- /dev/null
+++ b/sci-mathematics/spin/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sci-mathematics/spin
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/spin/ChangeLog,v 1.1 2010/04/11 12:50:07 phajdan.jr Exp $
+
+*spin-5.2.4 (11 Apr 2010)
+
+ 11 Apr 2010; Pawel Hajdan jr <phajdan.jr@gentoo.org> +spin-5.2.4.ebuild,
+ +files/spin-makefile.patch, +files/spin-xspin.patch, +metadata.xml:
+ Initial import.
+
diff --git a/sci-mathematics/spin/Manifest b/sci-mathematics/spin/Manifest
new file mode 100644
index 000000000000..46ea04ca9115
--- /dev/null
+++ b/sci-mathematics/spin/Manifest
@@ -0,0 +1,7 @@
+AUX spin-makefile.patch 583 RMD160 88941c0223492fa393b31f59be9e926fb36f4475 SHA1 2323ca5916fcbbe77c4f56eaeeff7173cbbd35f7 SHA256 ad06809f3538bbff5fc0245fc420dc74cdf06b1b5e81db9040af5765c717fd83
+AUX spin-xspin.patch 922 RMD160 f43706719dc0b9028d1cb2b021e2c946af40fc28 SHA1 3a41da3936d394a22a6adca66b02d82497f2f57f SHA256 f2ef6bf2286a8727eae81fc963609e12de2d80be0bbcb0857445db9f8ba0655c
+DIST spin524.tar.gz 362299 RMD160 bf07242f4f47e41365410604c43466cee05a9afc SHA1 91d2cf9c12a28947ce1934b0c007d7fb8f613575 SHA256 512249c5f8b0ba4eeac997f3a4e59767fc0ead782741e8414f3c0f9b9ad53865
+DIST xspin523.tcl 194848 RMD160 108b3121bd8a6baa96bbe0634f7063bb6572052f SHA1 74914147f73892479cd2b17cc06cd24e9a01be04 SHA256 9ba55a92aa301043089460b1683551796b7ac6b2a2ff9b5e2dc308974d1d6e22
+EBUILD spin-5.2.4.ebuild 1277 RMD160 d040afe9876327375ca64fdbb1c97f9fe9c0aefe SHA1 03518ef6ab461c83c5689616a69bd419fb94b40a SHA256 fe8dd1b9ee70ab60b612fedbec4538d236a5011e95cd7e330d964a8370f76d78
+MISC ChangeLog 408 RMD160 a87eb1b384f547a80635de0e59f9359212a88ea2 SHA1 ceecf8fc27b2cffd61e72b9cabe38149cb5d3cfd SHA256 e527056adfd54ab17b986ac5c29f05fe640e77e0bfb49d742cb836b87c308fae
+MISC metadata.xml 260 RMD160 e9437033b7df4bdb32fdef6e886a1ed321a6f462 SHA1 f008d84bacf2428dafd6f33263898961dacf8c5e SHA256 c7f8354174de834aa476ee81d3412d85e1352a6647415dbeee403461b99ea19c
diff --git a/sci-mathematics/spin/files/spin-makefile.patch b/sci-mathematics/spin/files/spin-makefile.patch
new file mode 100644
index 000000000000..83fa9e95e12f
--- /dev/null
+++ b/sci-mathematics/spin/files/spin-makefile.patch
@@ -0,0 +1,13 @@
+--- makefile.orig 2010-04-03 12:13:41.000000000 +0200
++++ makefile 2010-04-03 12:14:21.000000000 +0200
+@@ -10,10 +10,6 @@
+ # Documentation: http://spinroot.com/
+ # Bug-reports: bugs@spinroot.com
+
+-CC=gcc -DNXT # -DNXT enables the X operator in LTL
+-# CC=cc -m32 -DNXT # for 32bit compilation on a 64bit system
+-CFLAGS=-ansi -D_POSIX_SOURCE -Wno-format-security # on some systems add: -I/usr/include
+-
+ # for a more picky compilation:
+ # CFLAGS=-std=c99 -Wstrict-prototypes -pedantic -fno-strength-reduce -fno-builtin -W -Wshadow -Wpointer-arith -Wcast-qual -Winline -Wall -g
+
diff --git a/sci-mathematics/spin/files/spin-xspin.patch b/sci-mathematics/spin/files/spin-xspin.patch
new file mode 100644
index 000000000000..72b6f36acd3b
--- /dev/null
+++ b/sci-mathematics/spin/files/spin-xspin.patch
@@ -0,0 +1,26 @@
+--- xspin523.tcl.orig 2010-04-03 12:26:48.000000000 +0200
++++ xspin523.tcl 2010-04-03 12:27:26.000000000 +0200
+@@ -1,22 +1,4 @@
+-#!/bin/sh
+-# the next line restarts using wish \
+-exec wish c:/cygwin/bin/xspin -- $*
+-
+-# cd ;# enable to cd to home directory by default
+-
+-# on PCs:
+-# adjust the first argument to wish above with the name and
+-# location of this tcl/tk file on your system, if different.
+-#
+-# Cygwin:
+-# if you use cygwin, do not refer to the file as /usr/bin/xspin
+-# /usr/bin is a symbolic link to /bin, which really
+-# lives in c:/cygwin, hence the contortions above
+-#
+-# on Unix/Linux/Solaris systems
+-# replace the first line with something like
+-# #!/usr/bin/wish -f
+-# using the pathname for the wish executable on your system
++#!/usr/bin/wish -f
+
+ #======================================================================#
+ # Tcl/Tk Spin Controller, written by Gerard J. Holzmann, 1995-2009. #
diff --git a/sci-mathematics/spin/metadata.xml b/sci-mathematics/spin/metadata.xml
new file mode 100644
index 000000000000..9ca372f9b46f
--- /dev/null
+++ b/sci-mathematics/spin/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>phajdan.jr@gentoo.org</email>
+ <name>Pawel Hajdan jr</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/sci-mathematics/spin/spin-5.2.4.ebuild b/sci-mathematics/spin/spin-5.2.4.ebuild
new file mode 100644
index 000000000000..6835d92186f0
--- /dev/null
+++ b/sci-mathematics/spin/spin-5.2.4.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/spin/spin-5.2.4.ebuild,v 1.1 2010/04/11 12:50:07 phajdan.jr Exp $
+
+EAPI="2"
+
+inherit eutils versionator
+
+MY_PV=$(replace_all_version_separators '')
+MY_P="${PN}${MY_PV}"
+
+DESCRIPTION="Tool for formal verification of distributed software systems."
+HOMEPAGE="http://spinroot.com/"
+SRC_URI="http://spinroot.com/spin/Src/${MY_P}.tar.gz
+ http://spinroot.com/spin/Src/xspin523.tcl"
+
+LICENSE="|| ( spin-commercial spin-educational )"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="graphviz tk"
+
+DEPEND="sys-devel/bison"
+RDEPEND="sys-devel/gcc
+ sys-process/time
+ tk? (
+ dev-lang/tk
+ graphviz? ( media-gfx/graphviz )
+ )"
+
+S="${WORKDIR}/Spin/Src${PV}"
+
+src_unpack() {
+ unpack "${MY_P}.tar.gz"
+ cp "${DISTDIR}/xspin523.tcl" "${S}" || die "cp failed"
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-makefile.patch"
+ epatch "${FILESDIR}/${PN}-xspin.patch"
+}
+
+src_compile() {
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ dobin spin || die "dobin failed"
+ doman ../Man/spin.1 || die "doman failed"
+ dodoc ../Doc/* || die "dodoc failed"
+ if use tk; then
+ newbin xspin523.tcl xspin || die "newbin failed"
+ make_desktop_entry xspin XSpin
+ fi
+}