blob: 1790b462aa70f049c20df00ae4261cb315f9767e (
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
43
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit java-pkg-2
MY_PN="${PN%-bin}"
MY_P="${MY_PN}-v${PV}"
DESCRIPTION="JavaScript optimizing compiler"
HOMEPAGE="https://developers.google.com/closure/compiler/
https://github.com/google/closure-compiler/"
SRC_URI="https://repo1.maven.org/maven2/com/google/javascript/${MY_PN}/v${PV}/${MY_P}.jar"
S="${WORKDIR}"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="
>=virtual/jre-1.8:*
"
src_unpack() {
:
}
src_compile() {
:
}
src_install() {
java-pkg_jarinto "/opt/${PN}-${SLOT}/lib"
java-pkg_newjar "${DISTDIR}/${MY_P}.jar" "${PN}.jar"
local -a dolauncher_opts=(
"${MY_PN}"
--jar "/opt/${PN}-${SLOT}/lib/${PN}.jar"
-into /opt
)
java-pkg_dolauncher "${dolauncher_opts[@]}"
}
|