You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
859 B
41 lines
859 B
# Copyright 1999-2020 Gentoo Authors
|
|
# 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"
|
|
|
|
LICENSE="GPL-2"
|
|
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/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
|
|
}
|