From 4d50897515343430ecd779f3eb1ddeea09d1492e Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Thu, 26 Oct 2017 00:06:55 +0200 Subject: gnu: Add java-powermock-api-easymock. * gnu/packages/java.scm (java-powermock-api-easymock): New variable. --- gnu/packages/java.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'gnu/packages') diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 329d2ad815..fe4dc289a2 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -6896,3 +6896,30 @@ (define-public java-powermock-modules-junit4 ("objenesis" ,java-objenesis) ("asm" ,java-asm) ("junit" ,java-junit))))) + +(define-public java-powermock-api-easymock + (package + (inherit java-powermock-reflect) + (name "java-powermock-api-easymock") + (build-system ant-build-system) + (arguments + `(#:jar-name "java-powermock-api-easymock.jar" + #:jdk ,icedtea-8 + #:source-dir "powermock-api/powermock-api-easymock/src/main/java" + #:tests? #f; no tests + #:phases + (modify-phases %standard-phases + (add-before 'build 'fix-file + (lambda _ + ;; FIXME: This looks wrong, but it fixes a build error. + (with-directory-excursion "powermock-api/powermock-api-easymock" + (substitute* "src/main/java/org/powermock/api/easymock/PowerMock.java" + (("classLoader instanceof MockClassLoader") "false") + (("\\(\\(MockClassLoader\\) classLoader\\).*;") ";"))) + #t))))) + (inputs + `(("core" ,java-powermock-core) + ("easymock" ,java-easymock) + ("reflect" ,java-powermock-reflect) + ("support" ,java-powermock-api-support) + ("cglib" ,java-cglib))))) -- cgit v1.2.3