blob: 33d17f501d3d25e04cce8ef7fca168be9015d6e4 (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/jabref/jabref-1.4.ebuild,v 1.2 2004/06/24 22:41:38 agriffis Exp $
inherit java-pkg
DESCRIPTION="GUI frontend for BibTeX, written in Java"
HOMEPAGE="http://jabref.sourceforge.net/"
SRC_URI="mirror://sourceforge/jabref/JabRef-${PV}-src.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~sparc ~ppc"
IUSE="jikes"
DEPEND=">=virtual/jdk-1.4
>=dev-java/ant-1.4.1
jikes? ( dev-java/jikes )"
S=${WORKDIR}/jabref
src_compile() {
local antflags="jars"
use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
ant ${antflags} || die "compile problem"
}
src_install() {
java-pkg_dojar build/lib/*.jar
echo "#!/bin/sh" > ${PN}
echo "cd /usr/share/${PN}" >> ${PN}
echo '${JAVA_HOME}'/bin/java -jar lib/${PN}.jar '$*' >> ${PN}
dobin ${PN}
}
|