summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Bock <nicolasbock@gentoo.org>2015-12-27 11:26:40 -0700
committerNicolas Bock <nicolasbock@gentoo.org>2015-12-27 11:28:15 -0700
commitcaba53b4836a49fe587a1b4f763afc3c4e35a759 (patch)
treea5ed6bd5031f026b4bd3dbbedb819810e02864fe /app-text/jabref-bin/jabref-bin-3.1.ebuild
parentapp-text/bibletime: backport patch from upstream solving build with Qt 5.5 (diff)
downloadgentoo-caba53b4836a49fe587a1b4f763afc3c4e35a759.tar.gz
gentoo-caba53b4836a49fe587a1b4f763afc3c4e35a759.tar.bz2
gentoo-caba53b4836a49fe587a1b4f763afc3c4e35a759.zip
app-text/jabref-bin: Version bump.
Package-Manager: portage-2.2.24
Diffstat (limited to 'app-text/jabref-bin/jabref-bin-3.1.ebuild')
-rw-r--r--app-text/jabref-bin/jabref-bin-3.1.ebuild36
1 files changed, 36 insertions, 0 deletions
diff --git a/app-text/jabref-bin/jabref-bin-3.1.ebuild b/app-text/jabref-bin/jabref-bin-3.1.ebuild
new file mode 100644
index 00000000000..0bb35a2712c
--- /dev/null
+++ b/app-text/jabref-bin/jabref-bin-3.1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils java-pkg-2
+
+MY_PV_1="${PV/_beta/b}"
+MY_PV="${MY_PV_1/_rc/}"
+MY_URI_PV_1="${PV/rc/}"
+MY_URI_PV="${MY_URI_PV_1//_/%20}"
+
+DESCRIPTION="Java GUI for managing BibTeX and other bibliographies"
+HOMEPAGE="http://jabref.sourceforge.net/"
+SRC_URI="mirror://sourceforge/jabref/JabRef-${MY_PV}.jar"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND=">=virtual/jre-1.6"
+
+S="${WORKDIR}"
+
+src_unpack() {
+ cp -v "${DISTDIR}/${A}" . || die
+ jar xf ${A} images/icons/JabRef-icon-48.png || die
+}
+
+src_install() {
+ java-pkg_newjar "JabRef-${MY_PV}.jar"
+ java-pkg_dolauncher "${PN}" --jar "${PN}.jar"
+ newicon images/icons/JabRef-icon-48.png JabRef-bin-icon.png
+ make_desktop_entry "${PN}" JabRef-bin JabRef-bin-icon Office
+}