blob: 8327029bd2468bb3c27013e049a2bd19068fae15 (
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
|
# 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="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="
|| (
dev-java/oracle-jre-bin:1.8[javafx]
dev-java/oracle-jdk-bin:1.8[javafx]
)
"
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
}
|