summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* java-utils-2.eclass: add some missing documentationVolkmar W. Pogatzki2024-12-061-0/+42
| | | | | | Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/39233/commits/ea4b4f6f7397d8be1ccc99aa7baeea87fda0f90a Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: remove unused and undocumented functionsVolkmar W. Pogatzki2024-12-061-23/+0
| | | | | | | | | | removes the undocumented eclass functions: - java-pkg_jar-list - increment-qa-violations Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/39233/commits/5792412f99de65ec392f765cd4bd3585b53bb8fe Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: drop -Dtest.resources.dir from etestng()Volkmar W. Pogatzki2024-12-061-1/+0
| | | | | | | | This property is specific to dev-java/testng. Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/39233/commits/6b4df3a589a5ef516c9b2915e611fd46df8d354e Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: remove reference to java-ant-2.eclassVolkmar W. Pogatzki2024-11-051-19/+0
| | | | | Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Florian Schmaus <flow@gentoo.org>
* java-utils-2.eclass: remove undocumented unused functionVolkmar W. Pogatzki2024-10-301-4/+0
| | | | | | | | Removes java-pkg_set-current-vm Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/38836 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* eclass: canonicalize debug-print-function callsDavid Seifert2024-10-081-1/+1
| | | | | Closes: https://github.com/gentoo/gentoo/pull/37652 Signed-off-by: David Seifert <soap@gentoo.org>
* java-utils-2.eclass: drop support for EAPI 6David Seifert2024-10-081-15/+8
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* java-utils-2.eclass: add some missing function descriptionsVolkmar W. Pogatzki2024-10-021-4/+28
| | | | | | Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/38559 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: stop mentioning java-ant-2 eclassVolkmar W. Pogatzki2024-10-021-5/+4
| | | | | Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: remove java-pkg_check-jikesVolkmar W. Pogatzki2024-10-021-11/+2
| | | | | Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: remove unused eclass fuction use_docVolkmar W. Pogatzki2024-09-101-24/+0
| | | | | | Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/38544 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: mark function use_doc as deprecatedVolkmar W. Pogatzki2024-09-101-0/+1
| | | | | | Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/37338 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-4/+8
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* java-utils-2.eclass: remove 'ant -lib' from comment of java-pkg_jarfromVolkmar W. Pogatzki2024-09-011-1/+1
| | | | | | | since it is already advised to not use it Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: etestng use java-pkg_getjars --build-onlyVolkmar W. Pogatzki2024-08-011-1/+1
| | | | | | | Closes: https://bugs.gentoo.org/936812 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/37772/commits/513f82dafdb7874b77da408068e9b2e90bfe0c36 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: select java-config binary, prefer java-config over ↵Florian Schmaus2024-07-281-1/+7
| | | | | | | | | | | | | | java-config-2 This prepares the eclass for the transition from /usr/bin/java-config-2 to /usr/bin/java-config. Starting with dev-java/java-config-2.3.3, the java-config utility is installed as java-config and the java-config-2 compatibility symlink will only be installed if the 'compat' USE flag is enabled (currently the default). Signed-off-by: Florian Schmaus <flow@gentoo.org>
* java-utils-2.eclass: fix ejunit_(), java-pkg_getjars --build-onlyVolkmar W. Pogatzki2024-07-261-1/+1
| | | | | | | Closes: https://bugs.gentoo.org/936557 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/37718 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: allow eant without java-ant-2_src_configureVolkmar W. Pogatzki2024-06-281-6/+16
| | | | | | | | | | Packages which can build without BSFIX need not inherit java-ant-2. To allow using eant without inheriting java-ant-2 we enhance the eant function with a condition which controls calling java-ant-2_src_configure. Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/37022/commits/6ebf29fc691b6e38c8bf263eec2313d611298d25 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: add --runtime-only argument to java-pkg_getjarsFlorian Schmaus2024-06-261-3/+7
| | | | | | | | Some packages only need the jar at runtime, not at compile time. For example https://bugs.gentoo.org/934659#c2 Bug: https://bugs.gentoo.org/934659 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* Revert "java-utils-2.eclass: eerror if java-utils-2 is inherited directly"Volkmar W. Pogatzki2024-06-141-6/+0
| | | | | | | | | This reverts commit 41faa907e3a36f4ed00aced3499d469abb865281. Bug: https://bugs.gentoo.org/207098 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/37156 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: drop redundant java-pkg_get-current-vm()Volkmar W. Pogatzki2024-06-141-4/+0
| | | | | | | | Removes the first of two different versions of java-pkg_get-current-vm() Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/35287 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: eerror if java-utils-2 is inherited directlyVolkmar W. Pogatzki2024-06-141-0/+6
| | | | | | Closes: https://bugs.gentoo.org/207098 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: improve message of java-pkg_dieVolkmar W. Pogatzki2024-06-141-1/+1
| | | | | | Closes: https://bugs.gentoo.org/591142 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: prepend "QA Notice" to eqawarnVolkmar W. Pogatzki2024-06-141-2/+2
| | | | | | Closes: https://bugs.gentoo.org/813342 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: solve Unexpected tag in "funcvar" stateVolkmar W. Pogatzki2024-06-141-3/+6
| | | | | | Closes: https://bugs.gentoo.org/637768 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: default to default_src_prepare for future EAPIVolkmar W. Pogatzki2024-01-201-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | Presently patches from a PATCHES array are not getting applied unless "default" or "eapply_user" is set in the ebuild. In cases where nothing else needs to be prepared it still needs src_prepare in the ebuild src_prepare() { default } With this change, starting from EAPI 9 this will no longer be needed. In cases where any other changes are done in the prepare phase it would only need java-pkg-2_src_prepare be added: src_prepare() { java-pkg-2_src_prepare cp, rm, mv, sed or other changes } Bug: https://bugs.gentoo.org/780585 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/34897 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* java-utils-2.eclass: enhance ejavadocVolkmar W. Pogatzki2024-01-111-3/+21
| | | | | | | | This patch enhances the ejavadoc function so that it can be called without arguments if the JAVADOC_SRC_DIRS array is set in the ebuild. Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: new JAVADOC_CLASSPATH, JAVADOC_SRC_DIRSVolkmar W. Pogatzki2024-01-111-0/+40
| | | | | | | | | | | | | | | Several multi-jar packages built with java-pkg-simple.eclass use a workaround to avoid passing arguments to ejavadoc. That workaround runs another java-pkg-simple_src_compile which builds an unneeded jar file usually called "ignoreme.jar". This patch defines the JAVADOC_SRC_DIRS eclass variable needed by the java-pkg-simple.eclass to decide whether to call ejavadoc or not. The other new eclass variable is JAVADOC_CLASSPATH. It can be used for multi-jar packages to pass dependencies's classpath to ejavadoc. Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: Drop redundant EAPI conditionalsUlrich Müller2023-12-091-24/+5
| | | | | | Use standard EAPI guard. Inherit eqawarn instead of eutils in EAPI 6. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* java-utils-2.eclass: record LIBDIR in package.envFlorian Schmaus2023-11-141-0/+3
| | | | | | Bug: https://bugs.gentoo.org/917326 Closes: https://github.com/gentoo/gentoo/pull/33821 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* java-utils-2.eclass: avoid reverse dependency for dev-java/testngVolkmar W. Pogatzki2023-10-181-1/+5
| | | | | | | | | | | | | This change depends on the correlating change on the java-pkg-simple.eclass. For testing dev-java/testng before having it installed it is not possible to use java-pkg_getjars. This change adds a condition so that this case uses the freshly compiled testng.jar. Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/29733 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: allow etestng to run testng.xmlVolkmar W. Pogatzki2023-10-181-2/+7
| | | | | | | | | | | | The etestng function is presently limited to running test classes and has no option for running testng.xml files. Using testng.xml in an ebuild requires manual coding in src_test(). This change adds a switch to the etestng function which allows running default src_test() with either testng.xml files or test classes. Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: fix EclassDocMissingFuncVolkmar W. Pogatzki2023-09-161-1/+1
| | | | | | | Closes: https://bugs.gentoo.org/900509 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/30078 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* java-utils-2.eclass: fix Unquoted VariableArthur Zamarin2023-09-141-2/+2
| | | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* java-utils-2.eclass: fix spellingSam James2023-03-261-5/+5
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* java-utils-2.eclass: use find with -path instead of -wholenameVolkmar W. Pogatzki2023-02-171-1/+1
| | | | | | | | according to man page, -wholename is less portable than -path. Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/29626 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: default to default_src_prepare for future EAPIVolkmar W. Pogatzki2023-02-171-1/+4
| | | | | | | | | | | | | | | | | | | | | | | Presently patches from a PATCHES array are not getting applied unless "default" or "eapply_user" is set in the ebuild. In cases where nothing else needs to be prepared it still needs src_prepare in the ebuild src_prepare() { default } With this change, starting from EAPI 9 this will no longer be needed. In cases where any other changes are done in the prepare phase it would only need java-pkg-2_src_prepare be added: src_prepare() { java-pkg-2_src_prepare cp, rm, mv, sed or other changes } Bug: https://bugs.gentoo.org/780585 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: drop support for EAPI 5Volkmar W. Pogatzki2023-02-171-11/+4
| | | | | | Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/29556 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: default to java-pkg_clean for future EAPIVolkmar W. Pogatzki2023-02-171-0/+6
| | | | | | Bug: https://bugs.gentoo.org/797733 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: ECLASS_VARIABLE JAVA_PKG_NO_CLEANVolkmar W. Pogatzki2023-02-101-5/+22
| | | | | | | | | | | | | | | | | | The new ECLASS_VARIABLE JAVA_PKG_NO_CLEAN is an array of expressions to match *.class or *.jar files in order to protect them against deletion by java-pkg_clean. This change helps in cases where most bundled *.class or *.jar files can be deleted while only some few cannot be replaced with system libraries. It also helps to visualize bundled stuff in the ebuild. Cleaning does not work by default. It still needs java-pkg_clean within src_prepare(). Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/29470 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: drop pointless eend callMike Gilbert2022-07-111-1/+0
| | | | | Closes: https://bugs.gentoo.org/842675 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* eclass/java-utils-2.eclass: make testng output more verboseVolkmar W. Pogatzki2022-07-041-1/+6
| | | | | | | Bug: https://bugs.gentoo.org/801694 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/26118 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* java-utils-2.eclass: Use @ECLASS_VARIABLEMichał Górny2022-06-221-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/java-utils-2.eclass: drop gnu-classpathVolkmar W. Pogatzki2022-05-021-37/+8
| | | | | | | | | Bug: https://bugs.gentoo.org/786093 Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/21218 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* java-utils-2.eclass: introduce JAVA_TEST_RUNNER_EXTRA_ARGSFlorian Schmaus2022-04-271-8/+41
| | | | | | | | | | Also add special handling wrt -usedfaultlisteners for TestNG, see bug #801694. Co-authored-by: Miroslav Šulc <fordfrog@gentoo.org> Bug: https://bugs.gentoo.org/801694 Closes: https://github.com/gentoo/gentoo/pull/2512 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* java-utils-2.eclass: remove ebegin calls that lack eend callsMike Gilbert2022-04-151-4/+6
| | | | | | | | | | | | Instead, echo the command we are about to run. Closes: https://bugs.gentoo.org/838475 Closes: https://bugs.gentoo.org/838478 Closes: https://bugs.gentoo.org/838481 Closes: https://bugs.gentoo.org/838487 Closes: https://bugs.gentoo.org/838490 Closes: https://bugs.gentoo.org/838493 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* *.eclass: @ECLASS-VARIABLE renamed to @ECLASS_VARIABLEUlrich Müller2022-03-241-11/+11
| | | | | Bug: https://bugs.gentoo.org/835396 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* java-utils-2.eclass: update rather-obsolete python-updater referenceSam James2022-01-251-2/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* java-utils-2.eclass: remove freebsd-libcDavid Seifert2022-01-021-7/+2
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* eclass/java-{utils-2,pkg-2,pkg-simple}: bump to eapi8Miroslav Šulc2021-12-021-2/+2
| | | | Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>