blob: 30375e13336cc04d85053837ebbb159db1729723 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/jay/jay-1.1.1-r2.ebuild,v 1.1 2009/04/15 11:20:50 ali_bush Exp $
EAPI="2"
inherit java-pkg-2 toolchain-funcs
DESCRIPTION="A LALR(1) parser generator: Berkeley yacc retargeted to C# and Java"
HOMEPAGE="http://www.cs.rit.edu/~ats/projects/lp/doc/jay/package-summary.html"
SRC_URI="http://www.cs.rit.edu/~ats/projects/lp/doc/jay/doc-files/src.zip -> ${P}.zip"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=virtual/jre-1.4
!<=dev-lang/mono-2.4"
DEPEND=">=virtual/jdk-1.4"
S="${WORKDIR}/jay"
RESTRICT="test"
java_prepare() {
# Fix up ugly makefiles.
sed -i -r \
-e "s:^CC\s*=.*:CC = `tc-getCC`:" \
-e 's/^jay:.* \$e /\0$(LDFLAGS) /' \
-e '/^CFLAGS\s*=/d' \
src/makefile || die
sed -i -r \
-e 's:^v4\s*=.*:v4 = ${JAVA_HOME}/bin:' \
-e 's:JAVAC\s*=.*:\0 ${JAVACFLAGS}:' \
yydebug/makefile || die
}
src_compile() {
emake -C src jay || die "failed to build jay executable"
emake -C yydebug yydebug.jar || die "failed to build yydebug.jar"
}
src_install() {
dobin src/jay || die
doman jay.1 || die
dodoc README || die
java-pkg_dojar yydebug/yydebug.jar
}
|