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 17/22] gnu: clojure: Move below bootstrap packages.
Date: Mon, 22 May 2017 12:01:06 +0200	[thread overview]
Message-ID: <rbuzie5qkgt.fsf@gnu.org> (raw)
In-Reply-To: <20170517171905.7840-17-rekado@elephly.net>


Ricardo Wurmus writes:

> * gnu/packages/java.scm (clojure): Move package.
> ---
>  gnu/packages/java.scm | 282 +++++++++++++++++++++++++-------------------------
>  1 file changed, 141 insertions(+), 141 deletions(-)
>
> diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
> index 5d1db6218..c5fa67eef 100644
> --- a/gnu/packages/java.scm
> +++ b/gnu/packages/java.scm
> @@ -707,147 +707,6 @@ the standard javac executable.  The tool runs on JamVM instead of SableVM.")))
>         ("jamvm" ,jamvm)
>         ("classpath" ,classpath-devel)))))
>  
> -(define-public clojure
> -  (let* ((remove-archives '(begin
> -                             (for-each delete-file
> -                                       (find-files "." ".*\\.(jar|zip)"))
> -                             #t))
> -         (submodule (lambda (prefix version hash)
> -                      (origin
> -                        (method url-fetch)
> -                        (uri (string-append "https://github.com/clojure/"
> -                                            prefix version ".tar.gz"))
> -                        (sha256 (base32 hash))
> -                        (modules '((guix build utils)))
> -                        (snippet remove-archives)))))
> -    (package
> -      (name "clojure")
> -      (version "1.8.0")
> -      (source
> -       (origin
> -         (method url-fetch)
> -         (uri
> -          (string-append "http://repo1.maven.org/maven2/org/clojure/clojure/"
> -                         version "/clojure-" version ".zip"))
> -         (sha256
> -          (base32 "1nip095fz5c492sw15skril60i1vd21ibg6szin4jcvyy3xr6cym"))
> -         (modules '((guix build utils)))
> -         (snippet remove-archives)))
> -      (build-system ant-build-system)
> -      (arguments
> -       `(#:modules ((guix build ant-build-system)
> -                    (guix build utils)
> -                    (ice-9 ftw)
> -                    (ice-9 regex)
> -                    (srfi srfi-1)
> -                    (srfi srfi-26))
> -         #:test-target "test"
> -         #:phases
> -         (modify-phases %standard-phases
> -           (add-after 'unpack 'unpack-submodule-sources
> -             (lambda* (#:key inputs #:allow-other-keys)
> -               (for-each
> -                (lambda (name)
> -                  (mkdir-p name)
> -                  (with-directory-excursion name
> -                    (or (zero? (system* "tar"
> -                                        ;; Use xz for repacked tarball.
> -                                        "--xz"
> -                                        "--extract"
> -                                        "--verbose"
> -                                        "--file" (assoc-ref inputs name)
> -                                        "--strip-components=1"))
> -                        (error "failed to unpack tarball" name)))
> -                  (copy-recursively (string-append name "/src/main/clojure/")
> -                                    "src/clj/"))
> -                '("data-generators-src"
> -                  "java-classpath-src"
> -                  "test-check-src"
> -                  "test-generative-src"
> -                  "tools-namespace-src"
> -                  "tools-reader-src"))
> -               #t))
> -           ;; The javadoc target is not built by default.
> -           (add-after 'build 'build-doc
> -             (lambda _
> -               (zero? (system* "ant" "javadoc"))))
> -           ;; Needed since no install target is provided.
> -           (replace 'install
> -             (lambda* (#:key outputs #:allow-other-keys)
> -               (let ((java-dir (string-append (assoc-ref outputs "out")
> -                                              "/share/java/")))
> -                 ;; Install versioned to avoid collisions.
> -                 (install-file (string-append "clojure-" ,version ".jar")
> -                               java-dir)
> -                 #t)))
> -           ;; Needed since no install-doc target is provided.
> -           (add-after 'install 'install-doc
> -             (lambda* (#:key outputs #:allow-other-keys)
> -               (let ((doc-dir (string-append (assoc-ref outputs "out")
> -                                             "/share/doc/clojure-"
> -                                             ,version "/")))
> -                 (copy-recursively "doc/clojure" doc-dir)
> -                 (copy-recursively "target/javadoc/"
> -                                   (string-append doc-dir "javadoc/"))
> -                 (for-each (cut install-file <> doc-dir)
> -                           (filter (cut string-match
> -                                     ".*\\.(html|markdown|md|txt)"
> -                                     <>)
> -                                   (scandir "./")))
> -                 #t))))))
> -      ;; The native-inputs below are needed to run the tests.
> -      (native-inputs
> -       `(("data-generators-src"
> -          ,(submodule "data.generators/archive/data.generators-"
> -                      "0.1.2"
> -                      "0kki093jp4ckwxzfnw8ylflrfqs8b1i1wi9iapmwcsy328dmgzp1"))
> -         ("java-classpath-src"
> -          ,(submodule "java.classpath/archive/java.classpath-"
> -                      "0.2.3"
> -                      "0sjymly9xh1lkvwn5ygygpsfwz4dabblnlq0c9bx76rkvq62fyng"))
> -         ("test-check-src"
> -          ,(submodule "test.check/archive/test.check-"
> -                      "0.9.0"
> -                      "0p0mnyhr442bzkz0s4k5ra3i6l5lc7kp6ajaqkkyh4c2k5yck1md"))
> -         ("test-generative-src"
> -          ,(submodule "test.generative/archive/test.generative-"
> -                      "0.5.2"
> -                      "1pjafy1i7yblc7ixmcpfq1lfbyf3jaljvkgrajn70sws9xs7a9f8"))
> -         ("tools-namespace-src"
> -          ,(submodule "tools.namespace/archive/tools.namespace-"
> -                      "0.2.11"
> -                      "10baak8v0hnwz2hr33bavshm7y49mmn9zsyyms1dwjz45p5ymhy0"))
> -         ("tools-reader-src"
> -          ,(submodule "tools.reader/archive/tools.reader-"
> -                      "0.10.0"
> -                      "09i3lzbhr608h76mhdjm3932gg9xi8sflscla3c5f0v1nkc28cnr"))))
> -      (home-page "https://clojure.org/")
> -      (synopsis "Lisp dialect running on the JVM")
> -      (description "Clojure is a dynamic, general-purpose programming language,
> -combining the approachability and interactive development of a scripting
> -language with an efficient and robust infrastructure for multithreaded
> -programming.  Clojure is a compiled language, yet remains completely dynamic
> -– every feature supported by Clojure is supported at runtime.  Clojure
> -provides easy access to the Java frameworks, with optional type hints and type
> -inference, to ensure that calls to Java can avoid reflection.
> -
> -Clojure is a dialect of Lisp, and shares with Lisp the code-as-data philosophy
> -and a powerful macro system.  Clojure is predominantly a functional programming
> -language, and features a rich set of immutable, persistent data structures.
> -When mutable state is needed, Clojure offers a software transactional memory
> -system and reactive Agent system that ensure clean, correct, multithreaded
> -designs.")
> -      ;; Clojure is licensed under EPL1.0
> -      ;; ASM bytecode manipulation library is licensed under BSD-3
> -      ;; Guava Murmur3 hash implementation is licensed under APL2.0
> -      ;; src/clj/repl.clj is licensed under CPL1.0
> -      ;;
> -      ;; See readme.html or readme.txt for details.
> -      (license (list license:epl1.0
> -                     license:bsd-3
> -                     license:asl2.0
> -                     license:cpl1.0)))))
> -
>  (define-public ant
>    (package
>      (name "ant")
> @@ -1844,6 +1703,147 @@ IcedTea build harness.")
>  (define-public icedtea icedtea-7)
>  
>  \f
> +(define-public clojure
> +  (let* ((remove-archives '(begin
> +                             (for-each delete-file
> +                                       (find-files "." ".*\\.(jar|zip)"))
> +                             #t))
> +         (submodule (lambda (prefix version hash)
> +                      (origin
> +                        (method url-fetch)
> +                        (uri (string-append "https://github.com/clojure/"
> +                                            prefix version ".tar.gz"))
> +                        (sha256 (base32 hash))
> +                        (modules '((guix build utils)))
> +                        (snippet remove-archives)))))
> +    (package
> +      (name "clojure")
> +      (version "1.8.0")
> +      (source
> +       (origin
> +         (method url-fetch)
> +         (uri
> +          (string-append "http://repo1.maven.org/maven2/org/clojure/clojure/"
> +                         version "/clojure-" version ".zip"))
> +         (sha256
> +          (base32 "1nip095fz5c492sw15skril60i1vd21ibg6szin4jcvyy3xr6cym"))
> +         (modules '((guix build utils)))
> +         (snippet remove-archives)))
> +      (build-system ant-build-system)
> +      (arguments
> +       `(#:modules ((guix build ant-build-system)
> +                    (guix build utils)
> +                    (ice-9 ftw)
> +                    (ice-9 regex)
> +                    (srfi srfi-1)
> +                    (srfi srfi-26))
> +         #:test-target "test"
> +         #:phases
> +         (modify-phases %standard-phases
> +           (add-after 'unpack 'unpack-submodule-sources
> +             (lambda* (#:key inputs #:allow-other-keys)
> +               (for-each
> +                (lambda (name)
> +                  (mkdir-p name)
> +                  (with-directory-excursion name
> +                    (or (zero? (system* "tar"
> +                                        ;; Use xz for repacked tarball.
> +                                        "--xz"
> +                                        "--extract"
> +                                        "--verbose"
> +                                        "--file" (assoc-ref inputs name)
> +                                        "--strip-components=1"))
> +                        (error "failed to unpack tarball" name)))
> +                  (copy-recursively (string-append name "/src/main/clojure/")
> +                                    "src/clj/"))
> +                '("data-generators-src"
> +                  "java-classpath-src"
> +                  "test-check-src"
> +                  "test-generative-src"
> +                  "tools-namespace-src"
> +                  "tools-reader-src"))
> +               #t))
> +           ;; The javadoc target is not built by default.
> +           (add-after 'build 'build-doc
> +             (lambda _
> +               (zero? (system* "ant" "javadoc"))))
> +           ;; Needed since no install target is provided.
> +           (replace 'install
> +             (lambda* (#:key outputs #:allow-other-keys)
> +               (let ((java-dir (string-append (assoc-ref outputs "out")
> +                                              "/share/java/")))
> +                 ;; Install versioned to avoid collisions.
> +                 (install-file (string-append "clojure-" ,version ".jar")
> +                               java-dir)
> +                 #t)))
> +           ;; Needed since no install-doc target is provided.
> +           (add-after 'install 'install-doc
> +             (lambda* (#:key outputs #:allow-other-keys)
> +               (let ((doc-dir (string-append (assoc-ref outputs "out")
> +                                             "/share/doc/clojure-"
> +                                             ,version "/")))
> +                 (copy-recursively "doc/clojure" doc-dir)
> +                 (copy-recursively "target/javadoc/"
> +                                   (string-append doc-dir "javadoc/"))
> +                 (for-each (cut install-file <> doc-dir)
> +                           (filter (cut string-match
> +                                     ".*\\.(html|markdown|md|txt)"
> +                                     <>)
> +                                   (scandir "./")))
> +                 #t))))))
> +      ;; The native-inputs below are needed to run the tests.
> +      (native-inputs
> +       `(("data-generators-src"
> +          ,(submodule "data.generators/archive/data.generators-"
> +                      "0.1.2"
> +                      "0kki093jp4ckwxzfnw8ylflrfqs8b1i1wi9iapmwcsy328dmgzp1"))
> +         ("java-classpath-src"
> +          ,(submodule "java.classpath/archive/java.classpath-"
> +                      "0.2.3"
> +                      "0sjymly9xh1lkvwn5ygygpsfwz4dabblnlq0c9bx76rkvq62fyng"))
> +         ("test-check-src"
> +          ,(submodule "test.check/archive/test.check-"
> +                      "0.9.0"
> +                      "0p0mnyhr442bzkz0s4k5ra3i6l5lc7kp6ajaqkkyh4c2k5yck1md"))
> +         ("test-generative-src"
> +          ,(submodule "test.generative/archive/test.generative-"
> +                      "0.5.2"
> +                      "1pjafy1i7yblc7ixmcpfq1lfbyf3jaljvkgrajn70sws9xs7a9f8"))
> +         ("tools-namespace-src"
> +          ,(submodule "tools.namespace/archive/tools.namespace-"
> +                      "0.2.11"
> +                      "10baak8v0hnwz2hr33bavshm7y49mmn9zsyyms1dwjz45p5ymhy0"))
> +         ("tools-reader-src"
> +          ,(submodule "tools.reader/archive/tools.reader-"
> +                      "0.10.0"
> +                      "09i3lzbhr608h76mhdjm3932gg9xi8sflscla3c5f0v1nkc28cnr"))))
> +      (home-page "https://clojure.org/")
> +      (synopsis "Lisp dialect running on the JVM")
> +      (description "Clojure is a dynamic, general-purpose programming language,
> +combining the approachability and interactive development of a scripting
> +language with an efficient and robust infrastructure for multithreaded
> +programming.  Clojure is a compiled language, yet remains completely dynamic
> +– every feature supported by Clojure is supported at runtime.  Clojure
> +provides easy access to the Java frameworks, with optional type hints and type
> +inference, to ensure that calls to Java can avoid reflection.
> +
> +Clojure is a dialect of Lisp, and shares with Lisp the code-as-data philosophy
> +and a powerful macro system.  Clojure is predominantly a functional programming
> +language, and features a rich set of immutable, persistent data structures.
> +When mutable state is needed, Clojure offers a software transactional memory
> +system and reactive Agent system that ensure clean, correct, multithreaded
> +designs.")
> +      ;; Clojure is licensed under EPL1.0
> +      ;; ASM bytecode manipulation library is licensed under BSD-3
> +      ;; Guava Murmur3 hash implementation is licensed under APL2.0
> +      ;; src/clj/repl.clj is licensed under CPL1.0
> +      ;;
> +      ;; See readme.html or readme.txt for details.
> +      (license (list license:epl1.0
> +                     license:bsd-3
> +                     license:asl2.0
> +                     license:cpl1.0)))))
> +
>  (define-public java-swt
>    (package
>      (name "java-swt")

LGTM.

Kind regards,
Roel Janssen

  reply	other threads:[~2017-05-22 10:02 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
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 [this message]
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=rbuzie5qkgt.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.