diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/okio |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/okio')
-rw-r--r-- | dev-java/okio/Manifest | 5 | ||||
-rw-r--r-- | dev-java/okio/files/okio-remove-maven-animal-jre.patch | 44 | ||||
-rw-r--r-- | dev-java/okio/metadata.xml | 11 | ||||
-rw-r--r-- | dev-java/okio/okio-1.11.0.ebuild | 39 |
4 files changed, 99 insertions, 0 deletions
diff --git a/dev-java/okio/Manifest b/dev-java/okio/Manifest new file mode 100644 index 000000000000..e75bcc83413d --- /dev/null +++ b/dev-java/okio/Manifest @@ -0,0 +1,5 @@ +AUX okio-remove-maven-animal-jre.patch 1631 SHA256 d3269bc77e6adcc84d67b65adcd2d9bc6d5839e39262ebee6c2089312365fbcb SHA512 5bd6cacf2ca9cf51ee7b80fc5deead8174fb579dc3a8422f65b7af80492f37d24ccad4605896f0653984852db89c2ca9ce0b78bd0ea2630ad8c71e1808b9a3f7 WHIRLPOOL f846cacfdb13a27e4b0fc1bbac23cedda06cd19a0639bb763ef7909f1ac5a319e67702619405a3bb9382e6b3dc684cdb5a0307f2a065e3356dff588127b1b0f6 +DIST okio-1.11.0.zip 147483 SHA256 fe75d35e819e38ecf17717c6d461e6ad82ad2ee7d8f2251047389b4acc16b56e SHA512 c8f440284d683a04e3d75d6f6715e229c06caad5e7f2bc544348703cdfbd8fe5bfb19f0c316ea4cfb473a933b03bda2277de8c0b7c956b143cc04826e61cf0b6 WHIRLPOOL 39a77a7572f1996b42c10c4e158e841917234fca5e6309ef8815f90c20338c86bc457a8e469af9cd91c5953000e7df661c4c9a3d3004f72404392f0108a98034 +EBUILD okio-1.11.0.ebuild 754 SHA256 9a80772ee168e289c63c9315d038378e0a61ca0bdcdd9b8fe79d8cb3267e2070 SHA512 405fb52d98b0b3b044d1e92ce3c6cca8654ea1816b6149a4b9bfe9a76943994e6f8d3975e985127cbf76395bf59acd3297ed5d1217c198d1fcdfd08b4ce01544 WHIRLPOOL 7e7898a1fc8ce1d039180fa691f8da37e53be547fdc970cf1aefeb87bb70350870f0b5f64224e75cbd865d8dab2023554cf77cb6fbabdd881a375a83f42adfef +MISC ChangeLog 350 SHA256 484799ce8c96010f052298372bdcfcd24fdb2965fae2e64809d227432a15d68b SHA512 a3cb1358398637e9e68beb28f7dda90c01fecba139ec4509a0c2a743138fefca3c0d140cad814aaa92c7397bd021542b95c32951c85de6428a49d8d19d0c0b57 WHIRLPOOL 59b96b5af913f4058b09cb9ade5b4596a5f91d16ca9a0a7c88a8cc0d437e70548c19f6ce1717024e970e5883c9808e8e27ff1c894facc4f045a85bbd0367f4e7 +MISC metadata.xml 312 SHA256 6c549d6c0996e7c727be6f404dfc3a3019123d7379a7a6d32a197c49b7e1a247 SHA512 595713b72b25fddd2950c667f082fef0ce861354c44a878efcaf721abdb8761c2496a9b975c21824cfebdea6d9d4fc39560c2f8747a868ccbf08b49ff7dbbb25 WHIRLPOOL a0198039a3f3bb15dfa457a4c3d203ace25355cb8242e9420b261477e5002aae7a2245f6726d0ad85f8f46ae95a0090d1803df64f63d24ec06a44d96b115f199 diff --git a/dev-java/okio/files/okio-remove-maven-animal-jre.patch b/dev-java/okio/files/okio-remove-maven-animal-jre.patch new file mode 100644 index 000000000000..0e5e5d62880e --- /dev/null +++ b/dev-java/okio/files/okio-remove-maven-animal-jre.patch @@ -0,0 +1,44 @@ +--- okio/src/main/java/okio/DeflaterSink.java 2016-08-22 12:01:19.828823222 -0500 ++++ okio/src/main/java/okio/DeflaterSink.java 2016-08-22 12:01:25.039823574 -0500 +@@ -17,7 +17,6 @@ + + import java.io.IOException; + import java.util.zip.Deflater; +-import org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement; + + import static okio.Util.checkOffsetAndCount; + +@@ -79,7 +78,6 @@ + } + } + +- @IgnoreJRERequirement + private void deflate(boolean syncFlush) throws IOException { + Buffer buffer = sink.buffer(); + while (true) { +--- okio/src/main/java/okio/Okio.java 2016-08-22 12:03:23.819831591 -0500 ++++ okio/src/main/java/okio/Okio.java 2016-08-22 12:03:34.874832337 -0500 +@@ -30,7 +30,6 @@ + import java.nio.file.Path; + import java.util.logging.Level; + import java.util.logging.Logger; +-import org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement; + + import static okio.Util.checkOffsetAndCount; + +@@ -167,7 +166,6 @@ + } + + /** Returns a source that reads from {@code path}. */ +- @IgnoreJRERequirement // Should only be invoked on Java 7+. + public static Source source(Path path, OpenOption... options) throws IOException { + if (path == null) throw new IllegalArgumentException("path == null"); + return source(Files.newInputStream(path, options)); +@@ -186,7 +184,6 @@ + } + + /** Returns a sink that writes to {@code path}. */ +- @IgnoreJRERequirement // Should only be invoked on Java 7+. + public static Sink sink(Path path, OpenOption... options) throws IOException { + if (path == null) throw new IllegalArgumentException("path == null"); + return sink(Files.newOutputStream(path, options)); diff --git a/dev-java/okio/metadata.xml b/dev-java/okio/metadata.xml new file mode 100644 index 000000000000..1f3df0522d64 --- /dev/null +++ b/dev-java/okio/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> + <upstream> + <remote-id type="github">square/okio</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-java/okio/okio-1.11.0.ebuild b/dev-java/okio/okio-1.11.0.ebuild new file mode 100644 index 000000000000..57105c8e9838 --- /dev/null +++ b/dev-java/okio/okio-1.11.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple + +MY_P="${PN}-parent-${PV}" + +DESCRIPTION="A modern I/O API for Java" +HOMEPAGE="https://github.com/square/okio" +SRC_URI="https://github.com/square/${PN}/archive/${MY_P}.zip -> ${P}.zip" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=virtual/jre-1.7" + +CDEPEND=" + source? ( app-arch/zip ) + dev-java/jmh-core:0 + dev-java/junit:4" + +DEPEND=">=virtual/jdk-1.7 + ${CDEPEND}" + +RDEPEND=">=virtual/jre-1.7 + ${CDEPEND}" + +S="${WORKDIR}/${PN}-${MY_P}" + +JAVA_GENTOO_CLASSPATH="jmh-core,junit-4" + +src_prepare(){ + epatch "${FILESDIR}/okio-remove-maven-animal-jre.patch" +} |