[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#33215] [PATCH 04/11] gnu: clojure: Use (guix build java-utils) to s
From: |
Alex Vong |
Subject: |
[bug#33215] [PATCH 04/11] gnu: clojure: Use (guix build java-utils) to simplify build phases. |
Date: |
Wed, 31 Oct 2018 14:08:38 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
From 29b927ed0fc2ed932c37e1fb188e35e300fc3aeb Mon Sep 17 00:00:00 2001
From: Alex Vong <address@hidden>
Date: Sun, 14 Oct 2018 02:52:41 +0800
Subject: [PATCH 04/11] gnu: clojure: Use (guix build java-utils) to simplify
build phases.
* gnu/packages/lisp.scm (clojure)[arguments]: Use 'ant-build-javadoc',
'install-jars' and 'install-javadoc' in build phases.
---
gnu/packages/lisp.scm | 24 ++++++------------------
1 file changed, 6 insertions(+), 18 deletions(-)
diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm
index c42878fd3..c451aa4c1 100644
--- a/gnu/packages/lisp.scm
+++ b/gnu/packages/lisp.scm
@@ -610,10 +610,10 @@ interface.")
(build-system ant-build-system)
(arguments
`(#:modules ((guix build ant-build-system)
+ (guix build java-utils)
(guix build utils)
(ice-9 ftw)
(ice-9 regex)
- (srfi srfi-1)
(srfi srfi-26))
#:test-target "test"
#:phases
@@ -637,34 +637,22 @@ interface.")
(substitute* "build.xml"
(("<attribute name=\"Class-Path\" value=\".\"/>") ""))
#t))
- ;; The javadoc target is not built by default.
- (add-after 'build 'build-doc
- (lambda _
- (invoke "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 'build 'build-javadoc ant-build-javadoc)
+ (replace 'install (install-jars "./"))
(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))))))
+ #t)))
+ (add-after 'install-doc 'install-javadoc
+ (install-javadoc "target/javadoc/")))))
(native-inputs libraries)
(home-page "https://clojure.org/")
(synopsis "Lisp dialect running on the JVM")
--
2.19.1
signature.asc
Description: PGP signature
- [bug#33215] [PATCH 00/11] build-system: Add 'clojure-build-system'., Alex Vong, 2018/10/31
- [bug#33215] [PATCH 01/11] gnu: clojure: Move from java to lisp., Alex Vong, 2018/10/31
- [bug#33215] [PATCH 02/11] gnu: clojure: Remove 'remove-archives' snippet., Alex Vong, 2018/10/31
- [bug#33215] [PATCH 03/11] gnu: clojure: Refactor to ensure there's a single list of libraries., Alex Vong, 2018/10/31
- [bug#33215] [PATCH 04/11] gnu: clojure: Use (guix build java-utils) to simplify build phases.,
Alex Vong <=
- [bug#33215] [PATCH 05/11] guix: Add clojure-utils., Alex Vong, 2018/10/31
- [bug#33215] [PATCH 06/11] build-system: Add 'clojure-build-system'., Alex Vong, 2018/10/31
- [bug#33215] [PATCH 08/11] gnu: Add clojure-core-match., Alex Vong, 2018/10/31
- [bug#33215] [PATCH 07/11] gnu: Add clojure-instaparse., Alex Vong, 2018/10/31
- [bug#33215] [PATCH 09/11] gnu: Add clojure-algo-generic., Alex Vong, 2018/10/31
- [bug#33215] [PATCH 10/11] gnu: Add clojure-tools-macro., Alex Vong, 2018/10/31
- [bug#33215] [PATCH 11/11] gnu: Add clojure-algo-monads., Alex Vong, 2018/10/31