diff options
Diffstat (limited to 'gnu/packages/java.scm')
| -rw-r--r-- | gnu/packages/java.scm | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 1e29b2eb228..0add31b07f3 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm | |||
| @@ -2099,6 +2099,71 @@ and is best suited to building Java projects. Ant uses XML to describe the | |||
| 2099 | build process and its dependencies, whereas Make uses Makefile format.") | 2099 | build process and its dependencies, whereas Make uses Makefile format.") |
| 2100 | (license license:asl2.0))) | 2100 | (license license:asl2.0))) |
| 2101 | 2101 | ||
| 2102 | (define-public ant-1.10.14 | ||
| 2103 | (package | ||
| 2104 | (inherit ant/java8) | ||
| 2105 | (name "ant") | ||
| 2106 | (version "1.10.14") | ||
| 2107 | (source | ||
| 2108 | (origin | ||
| 2109 | (method url-fetch) | ||
| 2110 | (uri (string-append "mirror://apache/ant/source/apache-ant-" | ||
| 2111 | version "-src.tar.gz")) | ||
| 2112 | (sha256 | ||
| 2113 | (base32 "0m0vcazy1634nra8mcs3hvvf49avnbxf8f5y1icn5syi8hgy6pws")) | ||
| 2114 | (modules '((guix build utils))) | ||
| 2115 | (snippet | ||
| 2116 | '(begin | ||
| 2117 | (for-each delete-file | ||
| 2118 | (find-files "lib/optional" "\\.jar$")) | ||
| 2119 | #t)))) | ||
| 2120 | (arguments | ||
| 2121 | (substitute-keyword-arguments (package-arguments ant/java8) | ||
| 2122 | ((#:phases phases) | ||
| 2123 | #~(modify-phases #$phases | ||
| 2124 | (replace 'remove-scripts | ||
| 2125 | (lambda _ | ||
| 2126 | (for-each delete-file | ||
| 2127 | (find-files "src/script" ".*\\.(bat|cmd)$")))) | ||
| 2128 | (add-after 'build 'install-distribution-files | ||
| 2129 | (lambda* (#:key outputs #:allow-other-keys) | ||
| 2130 | (let* ((out (assoc-ref outputs "out")) | ||
| 2131 | (bin-dir (string-append out "/bin")) | ||
| 2132 | (etc-dir (string-append out "/etc")) | ||
| 2133 | (checkstyle-dir (string-append etc-dir "/checkstyle"))) | ||
| 2134 | (for-each | ||
| 2135 | (lambda (file) | ||
| 2136 | (copy-file (string-append "src/script/" file) | ||
| 2137 | (string-append bin-dir "/" file)) | ||
| 2138 | (chmod (string-append bin-dir "/" file) #o755)) | ||
| 2139 | '("antRun" "antRun.pl" "runant.pl" "runant.py")) | ||
| 2140 | (mkdir-p checkstyle-dir) | ||
| 2141 | (for-each | ||
| 2142 | (lambda (file) | ||
| 2143 | (copy-file (string-append "src/etc/" file) | ||
| 2144 | (string-append etc-dir "/" file))) | ||
| 2145 | '("junit-frames.xsl" | ||
| 2146 | "junit-noframes.xsl" | ||
| 2147 | "junit-frames-xalan1.xsl" | ||
| 2148 | "coverage-frames.xsl" | ||
| 2149 | "maudit-frames.xsl" | ||
| 2150 | "mmetrics-frames.xsl" | ||
| 2151 | "changelog.xsl" | ||
| 2152 | "jdepend.xsl" | ||
| 2153 | "jdepend-frames.xsl" | ||
| 2154 | "log.xsl" | ||
| 2155 | "tagdiff.xsl")) | ||
| 2156 | (for-each | ||
| 2157 | (lambda (file) | ||
| 2158 | (copy-file (string-append "src/etc/checkstyle/" file) | ||
| 2159 | (string-append checkstyle-dir "/" file))) | ||
| 2160 | '("checkstyle-frames-sortby-check.xsl" | ||
| 2161 | "checkstyle-frames.xsl" | ||
| 2162 | "checkstyle-text.xsl" | ||
| 2163 | "checkstyle-xdoc.xsl")) | ||
| 2164 | (copy-file "build/lib/ant-bootstrap.jar" | ||
| 2165 | (string-append etc-dir "/ant-bootstrap.jar"))))))))))) | ||
| 2166 | |||
| 2102 | ;; The 1.9.x series is the last that can be built with GCJ. The 1.10.x series | 2167 | ;; The 1.9.x series is the last that can be built with GCJ. The 1.10.x series |
| 2103 | ;; requires Java 8. | 2168 | ;; requires Java 8. |
| 2104 | (define-public ant | 2169 | (define-public ant |
