Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/commons-vfs/
Date: Sat, 08 Jan 2022 09:05:37
Message-Id: 1641632506.6742befff3acbd41c2619c27d503e4d7c5af5211.fordfrog@gentoo
1 commit: 6742befff3acbd41c2619c27d503e4d7c5af5211
2 Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
3 AuthorDate: Sat Jan 8 08:47:49 2022 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 8 09:01:46 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6742beff
7
8 dev-java/commons-vfs: lift deps on jackrabbit-webdav to slot 2
9
10 also bumping to eapi 8
11
12 Package-Manager: Portage-3.0.28, Repoman-3.0.3
13 RepoMan-Options: --force
14 Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
15 Closes: https://github.com/gentoo/gentoo/pull/23696
16 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
17
18 dev-java/commons-vfs/commons-vfs-2.0-r3.ebuild | 72 ++++++++++++++++++++++++++
19 1 file changed, 72 insertions(+)
20
21 diff --git a/dev-java/commons-vfs/commons-vfs-2.0-r3.ebuild b/dev-java/commons-vfs/commons-vfs-2.0-r3.ebuild
22 new file mode 100644
23 index 000000000000..25ba2679791d
24 --- /dev/null
25 +++ b/dev-java/commons-vfs/commons-vfs-2.0-r3.ebuild
26 @@ -0,0 +1,72 @@
27 +# Copyright 1999-2022 Gentoo Authors
28 +# Distributed under the terms of the GNU General Public License v2
29 +
30 +EAPI=8
31 +
32 +JAVA_PKG_IUSE="source"
33 +
34 +inherit java-pkg-2 java-ant-2
35 +
36 +DESCRIPTION="A single API for accessing various different file systems"
37 +HOMEPAGE="https://commons.apache.org/vfs/"
38 +SRC_URI="mirror://apache/commons/vfs/source/${P}-src.tar.gz"
39 +
40 +LICENSE="Apache-2.0"
41 +SLOT="2"
42 +KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
43 +
44 +CDEPEND="
45 + dev-java/ant-core:0
46 + dev-java/commons-collections:0
47 + dev-java/commons-logging:0
48 + dev-java/commons-net:0
49 + dev-java/commons-httpclient:3
50 + dev-java/jackrabbit-webdav:2
51 + dev-java/jsch:0"
52 +
53 +DEPEND="${CDEPEND}
54 + >=virtual/jdk-1.8:*"
55 +
56 +RDEPEND="${CDEPEND}
57 + >=virtual/jre-1.8:*"
58 +
59 +PATCHES=(
60 + "${FILESDIR}"/${P}-incompatibility.patch
61 +)
62 +
63 +S="${WORKDIR}/${P}/core"
64 +
65 +EANT_GENTOO_CLASSPATH="
66 + ant-core
67 + commons-collections
68 + commons-logging
69 + commons-net
70 + commons-httpclient-3
71 + jackrabbit-webdav
72 + jsch
73 +"
74 +EANT_EXTRA_ARGS="-Dlibdir=${T}"
75 +
76 +# The build.xml is generated from maven and can't run the tests properly
77 +# Use maven test to execute these manually but that means downloading deps from
78 +# the internet. Also the tests need to login to some ftp servers and samba
79 +# shares so I doubt they work for everyone.
80 +#src_test() {
81 +# ANT_TASKS="ant-junit" eant test
82 +#}
83 +
84 +src_prepare() {
85 + default
86 + cp "${FILESDIR}"/${P}-build.xml build.xml || die
87 +
88 + java-ant_rewrite-classpath
89 + java-ant_ignore-system-classes
90 +}
91 +
92 +src_install() {
93 + java-pkg_newjar target/*.jar
94 +
95 + # [javadoc] No javadoc created, no need to post-process anything
96 +# use doc && java-pkg_dojavadoc target/site/apidocs
97 + use source && java-pkg_dosrc src/main/java
98 +}