From: Andreas Enge <andreas@enge.fr>
To: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: [PATCH]: Add Ant.
Date: Sun, 15 Feb 2015 16:40:05 +0100 [thread overview]
Message-ID: <20150215154005.GA18600@debian> (raw)
In-Reply-To: <idjiofb6sub.fsf@bimsb-sys02.mdc-berlin.net>
Hello,
On Sun, Feb 15, 2015 at 02:54:54PM +0100, Ricardo Wurmus wrote:
> I already packaged ant-minimal with only the most basic features
> enabled, as most additional features depend on libraries that need ant
> in order to build them. Here's the latest version of my patch to add
> the ant-minimal package for which I'm waiting for a final OK before
> pushing
indeed, I was a bit confused since I remembered discussions about ANT_HOME,
which led me to believe that it had made it into the distribution. Please
do not hesitate to send out a ping if you do not get a reaction to a patch!
So a few comments. First of all, it builds. :-)
Then it is already enough to build my android project, apparently I do not
need a more advanced ant.
Using icedtea6 as a native input also seems to work. Actually, I set neither
ANT_HOME nor JAVA_HOME and have the impression that ant simply uses the
binaries it finds in the path.
On Mon, Feb 09, 2015 at 03:51:40PM +0100, Ricardo Wurmus wrote:
> +(define-public ant-minimal
If I understood correctly, you saw this essentially as a bootstrap-ant.
So once you add the "real" one, you may wish to hide this one with
"define" instead of "define-public".
> + `(#:tests? #f ; Tests require hamcrest-core, which needs Ant to build.
> + #:phases
> + (alist-cons-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.*)")))
Is this needed to prevent installation?
> + ;; disable tests to avoid dependecy on hamcrest-core
Typo, missing "n" in "depende_n_cy".
> + (substitute* "build.xml"
> + (("depends=\"jars,test-jar\"") "depends=\"jars\""))
How does this relate do disabling tests above? Are both needed?
> + (system* "bash" "bootstrap.sh"
> + (string-append "-Ddist.dir="
> + (assoc-ref %outputs "out"))))
Here you may wish to check the return value with "zero?" as this is
the last command in the phase.
Then, please push! This is indeed very useful for me.
Andreas
next prev parent reply other threads:[~2015-02-15 15:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-30 16:04 [PATCH]: Add Ant Ricardo Wurmus
2015-01-30 16:21 ` Ricardo Wurmus
2015-02-05 12:34 ` Ludovic Courtès
2015-02-06 15:51 ` Ricardo Wurmus
2015-02-07 22:55 ` Ludovic Courtès
2015-02-09 14:51 ` Ricardo Wurmus
2015-02-15 15:40 ` Andreas Enge [this message]
2015-02-15 16:13 ` Ricardo Wurmus
2015-02-15 16:21 ` Andreas Enge
2015-02-16 16:38 ` Ricardo Wurmus
2015-02-16 17:08 ` Andreas Enge
2015-02-05 12:32 ` Ludovic Courtès
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150215154005.GA18600@debian \
--to=andreas@enge.fr \
--cc=guix-devel@gnu.org \
--cc=ricardo.wurmus@mdc-berlin.de \
/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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).