blob: 98dccf16e47429732906b99215a9520535339501 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/sr/sr-2.3.3.ebuild,v 1.4 2007/07/13 06:25:50 mr_bones_ Exp $
inherit eutils versionator
MY_PV=$(delete_all_version_separators)
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/${PN}${MY_PV}.tar.Z"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""
RDEPEND="virtual/ssh"
S=${WORKDIR}
src_unpack() {
unpack ${A}
cd ${S}
#epatch ${FILESDIR}/${P}.patch
sed -i -e "s:SRSRC = /usr/local/src/sr:SRSRC = ${S}:" \
-e "s:/usr/local:/usr:" -e "s:/usr/X11/lib:/usr/lib:" \
-e "s:CCPATH = /bin/cc:CCPATH = /usr/bin/gcc:" \
-e "s:RSHPATH = /usr/ucb/rsh:RSHPATH = /usr/bin/ssh:" \
-e "s:VFPATH = /usr/lib/vfontedpr:VFPATH = :" Configuration \
|| die "seding Configuration failed"
}
src_compile() {
emake || die "make failed"
}
src_test() {
rm -f vsuite/examples/other/mbrot/Script
rm -f vsuite/examples/other/remote/Script
rm -f vsuite/quick/vm/Script
srv/srv || die "At least one test 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
ranlib rts/srlib.a
# 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
doman man/*.[135]
}
|