aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Bock <nicolasbock@gmail.com>2014-01-02 16:28:31 -0700
committerNicolas Bock <nicolasbock@gmail.com>2014-01-02 16:28:31 -0700
commit45fcff278faa2859bcd0e714cfdf6a08ac4fca6b (patch)
tree28ebdda354ccd029b379fdb86d6ec964c3fd004e /app-text
parentapp-text/jabref-2.10_beta2: Added new beta. (diff)
downloadsci-45fcff278faa2859bcd0e714cfdf6a08ac4fca6b.tar.gz
sci-45fcff278faa2859bcd0e714cfdf6a08ac4fca6b.tar.bz2
sci-45fcff278faa2859bcd0e714cfdf6a08ac4fca6b.zip
app-text/jabref-2.10_beta2-r1: Started to remove bundled libraries.
Package-Manager: portage-2.2.7
Diffstat (limited to 'app-text')
-rw-r--r--app-text/jabref/ChangeLog6
-rw-r--r--app-text/jabref/jabref-2.10_beta2-r1.ebuild66
2 files changed, 72 insertions, 0 deletions
diff --git a/app-text/jabref/ChangeLog b/app-text/jabref/ChangeLog
index 3b425928a..4eb41e0e4 100644
--- a/app-text/jabref/ChangeLog
+++ b/app-text/jabref/ChangeLog
@@ -2,6 +2,12 @@
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*jabref-2.10_beta2-r1 (02 Jan 2014)
+
+ 02 Jan 2014; Nicolas Bock <nicolasbock@gentoo.org>
+ +jabref-2.10_beta2-r1.ebuild:
+ app-text/jabref-2.10_beta2-r1: Started to remove bundled libraries.
+
*jabref-2.10_beta2 (02 Jan 2014)
02 Jan 2014; Nicolas Bock <nicolasbock@gentoo.org> +jabref-2.10_beta2.ebuild:
diff --git a/app-text/jabref/jabref-2.10_beta2-r1.ebuild b/app-text/jabref/jabref-2.10_beta2-r1.ebuild
new file mode 100644
index 000000000..d67b236e7
--- /dev/null
+++ b/app-text/jabref/jabref-2.10_beta2-r1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+JAVA_ANT_REWRITE_CLASSPATH="true"
+
+inherit eutils java-pkg-2 java-ant-2 java-utils-2
+
+MY_PV="${PV/_beta/b}"
+
+DESCRIPTION="Java GUI for managing BibTeX and other bibliographies"
+HOMEPAGE="http://jabref.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/JabRef-${MY_PV}-src.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc"
+
+COMMON_DEP="
+ dev-java/fontbox:1.7
+ dev-java/spin:0
+ "
+
+DEPEND="
+ >=virtual/jdk-1.6
+ ${COMMON_DEP}"
+
+RDEPEND="
+ >=virtual/jre-1.6
+ ${COMMON_DEP}"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+java_prepare() {
+ # Remove bundled dependencies.
+ rm lib/fontbox*.jar || die
+ rm lib/spin.jar || die
+
+ # Remove unjarlib target.
+ sed -i -e 's:depends="build, unjarlib":depends="build":' build.xml
+}
+
+src_compile() {
+ local EXTERNAL_JARS="fontbox,spin"
+ local CLASSPATH="$(java-pkg_getjars --with-dependencies ${EXTERNAL_JARS})"
+ #einfo "setting classpath to ${CLASSPATH}"
+ eant \
+ -verbose \
+ -Dgentoo.classpath=${CLASSPATH} \
+ jars \
+ $(usex doc docs "")
+}
+
+src_install() {
+ java-pkg_newjar build/lib/JabRef-${MY_PV}.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
+ make_desktop_entry ${PN} JabRef JabRef-icon Office
+}