all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Roel Janssen <roel@gnu.org>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: 26966@debbugs.gnu.org
Subject: bug#26966: [PATCH 04/22] gnu: Add ant-bootstrap.
Date: Thu, 18 May 2017 12:38:21 +0200	[thread overview]
Message-ID: <rbu1srm30wy.fsf@gnu.org> (raw)
In-Reply-To: <20170517171905.7840-4-rekado@elephly.net>


Ricardo Wurmus writes:

> * gnu/packages/java.scm (ant-bootstrap): New variable.
> ---
>  gnu/packages/java.scm | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 68 insertions(+)
>
> diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
> index d1efc3c4c..b12d641ff 100644
> --- a/gnu/packages/java.scm
> +++ b/gnu/packages/java.scm
> @@ -186,6 +186,74 @@ etc.).  SableVM is no longer maintained.
>  This package provides the virtual machine.")
>      (license license:lgpl2.1+)))
>  
> +(define ant-bootstrap
> +  (package
> +    (name "ant-bootstrap")
> +    ;; The 1.10.x series requires Java 8.  1.9.0 and later use generics, which
> +    ;; are not supported.  The 1.8.x series is the last to use only features
> +    ;; supported by Jikes, but it cannot seem to be built with sablevm.
> +    (version "1.7.1")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (string-append "http://archive.apache.org/dist/"
> +                                  "ant/source/apache-ant-"
> +                                  version "-src.tar.bz2"))
> +              (sha256
> +               (base32
> +                "19pvqvgkxgpgsqm4lvbki5sm0z84kxmykdqicvfad47gc1r9mi2d"))))
> +    (build-system gnu-build-system)
> +    (arguments
> +     `(#:tests? #f ; no "check" target
> +       #:phases
> +       (modify-phases %standard-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))
> +         (delete 'configure)
> +         (replace 'build
> +           (lambda* (#:key inputs #:allow-other-keys)
> +             (setenv "JAVA_HOME"
> +                     (string-append (assoc-ref inputs "sablevm")
> +                                    "/lib/sablevm"))
> +             (setenv "JAVACMD"
> +                     (string-append (assoc-ref inputs "sablevm")
> +                                    "/bin/java-sablevm"))
> +             (setenv "JAVAC"
> +                     (string-append (assoc-ref inputs "sablevm")
> +                                    "/bin/javac-sablevm"))
> +
> +             ;; Use jikes instead of javac for <javac ...> tags in build.xml
> +             (setenv "ANT_OPTS" "-Dbuild.compiler=jikes")
> +
> +             ;; jikes produces lots of warnings, but they are not very
> +             ;; interesting, so we silence them.
> +             (setenv "$BOOTJAVAC_OPTS" "-nowarn")

Jikes!  Hehe, sorry. :)

> +
> +             ;; Disable tests because we are bootstrapping and thus don't have
> +             ;; any of the dependencies required to build and run the tests.
> +             (substitute* "build.xml"
> +               (("depends=\"jars,test-jar\"") "depends=\"jars\""))
> +             (zero? (system* "bash" "bootstrap.sh"
> +                             (string-append "-Ddist.dir="
> +                                            (assoc-ref %outputs "out"))))))
> +         (delete 'install))))
> +    (native-inputs
> +     `(("jikes" ,jikes)
> +       ("sablevm" ,sablevm)))
> +    (home-page "http://ant.apache.org")
> +    (synopsis "Build tool for Java")
> +    (description
> +     "Ant is a platform-independent build tool for Java.  It is similar to
> +make but is implemented using the Java language, requires the Java platform,
> +and is best suited to building Java projects.  Ant uses XML to describe the
> +build process and its dependencies, whereas Make uses Makefile format.")
> +    (license license:asl2.0)))
> +
>  (define-public java-swt
>    (package
>      (name "java-swt")

LGTM!

Kind regards,
Roel Janssen

  reply	other threads:[~2017-05-18 10:39 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-17 17:06 bug#26966: New Java bootstrap Ricardo Wurmus
2017-05-17 17:18 ` bug#26966: [PATCH 01/22] gnu: Add jikes Ricardo Wurmus
2017-05-17 17:18   ` bug#26966: [PATCH 02/22] gnu: Add sablevm-classpath Ricardo Wurmus
2017-05-18 10:35     ` Roel Janssen
2017-05-17 17:18   ` bug#26966: [PATCH 03/22] gnu: Add sablevm Ricardo Wurmus
2017-05-18 10:34     ` Roel Janssen
2017-05-17 17:18   ` bug#26966: [PATCH 04/22] gnu: Add ant-bootstrap Ricardo Wurmus
2017-05-18 10:38     ` Roel Janssen [this message]
2017-05-17 17:18   ` bug#26966: [PATCH 05/22] gnu: Add ecj-bootstrap Ricardo Wurmus
2017-05-22  7:36     ` Roel Janssen
2017-05-17 17:18   ` bug#26966: [PATCH 06/22] gnu: Add ecj-javac-wrapper Ricardo Wurmus
2017-05-22  7:38     ` Roel Janssen
2017-05-22  8:55       ` Ludovic Courtès
2017-05-22 16:28         ` Ricardo Wurmus
2017-05-17 17:18   ` bug#26966: [PATCH 07/22] gnu: Add classpath Ricardo Wurmus
2017-05-22  7:58     ` Roel Janssen
2017-05-22 17:00       ` Ricardo Wurmus
2017-05-17 17:18   ` bug#26966: [PATCH 08/22] gnu: Add jamvm-bootstrap Ricardo Wurmus
2017-05-22  7:59     ` Roel Janssen
2017-05-17 17:18   ` bug#26966: [PATCH 09/22] gnu: Add classpath-jamvm-wrappers Ricardo Wurmus
2017-05-22  8:05     ` Roel Janssen
2017-05-17 17:18   ` bug#26966: [PATCH 10/22] gnu: Add ecj-javac-on-jamvm-wrapper Ricardo Wurmus
2017-05-22  9:38     ` Roel Janssen
2017-05-22 17:01       ` Ricardo Wurmus
2017-05-17 17:18   ` bug#26966: [PATCH 11/22] gnu: Add classpath-devel Ricardo Wurmus
2017-05-22  9:38     ` Roel Janssen
2017-05-17 17:18   ` bug#26966: [PATCH 12/22] gnu: Add jamvm Ricardo Wurmus
2017-05-22  9:39     ` Roel Janssen
2017-05-17 17:18   ` bug#26966: [PATCH 13/22] gnu: Add ecj-javac-on-jamvm-wrapper-final Ricardo Wurmus
2017-05-22  9:39     ` Roel Janssen
2017-05-17 17:18   ` bug#26966: [PATCH 14/22] gnu: Add icedtea-6 Ricardo Wurmus
2017-05-22  9:43     ` Roel Janssen
2017-05-22 14:33       ` Ricardo Wurmus
2017-05-17 17:18   ` bug#26966: [PATCH 15/22] gnu: icedtea-7: Use icedtea-6 for bootstrapping Ricardo Wurmus
2017-05-18 10:09     ` Ricardo Wurmus
2017-05-17 17:18   ` bug#26966: [PATCH 16/22] gnu: java-swt: Move below the bootstrap packages Ricardo Wurmus
2017-05-22 10:00     ` Roel Janssen
2017-05-17 17:19   ` bug#26966: [PATCH 17/22] gnu: clojure: Move below " Ricardo Wurmus
2017-05-22 10:01     ` Roel Janssen
2017-05-17 17:19   ` bug#26966: [PATCH 18/22] gnu: ant-bootstrap: Do not delete scripts Ricardo Wurmus
2017-05-18 10:54     ` Roel Janssen
2017-05-18 19:57       ` Ricardo Wurmus
2017-05-17 17:19   ` bug#26966: [PATCH 19/22] gnu: ant: Inherit from ant-bootstrap Ricardo Wurmus
2017-05-22 10:02     ` Roel Janssen
2017-05-17 17:19   ` bug#26966: [PATCH 20/22] gnu: ant: Delete bundled jars Ricardo Wurmus
2017-05-18 10:31     ` Roel Janssen
2017-05-17 17:19   ` bug#26966: [PATCH 21/22] gnu: ant: Update to 1.10.1 Ricardo Wurmus
2017-05-18  9:31     ` Roel Janssen
2017-05-18 20:00       ` Ricardo Wurmus
2017-05-18 21:23         ` Ricardo Wurmus
2017-05-17 17:19   ` bug#26966: [PATCH 22/22] gnu: Remove GCJ Ricardo Wurmus
2017-05-18  9:29     ` Roel Janssen
2017-05-18 10:03       ` Ricardo Wurmus
2017-05-18 10:28         ` Roel Janssen
2017-05-18 11:49         ` Ludovic Courtès
2017-05-18  9:25   ` bug#26966: [PATCH 01/22] gnu: Add jikes Roel Janssen
2017-05-18 11:54   ` Ludovic Courtès
2017-05-18  9:24 ` bug#26966: New Java bootstrap Roel Janssen
2017-05-18 11:47 ` Ludovic Courtès
2017-05-22 10:22 ` Roel Janssen
2017-05-22 17:03   ` Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=rbu1srm30wy.fsf@gnu.org \
    --to=roel@gnu.org \
    --cc=26966@debbugs.gnu.org \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.