diff options
author | Nicolas Bock <nicolasbock@gentoo.org> | 2017-10-09 05:42:53 -0600 |
---|---|---|
committer | Nicolas Bock <nicolasbock@gentoo.org> | 2017-10-09 05:43:13 -0600 |
commit | 1ef30f6cdcee7414eff23c728daf5643f456dde2 (patch) | |
tree | 1f3d602bc17edceef7b5dea76b8d425f285b95bc /app-text/jabref-bin/jabref-bin-4.0.ebuild | |
parent | sys-kernel/git-sources: Linux patch 4.14-rc4 (diff) | |
download | gentoo-1ef30f6cdcee7414eff23c728daf5643f456dde2.tar.gz gentoo-1ef30f6cdcee7414eff23c728daf5643f456dde2.tar.bz2 gentoo-1ef30f6cdcee7414eff23c728daf5643f456dde2.zip |
app-text/jabref-bin: Version bump to jabref-bin-4.0
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'app-text/jabref-bin/jabref-bin-4.0.ebuild')
-rw-r--r-- | app-text/jabref-bin/jabref-bin-4.0.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/app-text/jabref-bin/jabref-bin-4.0.ebuild b/app-text/jabref-bin/jabref-bin-4.0.ebuild new file mode 100644 index 000000000000..5f6f30990ea9 --- /dev/null +++ b/app-text/jabref-bin/jabref-bin-4.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +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://www.jabref.org/" +# SRC_URI="mirror://sourceforge/jabref/JabRef-${MY_PV}.jar" +SRC_URI="https://github.com/JabRef/jabref/releases/download/v${PV}/JabRef-${MY_PV}.jar" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="app-arch/unzip" + +RDEPEND=">=virtual/jre-1.8" + +S="${WORKDIR}" + +src_unpack() { + cp -v "${DISTDIR}/${A}" . || die + unzip ${A} images/external/JabRef-icon-128.png || die +} + +src_install() { + java-pkg_newjar "JabRef-${MY_PV}.jar" + java-pkg_dolauncher "${PN}" --jar "${PN}.jar" + newicon images/external/JabRef-icon-128.png JabRef-bin-icon.png + make_desktop_entry "${PN}" JabRef-bin JabRef-bin-icon Office +} |