commit:     d8be8eb1c8b1b4c26dbeee32758fc26c49383373
Author:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 27 08:54:49 2021 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Sat Mar 27 08:55:06 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8be8eb1

dev-java/cglib: some improvements in 3.3.0

Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 dev-java/cglib/cglib-3.3.0.ebuild | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

diff --git a/dev-java/cglib/cglib-3.3.0.ebuild 
b/dev-java/cglib/cglib-3.3.0.ebuild
index 1e17dbd9ddf..418da3689e5 100644
--- a/dev-java/cglib/cglib-3.3.0.ebuild
+++ b/dev-java/cglib/cglib-3.3.0.ebuild
@@ -3,7 +3,8 @@
 
 EAPI=7
 
-JAVA_PKG_IUSE="source test"
+# doc USE flag is not in IUSE as the docs does not compile because of errors
+JAVA_PKG_IUSE="examples source test"
 MAVEN_ID="cglib:cglib:3.3.0"
 JAVA_TESTING_FRAMEWORKS="junit-4"
 
@@ -41,10 +42,16 @@ JAVA_RESOURCE_DIRS="${MY_P}/${PN}/src/main/resources"
 JAVA_TEST_GENTOO_CLASSPATH="junit-4"
 JAVA_TEST_SRC_DIR="${MY_P}/${PN}/src/test/java"
 JAVA_TEST_EXCLUDES=(
-       "net.sf.cglib.CodeGenTestCase"
+       "net.sf.cglib.CodeGenTestCase"          # not a test class
        "net.sf.cglib.TestAll"
-       "net.sf.cglib.TestGenerator"
-       "net.sf.cglib.proxy.TestEnhancer"       # To be solved
-       "net.sf.cglib.proxy.TestInterceptor"
-       "net.sf.cglib.reflect.TestFastClass"
+       "net.sf.cglib.TestGenerator"            # not a test class
+       "net.sf.cglib.proxy.TestEnhancer"       # broken tests
+       "net.sf.cglib.proxy.TestInterceptor"    # not a test class
+       "net.sf.cglib.reflect.TestFastClass"    # broken tests
 )
+
+src_install() {
+       java-pkg-simple_src_install
+
+       use examples && java-pkg_doexamples --subdir samples 
${MY_P}/cglib-sample/src/main/java
+}

Reply via email to