summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* java-pkg-simple.eclass: improve MANIFEST.MF manipulationVolkmar W. Pogatzki2022-10-111-9/+13
| | | | | | | | | | | | | | | For adding Main-class and/or Automatic-module-name to MANIFEST.MF it seems better to use "jar" functionality at the end of compilation. This does the necessary checks and issues warnings in case of duplicate entries. Erroneously used existence checks ( -v ) were causing wrong entries in MANIFEST.MF files in case of JAVA_MAIN_CLASS="" which is often used in multi-jar ebuilds. Closes: https://bugs.gentoo.org/874924 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/27621 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-pkg-simple.eclass: improve test selection for multi-jar packagesVolkmar W. Pogatzki2022-10-031-13/+15
| | | | | | | | | Testing multi-jar packages was not properly supported. With this change the tests_to_run are selected per module. Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/27491 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-pkg-simple.eclass: allow JAVA_MAIN_CLASS _and_ MANIFEST.MFVolkmar W. Pogatzki2022-10-031-8/+9
| | | | | | | | | | | The eclass did not handle JAVA_MAIN_CLASS if there was also a given META-INF/MANIFEST.MF. This change allows adding JAVA_AUTOMATIC_MODULE_NAME and/or JAVA_MAIN_CLASS to the MANIFEST.MF file if it exists or creates one if not. Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-pkg-simple.eclass: run java-pkg_gen-cp only for non-binary packagesVolkmar W. Pogatzki2022-08-021-3/+3
| | | | | | | | | | | | | | app-misc/rundeck-cli-bin-2.0.1 failed to build with openjdk-jre-bin-17 saying "javac is not available for openjdk-jre-bin-17 on x86_64". Culprit was java-pkg-simple.eclass calling java-pkg_gen-cp unconditionally. Limiting java-pkg_gen-cp to the "non-binary" case solves the problem. Closes: https://bugs.gentoo.org/861026 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/26647 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* java-pkg-simple.eclass: Inherit eqawarn instead of eutilsUlrich Müller2022-07-241-1/+1
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* java-pkg-simple.eclass: Drop support for EAPI 5Ulrich Müller2022-07-241-7/+3
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* java-pkg-simple.eclass: Automatic-Module-NameVolkmar W. Pogatzki2022-07-221-0/+12
| | | | | | | | | | | The new variable JAVA_AUTOMATIC_MODULE_NAME can be defined in the ebuild. Its value will be transferred to the MANIFEST.MF of the jar file. Closes: https://bugs.gentoo.org/857468 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/26406 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* java-pkg-simple.eclass: invoke einstalldocsFlorian Schmaus2022-07-061-1/+7
| | | | | | | | | On EAPI 6, or newer, invoke einstalldocs in java-pkg-simple_src_install. Closes: https://bugs.gentoo.org/789582 Closes: https://github.com/gentoo/gentoo/pull/26216 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* java-pkg-simple.eclass: eqawarn if module-info.java is not compiledFlorian Schmaus2022-05-051-4/+5
| | | | | | | | | | In preperation of this ewarn part becoming 'die' (bug #842447), switch it to eqawarn to improve catching the affected packages. Bug: https://bugs.gentoo.org/796875 Bug: https://bugs.gentoo.org/842447 Signed-off-by: Florian Schmaus <flow@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/25306
* *.eclass: @ECLASS-VARIABLE renamed to @ECLASS_VARIABLEUlrich Müller2022-03-241-19/+19
| | | | | Bug: https://bugs.gentoo.org/835396 Signed-off-by: Ulrich Müller <ulm@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>
* java-pkg-simple.eclass: Move EXPORT_FUNCTIONS below inheritUlrich Müller2021-09-031-2/+2
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* java-pkg-simple.eclass: added support for running only selected test classesMiroslav Šulc2021-07-041-19/+34
| | | | Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-pkg-simple.eclass: improved code related to java 9+ modulesMiroslav Šulc2021-06-271-8/+24
| | | | | Bug: https://bugs.gentoo.org/796875 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-pkg-simple.eclass: added support for module-info.java compilationMiroslav Šulc2021-06-241-4/+53
| | | | | | | for more info see https://bugs.gentoo.org/796875 Bug: https://bugs.gentoo.org/796875 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-pkg-simple.eclass: fix @SUPPORTED_EAPIS eclassdocSam James2021-06-211-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* java-pkg-simple.eclass: [QA] add EAPI guardSam James2021-06-201-2/+13
| | | | | Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
* eclass: normalise email format in @AUTHORSam James2021-03-311-2/+2
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* java-pkg-simple.eclass: fixed copyrightMiroslav Šulc2020-09-051-1/+1
| | | | Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-pkg-simple.eclass: Fix typos and commentsHenning Sudbrock2020-09-051-13/+12
| | | | | | | | | | | | | | | Mostly fixes typos (most of them in comments, only one in an actual variable, 'dependency'). Non-typos: * After the recent extensions of this eclass, it now supports resources - hence the change in the eclass description. * The usage description of java-pkg-simple_getclasspath mentions the optional parameter --runtime-only, which appears not to be provided by the function. Signed-off-by: Henning Sudbrock <github@hsudbrock.de> Closes: https://github.com/gentoo/gentoo/pull/17425 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-pkg-simple.eclass: Fix error message when copying resourcesHenning Sudbrock2020-09-011-1/+1
| | | | | | Signed-off-by: Henning Sudbrock <github@hsudbrock.de> Closes: https://github.com/gentoo/gentoo/pull/17363 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-pkg-simple.eclass and java-utils-2.eclass: features and enhancementsZhang Zongyu2020-08-301-29/+350
| | | | | | | | | | 1) support java resources 2) support java main class and launcher 3) enable java-pkg-simple_src_test() 4) support binary jars (both for resolve circular deps and for pkgdiff test) Signed-off-by: Zhang Zongyu <zzy2529420793@gmail.com> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* Drop $Id$ per council decision in bug #611234.Robin H. Johnson2017-02-281-1/+0
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* java-pkg-simple.eclass: Implemented auto classpathWilliam L. Thomson Jr2016-10-171-0/+3
| | | | | | | | | Added call to java-pkg_gen-cp EANT_GENTOO_CLASSPATH in java-pkg-simple_src_compile. This has no effect unless CP_DEPEND is set in an ebuild. Closes: https://github.com/gentoo/gentoo/pull/2286 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* java-pkg-simple.eclass: Rename JAVA_CLASSPATH_EXTRAJames Le Cuirot2015-11-011-2/+2
| | | | | …to JAVA_GENTOO_CLASSPATH_EXTRA to make this consistent with the EANT variables. Only one ebuild to fix.
* eclass: Fix varaible name in docs stringJustin Lecher2015-10-221-1/+1
| | | | Signed-off-by: Justin Lecher <jlec@gentoo.org>
* java-pkg-simple.eclass: Get rid of java-pkg-simple_verbose-cmd function and ↵Patrice Clement2015-10-201-24/+6
| | | | | | all its calls/references. Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
* java-{mvn-src,osgi,pkg-simple}.eclass: Rewrite documentation to make it ↵Patrice Clement2015-10-191-78/+50
| | | | | | compliant with the new style. Fixes bug 476946. Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
* fix broken headers in a few random filesMike Frysinger2015-10-051-6/+2
|
* proj/gentoo: Initial commitRobin H. Johnson2015-08-081-0/+209
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed