blob: dc2e1826c21e58b28379ff5b26fc913294dc380e (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/regina-rexx/regina-rexx-3.3.ebuild,v 1.16 2009/07/23 23:27:45 vostorga Exp $
WANT_AUTOCONF="2.1"
inherit autotools
DESCRIPTION="Portable Rexx interpreter"
HOMEPAGE="http://regina-rexx.sourceforge.net"
SRC_URI="mirror://sourceforge/regina-rexx/Regina-REXX-${PV}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 hppa ppc s390 sparc x86"
IUSE=""
DEPEND=""
RDEPEND=""
S=${WORKDIR}/Regina-${PV}
src_unpack() {
unpack ${A}
cd "${S}"
eautoreconf || die "eautoreconf problem"
}
src_compile() {
econf || die "econf failed"
sed -i \
-e 's|-$(INSTALL) -m 755 -c ./rxstack.init.d $(STARTUPDIR)/rxstack||' \
-e "s|/usr/share/regina|${D}/usr/share/regina|" \
Makefile || die
emake CC=$(tc-getCC) CFLAGS="${CFLAGS} -fno-strict-aliasing" -j1 || die "make problem"
}
src_install() {
einstall datadir="${D}"/usr/share/regina || die
rm -rf "${D}"/etc/rc.d
doinitd "${FILESDIR}"/rxstack
dodoc BUGS HACKERS.txt README.Unix README_SAFE TODO
# Fix Shebang line in example scripts
sed -e 's:/var/tmp/portage/dev-lang/regina-rexx-3.3/image::' \
-i "${D}"/usr/share/regina/regina/*.rexx
}
pkg_postinst() {
elog "You may want to run"
elog
elog "\trc-update add rxstack default"
elog
elog "to enable Rexx queues (optional)."
}
|