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.
gentoo-overlay/dev-lang/closure-compiler-bin/closure-compiler-bin-202111...

39 lines
760 B

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
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"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND=">=virtual/jre-1.8"
S="${WORKDIR}"
src_unpack() {
:
}
src_compile() {
:
}
src_install() {
java-pkg_jarinto /opt/${PN}-${SLOT}/lib
java-pkg_newjar "${DISTDIR}"/${MY_P}.jar ${PN}.jar
java-pkg_dolauncher \
${MY_PN} \
--jar /opt/${PN}-${SLOT}/lib/${PN}.jar \
-into /opt
}