[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
23/26: gnu: ant: Move after bootstrap packages.
From: |
Ricardo Wurmus |
Subject: |
23/26: gnu: ant: Move after bootstrap packages. |
Date: |
Mon, 22 May 2017 13:03:19 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit 5c7952fbf4b56684412b4c5e0751e4076e4f23da
Author: Ricardo Wurmus <address@hidden>
Date: Thu May 18 23:36:05 2017 +0200
gnu: ant: Move after bootstrap packages.
* gnu/packages/java.scm (ant): Move package.
---
gnu/packages/java.scm | 94 +++++++++++++++++++++++++--------------------------
1 file changed, 47 insertions(+), 47 deletions(-)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 238841a..abb2f62 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -701,53 +701,6 @@ the standard javac executable. The tool runs on JamVM
instead of SableVM.")))
("jamvm" ,jamvm)
("classpath" ,classpath-devel)))))
-(define-public ant
- (package (inherit ant-bootstrap)
- (name "ant")
- ;; The 1.9.x series is the last that can be built with GCJ. The 1.10.x
- ;; series requires Java 8.
- (version "1.9.9")
- (source (origin
- (method url-fetch)
- (uri (string-append "mirror://apache/ant/source/apache-ant-"
- version "-src.tar.gz"))
- (sha256
- (base32
- "1k28mka0m3isy9yr8gz84kz1f3f879rwaxrd44vdn9xbfwvwk86n"))
- (modules '((guix build utils)))
- (snippet
- '(begin
- (for-each delete-file
- (find-files "lib/optional" "\\.jar$"))
- #t))))
- (arguments
- (substitute-keyword-arguments (package-arguments ant-bootstrap)
- ((#:phases phases)
- `(modify-phases ,phases
- (add-after 'unpack 'remove-scripts
- ;; Remove bat / cmd scripts for DOS as well as the antRun and
runant
- ;; wrappers.
- (lambda _
- (for-each delete-file
- (find-files "src/script"
- "(.*\\.(bat|cmd)|runant.*|antRun.*)"))
- #t))
- (replace 'build
- (lambda _
- (setenv "JAVA_HOME" (string-append (assoc-ref %build-inputs
"gcj")
- "/lib/jvm"))
- ;; Disable tests to avoid dependency on hamcrest-core, which
needs
- ;; Ant to build. This is necessary in addition to disabling the
- ;; "check" phase, because the dependency on "test-jar" would
always
- ;; result in the tests to be run.
- (substitute* "build.xml"
- (("depends=\"jars,test-jar\"") "depends=\"jars\""))
- (zero? (system* "bash" "bootstrap.sh"
- (string-append "-Ddist.dir="
- (assoc-ref %outputs
"out"))))))))))
- (native-inputs
- `(("gcj" ,gcj)))))
-
;; The bootstrap JDK consisting of jamvm, classpath-devel,
;; ecj-javac-on-jamvm-wrapper-final cannot build Icedtea 2.x directly, because
;; it's written in Java 7. It can, however, build the unmaintained Icedtea
@@ -1692,6 +1645,53 @@ IcedTea build harness.")
(define-public icedtea icedtea-7)
+(define-public ant
+ (package (inherit ant-bootstrap)
+ (name "ant")
+ ;; The 1.9.x series is the last that can be built with GCJ. The 1.10.x
+ ;; series requires Java 8.
+ (version "1.9.9")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://apache/ant/source/apache-ant-"
+ version "-src.tar.gz"))
+ (sha256
+ (base32
+ "1k28mka0m3isy9yr8gz84kz1f3f879rwaxrd44vdn9xbfwvwk86n"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ (for-each delete-file
+ (find-files "lib/optional" "\\.jar$"))
+ #t))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments ant-bootstrap)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-after 'unpack 'remove-scripts
+ ;; Remove bat / cmd scripts for DOS as well as the antRun and
runant
+ ;; wrappers.
+ (lambda _
+ (for-each delete-file
+ (find-files "src/script"
+ "(.*\\.(bat|cmd)|runant.*|antRun.*)"))
+ #t))
+ (replace 'build
+ (lambda _
+ (setenv "JAVA_HOME" (string-append (assoc-ref %build-inputs
"gcj")
+ "/lib/jvm"))
+ ;; Disable tests to avoid dependency on hamcrest-core, which
needs
+ ;; Ant to build. This is necessary in addition to disabling the
+ ;; "check" phase, because the dependency on "test-jar" would
always
+ ;; result in the tests to be run.
+ (substitute* "build.xml"
+ (("depends=\"jars,test-jar\"") "depends=\"jars\""))
+ (zero? (system* "bash" "bootstrap.sh"
+ (string-append "-Ddist.dir="
+ (assoc-ref %outputs
"out"))))))))))
+ (native-inputs
+ `(("gcj" ,gcj)))))
+
(define-public clojure
(let* ((remove-archives '(begin
(for-each delete-file
- 07/26: gnu: Add ant-bootstrap., (continued)
- 07/26: gnu: Add ant-bootstrap., Ricardo Wurmus, 2017/05/22
- 12/26: gnu: Add classpath-jamvm-wrappers., Ricardo Wurmus, 2017/05/22
- 06/26: gnu: Add sablevm., Ricardo Wurmus, 2017/05/22
- 03/26: gnu: Add r-edaseq., Ricardo Wurmus, 2017/05/22
- 05/26: gnu: Add sablevm-classpath., Ricardo Wurmus, 2017/05/22
- 15/26: gnu: Add jamvm., Ricardo Wurmus, 2017/05/22
- 04/26: gnu: Add jikes., Ricardo Wurmus, 2017/05/22
- 11/26: gnu: Add jamvm-bootstrap., Ricardo Wurmus, 2017/05/22
- 16/26: gnu: Add ecj-javac-on-jamvm-wrapper-final., Ricardo Wurmus, 2017/05/22
- 24/26: gnu: Add ant/java8., Ricardo Wurmus, 2017/05/22
- 23/26: gnu: ant: Move after bootstrap packages.,
Ricardo Wurmus <=
- 22/26: gnu: ant: Delete bundled jars., Ricardo Wurmus, 2017/05/22
- 18/26: gnu: icedtea-7: Use icedtea-6 for bootstrapping., Ricardo Wurmus, 2017/05/22
- 17/26: gnu: Add icedtea-6., Ricardo Wurmus, 2017/05/22
- 26/26: gnu: Remove GCJ., Ricardo Wurmus, 2017/05/22
- 08/26: gnu: Add ecj-bootstrap., Ricardo Wurmus, 2017/05/22
- 13/26: gnu: Add ecj-javac-on-jamvm-wrapper., Ricardo Wurmus, 2017/05/22
- 19/26: gnu: java-swt: Move below the bootstrap packages., Ricardo Wurmus, 2017/05/22
- 20/26: gnu: clojure: Move below bootstrap packages., Ricardo Wurmus, 2017/05/22
- 25/26: gnu: ant: Implement in terms of ant/java8., Ricardo Wurmus, 2017/05/22
- 09/26: gnu: Add ecj-javac-wrapper., Ricardo Wurmus, 2017/05/22