blob: 98df4bf08712581321940aaf2f961be065ee51e5 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/jabref/jabref-2.1.ebuild,v 1.7 2007/03/02 19:52:29 caster Exp $
inherit eutils java-pkg-2 java-ant-2
DESCRIPTION="GUI frontend for BibTeX, written in Java"
HOMEPAGE="http://${PN}.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/JabRef-${PV}-src.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE="doc"
CDEPEND="dev-java/spin
>=dev-java/glazedlists-1.5.0
>=dev-java/antlr-2.7.3
dev-java/jgoodies-forms
=dev-java/jgoodies-looks-2.0*
>=dev-java/microba-0.4.3"
DEPEND="${CDEPEND}
>=virtual/jdk-1.4"
RDEPEND="${CDEPEND}
>=virtual/jre-1.4"
src_unpack() {
unpack ${A}
cd "${S}"
# TODO submit upstream (was mailed after 2.2 release)
epatch "${FILESDIR}/${P}-fix_jarbundler.patch"
# cleans up the way the classpath is setup in build.xml.
# in particular, it makes it use *.jar instead of particular files
epatch "${FILESDIR}/${P}-classpath_cleanup.patch"
rm lib/* && cd lib
java-pkg_jar-from antlr
java-pkg_jar-from spin
java-pkg_jar-from glazedlists
java-pkg_jar-from jgoodies-looks-2.0
java-pkg_jar-from jgoodies-forms
java-pkg_jar-from microba
}
EANT_BUILD_TARGET="jars"
EANT_DOC_TARGET="-Dbuild.javadocs=build/docs/api javadocs"
src_install() {
java-pkg_dojar build/lib/${PN}.jar
use doc && java-pkg_dojavadoc build/docs/api
dodoc src/txt/README
java-pkg_dolauncher ${PN} \
--main net.sf.jabref.JabRef
newicon src/images/JabRef-icon.png JabRef-icon.png
make_desktop_entry jabref JabRef JabRef-icon.png Office
}
|