1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 inherit java-pkg-2 java-ant-2 java-utils-2
10 GWT_TOOLS_COMMIT="f42d2729a3a8e6ba9b9aec069957bce5dc0f6f6d"
13 GWT_COMMIT="faff18e7a1f065e3a4ac4ef32ab5cce394557070"
15 DESCRIPTION="Google Web Toolkit library"
16 HOMEPAGE="http://www.gwtproject.org/"
17 SRC_URI="https://github.com/gwtproject/${PN}/archive/${PV}.zip -> ${P}.zip
18 https://github.com/gwtproject/${GWT_TOOLS_PN}/archive/${GWT_TOOLS_COMMIT}.zip -> ${PN}-${GWT_TOOLS_PN}-${GWT_TOOLS_COMMIT}.zip"
22 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
29 >=dev-java/asm-5.0.3:4
30 dev-java/eclipse-ecj:4.5
31 dev-java/validation-api:1.0
41 JAVA_ANT_REWRITE_CLASSPATH="yes"
42 EANT_BUILD_XML="build.xml"
43 EANT_BUILD_TARGET="build"
44 EANT_EXTRA_ARGS="-Dgwt.gitrev=${GWT_COMMIT}"
45 EANT_GENTOO_CLASSPATH="
55 eapply "${FILESDIR}"/${P}-build-system.patch
56 java-pkg-2_src_prepare
60 GWT_TOOLS="${WORKDIR}/${GWT_TOOLS_PN}-${GWT_TOOLS_COMMIT}" \
62 java-pkg-2_src_compile
66 GWT_TOOLS="${WORKDIR}/${GWT_TOOLS_PN}-${GWT_TOOLS_COMMIT}" \
68 TZ=America/Los_Angeles ANT_OPTS=-Dfile.encoding=UTF-8 \
69 ant ${EANT_EXTRA_ARGS} test || die
75 java-pkg_dolauncher i18nCreator --main com.google.gwt.i18n.tools.I18NCreator --jar gwt-dev.jar
76 java-pkg_dolauncher webAppCreator --main com.google.gwt.user.tools.WebAppCreator --jar gwt-dev.jar