summaryrefslogtreecommitdiff
blob: fe1f89249facb7b3025d942c46e3746cbb632be2 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/j/j-0.20.2.ebuild,v 1.8 2005/11/23 04:32:50 nichoj Exp $

inherit java-pkg

DESCRIPTION="Programmer's text editor written in Java, includes Armed Bear Lisp."
HOMEPAGE="http://armedbear-j.sourceforge.net/"
SRC_URI="mirror://sourceforge/armedbear-${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~amd64 ~ppc"
IUSE=""

RDEPEND=">=virtual/jre-1.4
	dev-java/xerces"
DEPEND=">=virtual/jdk-1.4
	${RDEPEND}"

src_compile() {
	econf \
		--with-jdk="$(java-config --jdk-home)" \
		--with-extensions=$(java-pkg_getjar xerces-2 xercesImpl.jar) \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man \
		|| die "./configure failed"
	emake || die

	# Fix the j script to use java-config, instead of hard-coded paths
	sed -e 's/@JAVA@/$(java-config --java)/' \
		-e 's/@JAVA_OPTIONS@//' \
		-e 's/@CLASSPATH@/$(java-config -p xerces-2,j)/' j.in > j

}

src_install() {
	einstall || die

	java-pkg_dojar ${D}/usr/share/j/j.jar
	rm ${D}/usr/share/j/j.jar
}