summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-lang/sr/ChangeLog19
-rw-r--r--dev-lang/sr/files/digest-sr-2.3.21
-rw-r--r--dev-lang/sr/files/sr-2.3.2.patch68
-rw-r--r--dev-lang/sr/sr-2.3.2.ebuild77
4 files changed, 165 insertions, 0 deletions
diff --git a/dev-lang/sr/ChangeLog b/dev-lang/sr/ChangeLog
new file mode 100644
index 000000000000..204fb4bfb188
--- /dev/null
+++ b/dev-lang/sr/ChangeLog
@@ -0,0 +1,19 @@
+# ChangeLog for dev-lang/sr
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/sr/ChangeLog,v 1.1 2002/11/08 23:05:18 george Exp $
+
+*sr-2.3.2 (01 Nov 2002)
+
+ 08 Nov 2002; George Shapovalov <george@gentoo.org> sr-2.3.2.ebuild :
+
+ first inclusion
+ "SR (Synchronizing Resources) is a language for writing concurrent programs. The
+ main language constructs are resources and operations. Resources encapsulate
+ processes and variables they share; operations provide the primary mechanism for
+ process interaction. SR provides a novel integration of the mechanisms for
+ invoking and servicing operations. Consequently, all of local and remote
+ procedure call, rendezvous, message passing, dynamic process creation,
+ multicast, and semaphores are supported. SR also supports shared global
+ variables and operations."
+
+ ebuild submitted by David Holm <dholm@telia.com>
diff --git a/dev-lang/sr/files/digest-sr-2.3.2 b/dev-lang/sr/files/digest-sr-2.3.2
new file mode 100644
index 000000000000..968c0659bfaa
--- /dev/null
+++ b/dev-lang/sr/files/digest-sr-2.3.2
@@ -0,0 +1 @@
+MD5 3009d09ca3f8e72aafda79816cbb7ec0 sr.tar.Z 1453739
diff --git a/dev-lang/sr/files/sr-2.3.2.patch b/dev-lang/sr/files/sr-2.3.2.patch
new file mode 100644
index 000000000000..76bc1ebae02b
--- /dev/null
+++ b/dev-lang/sr/files/sr-2.3.2.patch
@@ -0,0 +1,68 @@
+diff -Naur sr-2.3.2/Configuration sr-2.3.2.linux/Configuration
+--- sr-2.3.2/Configuration 1999-08-14 01:42:02.000000000 +0200
++++ sr-2.3.2.linux/Configuration 2002-11-06 22:14:26.000000000 +0100
+@@ -26,9 +26,9 @@
+ # MAN5: directory in which to install the srmap/srtrace(5) man pages
+ # (extension will be `tr 1 5` of MANEXT)
+
+-SRSRC = /usr/local/src/sr
+-SRCMD = /usr/local/bin
+-SRLIB = /usr/local/lib/sr
++SRSRC = /var/tmp/portage/sr-2.3.2/work
++SRCMD = /usr/bin
++SRLIB = /usr/lib/sr
+ MAN1 = /usr/man/manl
+ MAN3 = /usr/man/manl
+ MAN5 = /usr/man/manl
+@@ -54,8 +54,8 @@
+ # for Sun Solaris with Sun's C compiler use: CCPATH = /opt/SUNWspro/bin/cc
+ # for Linux, NetBSD, FreeBSD, or SGI Irix use: CCPATH = /usr/bin/cc
+
+-CCPATH = /bin/cc
+-RSHPATH = /usr/ucb/rsh
++CCPATH = /usr/bin/gcc
++RSHPATH = /usr/bin/ssh
+
+
+
+@@ -81,7 +81,7 @@
+ # LIBC = , LIBR = , LIBM = -lm
+
+ LIBC =
+-LIBR = -L/usr/X11/lib
++LIBR = -L/usr/X11R6/lib
+ LIBM = -lm
+
+
+@@ -98,7 +98,7 @@
+ # for NetBSD, set XINCL = /usr/X386/include
+ # for Linux, set XINCL = /usr/X11/include
+
+-XINCL = /usr/include
++XINCL = /usr/X11R6/include
+ XTANGO =
+
+
+@@ -107,7 +107,7 @@
+ #
+ # Set these definitions empty if your system does not have vgrind.
+
+-VFPATH = /usr/lib/vfontedpr
++VFPATH =
+ VGMACS =
+
+
+diff -Naur sr-2.3.2/rts/socket.c sr-2.3.2.linux/rts/socket.c
+--- sr-2.3.2/rts/socket.c 1999-08-09 18:34:34.000000000 +0200
++++ sr-2.3.2.linux/rts/socket.c 2002-11-06 22:19:12.000000000 +0100
+@@ -488,8 +488,8 @@
+ extern char *sys_errlist[];
+ #endif
+
+- if (errno > 0 && errno < sys_nerr)
+- strcpy (s1, sys_errlist[errno]);
++ if (errno > 0)
++ strcpy (s1, strerror(errno));
+ else
+ sprintf (s1, "error %d", errno);
+ sprintf (s2, "%s: %s", message ? message : "network I/O", s1);
diff --git a/dev-lang/sr/sr-2.3.2.ebuild b/dev-lang/sr/sr-2.3.2.ebuild
new file mode 100644
index 000000000000..bf27eea5c761
--- /dev/null
+++ b/dev-lang/sr/sr-2.3.2.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/sr/sr-2.3.2.ebuild,v 1.1 2002/11/08 23:05:18 george Exp $
+
+IUSE=""
+
+DESCRIPTION="SR (Synchronizing Resources) is a language for writing concurrent programs."
+HOMEPAGE="http://www.cs.arizona.edu/sr"
+
+SRC_URI="ftp://ftp.cs.arizona.edu/sr/sr.tar.Z"
+
+S=${WORKDIR}
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+DEPEND="net-misc/openssh"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ patch -p1 < ${FILESDIR}/sr-2.3.2.patch
+}
+
+src_compile() {
+ emake || die "make failed"
+}
+
+src_install() {
+ # commands
+ dobin sr/sr
+ dobin srl/srl
+ dobin srm/srm
+ dobin srprof/srprof
+ dobin srtex/srtex
+ dobin srlatex/srlatex
+ dobin srgrind/srgrind
+ dobin preproc/*2sr
+
+ # library components
+ insinto /usr/lib/sr
+ doins sr.h
+ doins srmulti.h
+ doins rts/srlib.a
+ doins library/*.o
+ doins library/*.spec
+ doins library/*.impl
+ doins srmap
+ doins rts/srx
+ doins srlatex/srlatex.sty
+ doins preproc/*2sr.h
+ doins sr-mode.el
+
+ # man pages
+ insinto /usr
+ doman man/sr.1
+ doman man/srl.1
+ doman man/srm.1
+ doman man/srprof.1
+ doman man/srtex.1
+ doman man/srlatex.1
+ doman man/srgrind.1
+ doman man/ccr2sr.1
+ doman man/m2sr.1
+ doman man/csp2sr.1
+ doman man/sranimator.3
+ doman man/srgetopt.3
+ doman man/srwin.3
+ doman man/srmap.5
+ doman man/srtrace.5
+}
+
+pkg_postinst() {
+ ranlib /usr/lib/sr/srlib.a
+ strip /usr/lib/sr/srx
+}