diff options
author | Mark Wright <gienah@gentoo.org> | 2020-01-10 14:28:00 +1100 |
---|---|---|
committer | Mark Wright <gienah@gentoo.org> | 2020-01-10 19:43:19 +1100 |
commit | 9d0b4cad0157a659265876a7764f4bb9c22bdddc (patch) | |
tree | 36cb888c62978b97dbf30bb761511e2a14a65bd0 /dev-java | |
parent | dev-java/gwt: Add for sci-mathematics/rstudio (diff) | |
download | gentoo-9d0b4cad0157a659265876a7764f4bb9c22bdddc.tar.gz gentoo-9d0b4cad0157a659265876a7764f4bb9c22bdddc.tar.bz2 gentoo-9d0b4cad0157a659265876a7764f4bb9c22bdddc.zip |
dev-java/gin: Add for sci-mathematics/rstudio
Bug: https://bugs.gentoo.org/show_bug.cgi?id=696944
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Mark Wright <gienah@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/gin/Manifest | 1 | ||||
-rw-r--r-- | dev-java/gin/gin-2.1.2.ebuild | 77 | ||||
-rw-r--r-- | dev-java/gin/metadata.xml | 17 |
3 files changed, 95 insertions, 0 deletions
diff --git a/dev-java/gin/Manifest b/dev-java/gin/Manifest new file mode 100644 index 000000000000..49f7e0046876 --- /dev/null +++ b/dev-java/gin/Manifest @@ -0,0 +1 @@ +DIST google-gin-2.1.2.zip 5495552 BLAKE2B 3e07fc2e8f2e93872cb022dc57d5b06cfb81cfd855e8027fbcc312e2b95e0c8c35a783c6deb842fd1f40ae8c94e5c120f463c36e20d873a415ef62b0e717f490 SHA512 eb661760078d2053dd1f6cf0d96e9c2895c7d7fd805c14f4da63c28801b8aabb6a9cf6baff020bee3830a3ba1451bdf44d53d41cae1d720bded06f7d013d59c0 diff --git a/dev-java/gin/gin-2.1.2.ebuild b/dev-java/gin/gin-2.1.2.ebuild new file mode 100644 index 000000000000..ef0a80cfdee8 --- /dev/null +++ b/dev-java/gin/gin-2.1.2.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +JAVA_PKG_IUSE="source" + +inherit java-pkg-2 java-ant-2 + +MY_PN="google-gin" +MY_P="${MY_PN}-${PV}" + +GIN_COMMIT="d62089f5b6ea33d842ab4646b51583c65a8be36b" + +DESCRIPTION="Google Gin (GWT INjection)" +HOMEPAGE="https://gwtplus.github.io/google-gin/" +SRC_URI="https://github.com/gwtplus/google-gin/archive/${GIN_COMMIT}.zip -> ${MY_P}.zip" +RESTRICT="mirror" +SLOT="2.1" +LICENSE="Apache-2.0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +CDEPEND=" + dev-java/aopalliance:1 + dev-java/javax-inject:0 + dev-java/gwt:2.8 + dev-java/validation-api:1.0 +" + +RDEPEND=" + ${CDEPEND} + >=virtual/jre-1.8:*" +DEPEND=" + ${CDEPEND} + >=virtual/jdk-1.8:*" + +JAVA_ANT_REWRITE_CLASSPATH="yes" +EANT_BUILD_XML="build.xml" +EANT_GENTOO_CLASSPATH=" + aopalliance-1 + javax-inject + gwt-2.8 + validation-api-1.0 +" + +S="${WORKDIR}/${MY_PN}-${GIN_COMMIT}" + +JAVA_RM_FILES=( + trunk/lib/aopalliance.jar + trunk/lib/javax.inject.jar + lib/aopalliance.jar + lib/javax.inject.jar +) + +src_compile() { + local EANT_BUILD_TARGET="compile" + GWT_HOME="${EROOT}/usr/share/gwt-2.8/lib" \ + java-pkg-2_src_compile + EANT_BUILD_TARGET="jars" + GWT_HOME="${EROOT}/usr/share/gwt-2.8/lib" \ + java-pkg-2_src_compile +} + +src_test() { + GWT_HOME="${EROOT}/usr/share/gwt-2.8/lib" \ + ant test || die +} + +src_install() { + java-pkg_newjar \ + out/dist/${P}-src.jar ${PN}-src.jar + java-pkg_newjar \ + out/dist/${P}.jar ${PN}.jar + java-pkg_dojar \ + lib/*.jar +} diff --git a/dev-java/gin/metadata.xml b/dev-java/gin/metadata.xml new file mode 100644 index 000000000000..f5c70373f274 --- /dev/null +++ b/dev-java/gin/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>gienah@gentoo.org</email> + <name>Mark Wright</name> + </maintainer> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> + <longdescription lang="en"> + Gin (GWT INjection) brings automatic dependency injection to + GWT client-side code. Gin is built on top of Guice and uses (a + subset of) Guice's binding language. + </longdescription> +</pkgmetadata> |