blob: 5d9dc470f1fa4517c057902c8c9be66a787aecef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
JAVA_PKG_IUSE="doc source test"
MAVEN_ID="com.ongres.scram:client:3.1"
JAVA_TESTING_FRAMEWORKS="junit-4"
inherit java-pkg-2 java-pkg-simple
DESCRIPTION="SCRAM (RFC 5802) Java implementation"
HOMEPAGE="https://github.com/ongres/scram"
SRC_URI="https://github.com/ongres/scram/archive/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${P}"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="test" #839681
CP_DEPEND="
dev-java/jetbrains-annotations:0
>=dev-java/stringprep-2.2:0
"
DEPEND="
${CP_DEPEND}
dev-java/findbugs-annotations:0
dev-java/jsr305:0
>=virtual/jdk-1.8:*
test? ( dev-java/junit:5 )
"
RDEPEND="
${CP_DEPEND}
>=virtual/jre-1.8:*
"
DOCS=( CHANGELOG.md README.md )
JAVADOC_CLASSPATH="
findbugs-annotations
jetbrains-annotations
stringprep
"
JAVADOC_SRC_DIRS=(
"scram-common/src/main/java"
"scram-client/src/main/java"
)
JAVA_CLASSPATH_EXTRA="
findbugs-annotations
jetbrains-annotations
jsr305
stringprep
"
JAVA_TEST_GENTOO_CLASSPATH="
junit-4
junit-5
stringprep
"
src_compile() {
einfo "Compiling module common"
JAVA_SRC_DIR="scram-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="scram-client/src/main/java"
JAVA_JAR_FILENAME="client.jar"
java-pkg-simple_src_compile
JAVA_GENTOO_CLASSPATH_EXTRA+=":client.jar"
rm -r target || die
use doc && ejavadoc
}
src_test() {
einfo "Testing scram-common"
JAVA_TEST_SRC_DIR="scram-common/src/test/java"
java-pkg-simple_src_test
einfo "Testing scram-client"
JAVA_TEST_SRC_DIR="scram-client/src/test/java"
java-pkg-simple_src_test
}
src_install() {
JAVA_JAR_FILENAME="client.jar"
java-pkg-simple_src_install
java-pkg_dojar "common.jar"
if use source; then
java-pkg_dosrc "scram-common/src/main/java/*"
java-pkg_dosrc "scram-client/src/main/java/*"
fi
}
|