diff options
author | James Le Cuirot <chewi@gentoo.org> | 2016-11-21 23:56:51 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2016-11-22 00:00:12 +0000 |
commit | eed931b35b231cdef3cc76fad7c27736eddd0ffb (patch) | |
tree | 64ee4eb3bdb12e839f9c8b8429aec0e2e91550bf /dev-java/guice | |
parent | dev-java/reflections: Use newer guava SLOT, EAPI bump to 6 (diff) | |
download | gentoo-eed931b35b231cdef3cc76fad7c27736eddd0ffb.tar.gz gentoo-eed931b35b231cdef3cc76fad7c27736eddd0ffb.tar.bz2 gentoo-eed931b35b231cdef3cc76fad7c27736eddd0ffb.zip |
dev-java/guice: Bump to 4.1, EAPI bump, avoid jarjar dependency
Package-Manager: portage-2.3.2
Diffstat (limited to 'dev-java/guice')
-rw-r--r-- | dev-java/guice/Manifest | 1 | ||||
-rw-r--r-- | dev-java/guice/guice-4.1.ebuild | 52 |
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-java/guice/Manifest b/dev-java/guice/Manifest index 53592b060e73..b2625456c162 100644 --- a/dev-java/guice/Manifest +++ b/dev-java/guice/Manifest @@ -1 +1,2 @@ DIST guice-4.0.tar.gz 23103592 SHA256 353cd5130d6e7f5bdb702af2e6b4f8aedd6e152c276275a6adcf5bbefade4ddb SHA512 45bdc00ebbad051f1f31b7cb5c134e42c841a06513563abc184739a514f39bc76dcb220af77ec60f46a0d887df93e0177ce071110b41ef6e5e69bad1a30f0e40 WHIRLPOOL 7b9b1d41b5256592ae5ccbd550b008d4cd10a50e7007a3c2b3d9b5cfaaa144f43be2d398386a762d9ca4afa76b30d4ec40aed2a9c9fd1c731f359de23c3be0df +DIST guice-4.1.tar.gz 23212767 SHA256 77650231a0b12c0f0551202ae4dcfc1a4364e090f461cc3d21616d45bfc49537 SHA512 b42c6475a1d17c111a2ca278ac007bee541806685c0938c66f638808bd81d58aa99ba5aef2e4d8320dd5014df4307c5d2dd192111f4610c73a1eeef328771c00 WHIRLPOOL 9566d12d7cc001f7ddc0b3b972d06664f246a44d0dc0c2c02435f544417781c2f3cb7cce0fc21846297736f79ed59011aaaf2d2b65b08220c3d45acfdba8c76b diff --git a/dev-java/guice/guice-4.1.ebuild b/dev-java/guice/guice-4.1.ebuild new file mode 100644 index 000000000000..b1ec6fe7e6bd --- /dev/null +++ b/dev-java/guice/guice-4.1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +JAVA_PKG_IUSE="source" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="A lightweight dependency injection framework for Java 5 and above" +HOMEPAGE="https://github.com/google/guice/" +SRC_URI="https://github.com/google/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="4" +KEYWORDS="~amd64 ~x86" +RESTRICT="test" + +CP_DEPEND="dev-java/aopalliance:1 + >=dev-java/asm-5:4 + >=dev-java/cglib-3.1:3 + dev-java/guava:20 + dev-java/javax-inject:0" + +RDEPEND=">=virtual/jre-1.7 + ${CP_DEPEND}" + +DEPEND=">=virtual/jdk-1.7 + ${CP_DEPEND}" + +JAVA_PKG_BSFIX_ALL="no" +JAVA_PKG_BSFIX_NAME="build.xml common.xml" +JAVA_ANT_REWRITE_CLASSPATH="yes" + +src_prepare() { + default + + # Where could we get this FREAKIN jar? + java-pkg_clean ! -name "bnd-*.jar" +} + +src_compile() { + EANT_BUILD_TARGET="compile manifest" java-pkg-2_src_compile + jar cfm ${PN}.jar build/META-INF/MANIFEST.MF -C build/classes . || die +} + +src_install() { + java-pkg_dojar ${PN}.jar + dodoc {CONTRIBUTING,README}.md + use source && java-pkg_dosrc core/src/* +} |