Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/netty-buffer/
Date: Sat, 08 Jan 2022 11:14:26
Message-Id: 1641640440.afbd005cbb282f0107d36d138d15d7476db698ba.flow@gentoo
1 commit: afbd005cbb282f0107d36d138d15d7476db698ba
2 Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
3 AuthorDate: Tue Jan 4 08:54:32 2022 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 8 11:14:00 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afbd005c
7
8 dev-java/netty-buffer: increase heap to 2048M for tests
9
10 "OutOfMemoryError: Java heap space" could be reproduced
11 with CHECKREQS_MEMORY="512M". Setting now to "2048M".
12 Closes: https://bugs.gentoo.org/829822
13 Package-Manager: Portage-3.0.28, Repoman-3.0.3
14 Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
15 Closes: https://github.com/gentoo/gentoo/pull/23627
16 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
17
18 .../netty-buffer/netty-buffer-4.0.36-r1.ebuild | 85 ++++++++++++++++++++++
19 1 file changed, 85 insertions(+)
20
21 diff --git a/dev-java/netty-buffer/netty-buffer-4.0.36-r1.ebuild b/dev-java/netty-buffer/netty-buffer-4.0.36-r1.ebuild
22 new file mode 100644
23 index 000000000000..fc67db58a5f3
24 --- /dev/null
25 +++ b/dev-java/netty-buffer/netty-buffer-4.0.36-r1.ebuild
26 @@ -0,0 +1,85 @@
27 +# Copyright 1999-2022 Gentoo Authors
28 +# Distributed under the terms of the GNU General Public License v2
29 +
30 +# Skeleton command:
31 +# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://github.com/netty/netty/archive/refs/tags/netty-4.0.36.Final.tar.gz --slot 0 --keywords "~amd64 ~arm64 ~ppc64 ~x86" --ebuild netty-buffer-4.0.36.ebuild
32 +
33 +EAPI=8
34 +
35 +JAVA_PKG_IUSE="doc source test"
36 +MAVEN_ID="io.netty:netty-buffer:4.0.36.Final"
37 +JAVA_TESTING_FRAMEWORKS="junit-4"
38 +
39 +inherit java-pkg-2 java-pkg-simple
40 +
41 +DESCRIPTION="Async event-driven framework for high performance network applications"
42 +HOMEPAGE="https://netty.io/"
43 +SRC_URI="https://github.com/netty/netty/archive/refs/tags/netty-${PV}.Final.tar.gz"
44 +
45 +LICENSE="Apache-2.0"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
48 +
49 +# Common dependencies
50 +# POM: pom.xml
51 +# io.netty:netty-common:4.0.36.Final -> !!!groupId-not-found!!!
52 +
53 +CP_DEPEND="dev-java/netty-common:0"
54 +
55 +# Compile dependencies
56 +# POM: pom.xml
57 +# test? ch.qos.logback:logback-classic:1.0.13 -> !!!groupId-not-found!!!
58 +# test? io.netty:netty-build:22 -> !!!groupId-not-found!!!
59 +# test? junit:junit:4.12 -> >=dev-java/junit-4.13.2:4
60 +# test? org.easymock:easymock:3.2 -> >=dev-java/easymock-3.3.1:3.2
61 +# test? org.easymock:easymockclassextension:3.2 -> !!!artifactId-not-found!!!
62 +# test? org.hamcrest:hamcrest-library:1.3 -> >=dev-java/hamcrest-library-1.3:1.3
63 +# test? org.javassist:javassist:3.19.0-GA -> !!!groupId-not-found!!!
64 +# test? org.jmock:jmock-junit4:2.6.0 -> !!!groupId-not-found!!!
65 +# test? org.mockito:mockito-core:1.10.8 -> !!!suitable-mavenVersion-not-found!!!
66 +
67 +DEPEND="${CP_DEPEND}
68 + >=virtual/jdk-1.8:*
69 + test? (
70 + dev-java/easymock:3.2
71 + dev-java/hamcrest-library:1.3
72 + )"
73 +
74 +RDEPEND="${CP_DEPEND}
75 + >=virtual/jre-1.8:*"
76 +
77 +DOCS=( ../{CONTRIBUTING,README}.md ../{LICENSE,NOTICE}.txt )
78 +
79 +S="${WORKDIR}/netty-netty-${PV}.Final/buffer/"
80 +
81 +JAVA_SRC_DIR="src/main/java"
82 +
83 +JAVA_TEST_GENTOO_CLASSPATH="junit-4,easymock-3.2,hamcrest-library-1.3"
84 +JAVA_TEST_SRC_DIR="src/test/java"
85 +
86 +check_env() {
87 + if use test; then
88 + # this is needed only for tests
89 + # https://bugs.gentoo.org/829822
90 + CHECKREQS_MEMORY="2048M"
91 + check-reqs_pkg_pretend
92 + fi
93 +}
94 +
95 +pkg_pretend() {
96 + check_env
97 +}
98 +
99 +pkg_setup() {
100 + check_env
101 +}
102 +
103 +src_test() {
104 + JAVA_TEST_EXTRA_ARGS+=" -Xmx${CHECKREQS_MEMORY}"
105 + java-pkg-simple_src_test
106 +}
107 +
108 +src_install() {
109 + default # https://bugs.gentoo.org/789582
110 + java-pkg-simple_src_install
111 +}