# Copyright 1999-2006 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.9 2006/11/30 16:02:26 caster 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-2.7" 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 }