gentoo-ebuilds/dev-java/jide-oss/jide-oss-3.7.12-r2.ebuild
Volkmar W. Pogatzki 8c262f0588
dev-java/jide-oss: style update, update EAPI 7 -> 8
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/39208/commits/3c4e5d11f44b3dd410dbdb5fcbbe1253208c55ac
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2024-11-07 08:33:07 +01:00

49 lines
1.5 KiB
Bash

# 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.jidesoft:jide-oss:3.7.12"
JAVA_TESTING_FRAMEWORKS="junit-4"
MY_COMMIT="19083238ce00ecbd7370f856cb64ea69dae669a5"
inherit java-pkg-2 java-pkg-simple
DESCRIPTION="JIDE Common Layer (Professional Swing Components)"
HOMEPAGE="https://github.com/jidesoft/jide-oss"
SRC_URI="https://github.com/jidesoft/jide-oss/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${MY_COMMIT}"
LICENSE="GPL-2-with-classpath-exception"
SLOT="0"
KEYWORDS="~amd64"
# Upstream does not support java-11
# https://github.com/jidesoft/jide-oss/issues/30
DEPEND="virtual/jdk:1.8"
RDEPEND="virtual/jre:1.8"
DOCS=( {'Readme JDK9',README}.txt libs/README_lib )
JAVA_GENTOO_CLASSPATH_EXTRA="libs/ui.jar"
JAVA_RESOURCE_DIRS=( "src" "properties" )
JAVA_SRC_DIR=( "src" "src-jdk8" )
JAVA_TEST_GENTOO_CLASSPATH="junit-4"
JAVA_TEST_SRC_DIR="test"
JAVA_TEST_EXCLUDES=(
"com.jidesoft.swing.CornerScrollerVisualTest" # No runnable methods
"com.jidesoft.swing.TestResizableWindow" # No runnable methods
"com.jidesoft.utils.TestCacheArray" # No runnable methods
# junit.framework.AssertionFailedError: expected:<0> but was:<100>
# probably the test is wrong as a cache entry is created for each font size
# and each iteration creates a new font size
"com.jidesoft.utils.TestFontUtils"
)
src_prepare() {
java-pkg-2_src_prepare
rm libs/junit-4.10.jar || die
}