blob: 3ad0741e08059b95a79feaebcb8ef46581b99b16 (
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
62
63
64
65
66
67
68
|
# 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.2.ebuild,v 1.1 2007/04/25 00:41:35 caster Exp $
JAVA_PKG_IUSE="doc"
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="~x86"
IUSE=""
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
dev-java/jempbox
dev-java/pdfbox"
RDEPEND=">=virtual/jre-1.4
${CDEPEND}"
DEPEND=">=virtual/jdk-1.4
${RDEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
# moves jarbundler definition to where it's needed (not by us)
# don't call unjarlib, don't want to absorb deps
epatch "${FILESDIR}/${P}-build.xml.patch"
mkdir libs
mv lib/antlr-3* libs/antlr3.jar
rm -v lib/*
java-ant_rewrite-classpath
}
src_compile() {
java-pkg_filter-compiler jikes
local gcp=$(java-pkg_getjars antlr,spin,glazedlists,jgoodies-looks-2.0,jgoodies-forms,microba,jempbox,pdfbox)
gcp="${gcp}:libs/antlr3.jar"
eant -Dgentoo.classpath="${gcp}" jars \
$(use_doc -Dbuild.javadocs=build/docs/api javadocs)
}
src_install() {
java-pkg_newjar build/lib/JabRef-${PV}.jar
java-pkg_dojar libs/antlr3.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-48.png JabRef-icon.png || die
make_desktop_entry jabref JabRef JabRef-icon.png Office
}
|