Skip to content

Commit

Permalink
dev-java/commons-validator: finished 1.7 from pr
Browse files Browse the repository at this point in the history
1) removed unused dep
2) packaged and added missing deps
3) made tests work

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Miroslav Šulc <[email protected]>
  • Loading branch information
fordfrog committed Jul 1, 2021
1 parent 0cd25fb commit 6144732
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 21 deletions.
2 changes: 1 addition & 1 deletion dev-java/commons-csv/commons-csv-1.8.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ HOMEPAGE="https://commons.apache.org/proper/commons-csv/"
SRC_URI="https://mirror.dkm.cz/apache//commons/csv/source/${P}-src.tar.gz -> ${P}-sources.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
KEYWORDS="~amd64 ~ppc64 ~x86"

# missing test deps
RESTRICT="test"
Expand Down
33 changes: 13 additions & 20 deletions dev-java/commons-validator/commons-validator-1.7.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~ppc64 ~x86"

# package CSVFormat does not exist
# package org.apache.commons.csv does not exist
# package org.bitstrings.test.junit.runner does not exist
RSTRICT="test"

# Common dependencies
# POM: pom.xml
# commons-beanutils:commons-beanutils:1.9.4 -> >=dev-java/commons-beanutils-1.9.4:1.7
Expand All @@ -34,37 +29,35 @@ RSTRICT="test"

CDEPEND="
dev-java/commons-beanutils:1.7
dev-java/commons-collections:0
dev-java/commons-digester:2.1
dev-java/commons-logging:0
"

# Compile dependencies
# POM: pom.xml
# test? junit:junit:4.13 -> >=dev-java/junit-4.13.1:4
# test? org.apache.commons:commons-csv:1.6 -> !!!artifactId-not-found!!!
# test? org.bitstrings.test:junit-clptr:1.2.2 -> !!!groupId-not-found!!!

# DEPEND="
# >=virtual/jdk-1.8:*
# ${CDEPEND}
# test? (
# !!!artifactId-not-found!!!
# !!!groupId-not-found!!!
# )
# "
# test? org.apache.commons:commons-csv:1.6 -> dev-java/commons-csv:0
# test? org.bitstrings.test:junit-clptr:1.2.2 -> dev-java/junit-clptr:0
#
# restricting for compilation to jdk 1.8 just because of tests which
# are not adjusted by upstream for jdk 11, otherwise the package works fine with jdk 11

DEPEND="${CDEPEND}
>=virtual/jdk-1.8:*"
virtual/jdk:1.8
test? (
dev-java/commons-csv:0
dev-java/junit-clptr:0
)
"
RDEPEND="${CDEPEND}
>=virtual/jre-1.8:*"

S="${WORKDIR}/${P}-src"

JAVA_GENTOO_CLASSPATH="commons-beanutils-1.7,commons-collections,commons-digester-2.1,commons-logging"
JAVA_GENTOO_CLASSPATH="commons-beanutils-1.7,commons-digester-2.1,commons-logging"
JAVA_SRC_DIR="src/main/java"
JAVA_RESOURCE_DIRS="src/main/resources"

# JAVA_TEST_GENTOO_CLASSPATH="junit-4,!!!artifactId-not-found!!!,!!!groupId-not-found!!!"
JAVA_TEST_GENTOO_CLASSPATH="commons-csv,junit-4,junit-clptr"
JAVA_TEST_SRC_DIR="src/test/java"
JAVA_TEST_RESOURCE_DIRS="src/test/resources"

0 comments on commit 6144732

Please sign in to comment.