summaryrefslogtreecommitdiff
blob: 710e8df3c5fc94d3c310a80fff9d2c6646b3bc3f (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/jext/jext-3.2_pre3.ebuild,v 1.4 2003/10/27 13:26:45 aliz Exp $

inherit java-pkg

IUSE="doc"

DESCRIPTION="A cool and fully featured editor in Java"
HOMEPAGE="http://www.jext.org/"
MY_PV="${PV/_}"
SRC_URI="mirror://sourceforge/jext/${PN}-${MY_PV}.tar.gz
	 mirror://sourceforge/jext/${PN}-sources-${MY_PV}.tar.gz"
LICENSE="GPL-2 | JPython"
SLOT="0"
KEYWORDS="x86 ~ppc ~sparc"

DEPEND=">=virtual/jdk-1.3
	>=dev-java/ant-1.4.1
	dev-java/jython"
RDEPEND=">=virtual/jre-1.3"

S=${WORKDIR}/${PN}-${MY_PV}

src_compile() {
	cd ${WORKDIR}/jext-sources-3.2pre3/src
	sed -e s:'<property name="classpath" value="" />':"<property name='classpath' value='`java-config --classpath=jython`' />": build.xml > tmp.xml
	mv tmp.xml build.xml
	ant jar javadocs -quiet > /dev/null || die
}

src_install () {
	java-pkg_dojar ${WORKDIR}/jext-sources-3.2pre3/lib/*.jar
	exeinto /usr/bin
	newexe ${FILESDIR}/jext-gentoo.sh jext
	if [ -n "`use doc`" ]; then
		dohtml -A .css .gif .jpg -r ${WORKDIR}/jext-sources-3.2pre3/docs/api
	fi
}