diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
commit | 0f558761aa2dee1017b4751e4017205e015a9560 (patch) | |
tree | 037df795519468a25d9362b4e95cdaeb84eb1cf9 /dev-java/scram | |
parent | 752d6256e5204b958b0ef7905675a940b5e9172f (diff) |
gentoo resync : 29.12.2022
Diffstat (limited to 'dev-java/scram')
-rw-r--r-- | dev-java/scram/Manifest | 3 | ||||
-rw-r--r-- | dev-java/scram/metadata.xml | 7 | ||||
-rw-r--r-- | dev-java/scram/scram-2.1.ebuild | 104 |
3 files changed, 114 insertions, 0 deletions
diff --git a/dev-java/scram/Manifest b/dev-java/scram/Manifest new file mode 100644 index 000000000000..e4daee228243 --- /dev/null +++ b/dev-java/scram/Manifest @@ -0,0 +1,3 @@ +DIST scram-2.1.tar.gz 64263 BLAKE2B 59b71ee0faa32d2478e38e4275b7c83efb3f7a3ede0c068a8c0a6fe970248d22b539c50b97127b1b757839758d119b395fedd85d85425bd019e0972c2df20ef4 SHA512 e0757b306db03c56f03fa0907e46693337854c152a321cae1b109a1c16b0cb5be2482a92d64a420432a3ea31371990cbac444f965abde89c04083005b30012ef +EBUILD scram-2.1.ebuild 2582 BLAKE2B 2260829df18b1bde2d26721ff76df575771a472f2e7515a8228f86694197256cbad1f5ee579a6a42ae268bcd4e9009cac633c38f07bd69bb71c9a6069265af8a SHA512 d6ef2ae8d603c659ad8dbb5be0670d4a2da33323949849c8b2047d0f191cdb0e3be3fee28ce45f4d21a0e5c23982fc03f4e508279e9fdc7cb2614bcfdac16ea1 +MISC metadata.xml 217 BLAKE2B cb41a7bd7e5c55319465d67551eae75371cc72d58629c61f70a7f54c388645d5ab1427c66dfdd5954e36ca40f0d3209f871d476cacd61516dd57e3297aaa601f SHA512 4df8395dcf07c52adadee71ad7dfa9f611ade8485cc9869397d0037272ae9add9b40d90669da8b80e578b4ee14c512da01ba096abe39a5859ac71c5316e425b6 diff --git a/dev-java/scram/metadata.xml b/dev-java/scram/metadata.xml new file mode 100644 index 000000000000..75321cfb5598 --- /dev/null +++ b/dev-java/scram/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/dev-java/scram/scram-2.1.ebuild b/dev-java/scram/scram-2.1.ebuild new file mode 100644 index 000000000000..a3af5e23f1dd --- /dev/null +++ b/dev-java/scram/scram-2.1.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Skeleton command: +# java-ebuilder --generate-ebuild --workdir . --pom common/pom.xml --download-uri https://gitlab.com/ongresinc/scram/-/archive/2.1/scram-2.1.tar.gz --slot 0 --keywords "~amd64 ~ppc64 ~x86" --ebuild scram-2.1.ebuild + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="com.ongres.scram:common:2.1" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Java Implementation of the Salted Challenge Response Authentication Mechanism" +HOMEPAGE="https://gitlab.com/ongresinc/scram" +SRC_URI="https://gitlab.com/ongresinc/${PN}/-/archive/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" + +# Common dependencies +# POM: common/pom.xml +# com.ongres.stringprep:saslprep:1.1 -> >=dev-java/stringprep-2.0:0 + +CP_DEPEND=" + dev-java/saslprep:0 +" + +# Compile dependencies +# POM: common/pom.xml +# com.google.code.findbugs:annotations:3.0.1 -> !!!artifactId-not-found!!! +# com.google.code.findbugs:jsr305:3.0.1 -> >=dev-java/jsr305-3.0.2:0 +# POM: common/pom.xml +# test? junit:junit:4.12 -> >=dev-java/junit-4.13.2:4 + +DEPEND=" + >=virtual/jdk-1.8:* + ${CP_DEPEND} + dev-java/findbugs-annotations:0 + dev-java/jsr305:0 + test? ( dev-java/stringprep:0 ) +" + +RDEPEND=" + >=virtual/jre-1.8:* + ${CP_DEPEND}" + +DOCS=( CHANGELOG NOTICE README.md ) + +S="${WORKDIR}/${P}" + +JAVA_CLASSPATH_EXTRA="findbugs-annotations,jsr305" +JAVA_TEST_GENTOO_CLASSPATH="junit-4,stringprep" + +src_compile() { + einfo "Compiling module common" + JAVA_SRC_DIR="common/src/main/java" + JAVA_JAR_FILENAME="common.jar" + java-pkg-simple_src_compile + JAVA_GENTOO_CLASSPATH_EXTRA+=":common.jar" + rm -r target || die + + einfo "Compiling module client" + JAVA_SRC_DIR="client/src/main/java" + JAVA_JAR_FILENAME="client.jar" + java-pkg-simple_src_compile + JAVA_GENTOO_CLASSPATH_EXTRA+=":client.jar" + rm -r target || die + + if use doc; then + einfo "Compiling javadocs" + JAVA_SRC_DIR=( + "common/src/main/java" + "client/src/main/java" + ) + JAVA_JAR_FILENAME="ignoreme.jar" + java-pkg-simple_src_compile + fi +} + +src_test() { + einfo "Testing module common" + JAVA_TEST_SRC_DIR="common/src/test/java" + java-pkg-simple_src_test + + einfo "Testing module cwclientcommon" + JAVA_TEST_SRC_DIR="client/src/test/java" + java-pkg-simple_src_test +} + +src_install() { + default + java-pkg_dojar "common.jar" + java-pkg_dojar "client.jar" + if use doc; then + java-pkg_dojavadoc target/api + fi + if use source; then + java-pkg_dosrc "common/src/main/java/*" + java-pkg_dosrc "client/src/main/java/*" + fi +} |