From: Federico Beffa <beffa@ieee.org>
To: alexvong1995@gmail.com
Cc: Guix-devel <guix-devel@gnu.org>
Subject: [PATCH] gnu: Add clojure.
Date: Wed, 24 Feb 2016 21:46:51 +0100 [thread overview]
Message-ID: <CAKrPhPP1uPEq0uX9Q9cbkA9nYgRHiA09tC-qP9A4fYSHtOJk-Q@mail.gmail.com> (raw)
Alex Vong <alexvong1995@gmail.com> writes:
> + #:phases
> + (modify-phases %standard-phases
> + (delete 'configure)
> + (replace 'unpack
> + (lambda _
> + (and (mkdir "clojure/")
> + (zero? (system* "unzip"
> + "-d" "clojure/"
> + (assoc-ref %build-inputs "source")))
> + (chdir "clojure/"))))
The return value of 'mkdir' and 'chdir' is unspecified. Therefore it
should not be used.
> + (add-after 'remove-jar 'unpack-submodule-sources
> + (lambda* (#:key inputs #:allow-other-keys)
> + (let ((unpack
> + (lambda (src-name)
> + (and (mkdir src-name)
> + (with-directory-excursion src-name
> + (zero? (system* "tar"
> + "zxvf"
> + (assoc-ref inputs src-name)
> + "--strip-components=1"))))))
> + (copy (lambda (src-name)
> + (copy-recursively
> + (string-append src-name "/src/main/clojure/")
> + (string-append "clojure-" ,version "/src/clj/")))))
> + (every (lambda (src)
> + (begin (unpack src)
> + (copy src)))
> + '("data-generators-src" "java-classpath-src"
> + "test-check-src" "test-generative-src"
> + "tools-namespace-src" "tools-reader-src")))))
Same.
Regards,
Fede
next reply other threads:[~2016-02-24 20:46 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-24 20:46 Federico Beffa [this message]
2016-02-26 11:56 ` [PATCH] gnu: Add clojure Alex Vong
2016-02-27 8:27 ` Federico Beffa
2016-02-27 11:51 ` Ricardo Wurmus
-- strict thread matches above, loose matches on Subject: below --
2016-07-06 12:54 Alex Vong
2016-07-13 15:49 ` Ricardo Wurmus
2016-07-14 13:22 ` Alex Vong
2016-07-24 21:15 ` Ricardo Wurmus
2016-07-26 12:45 ` Alex Vong
2016-07-26 20:00 ` Ricardo Wurmus
2016-07-27 6:47 ` Alex Vong
2016-08-15 12:20 ` Ricardo Wurmus
2016-08-16 13:28 ` Alex Vong
2016-08-16 18:45 ` Ricardo Wurmus
2016-08-16 18:56 ` Pjotr Prins
2016-02-24 5:03 Alex Vong
2016-02-24 11:33 ` Ricardo Wurmus
2016-02-24 15:45 ` Alex Vong
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=CAKrPhPP1uPEq0uX9Q9cbkA9nYgRHiA09tC-qP9A4fYSHtOJk-Q@mail.gmail.com \
--to=beffa@ieee.org \
--cc=alexvong1995@gmail.com \
--cc=guix-devel@gnu.org \
/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.