gnu: ldc-bootstrap: Update ldc to 0.17.4.

* gnu/packages/ldc.scm (ldc-bootstrap): Update ldc to 0.17.4.
This commit is contained in:
Danny Milosavljevic 2017-06-11 01:48:35 +02:00
parent 5fa7cc5335
commit 5144c044c3
No known key found for this signature in database
GPG Key ID: E71A35542C30BAA5
1 changed files with 98 additions and 98 deletions

View File

@ -77,105 +77,105 @@ and freshness without requiring additional information from the user.")
(license license:boost1.0))) (license license:boost1.0)))
(define-public ldc-bootstrap (define-public ldc-bootstrap
(package (let ((runtime-version "0.17.3"))
(name "ldc") (package
(version "0.17.3") (name "ldc")
(source (origin (version "0.17.4")
(method url-fetch) (source (origin
(uri (string-append (method url-fetch)
"https://github.com/ldc-developers/ldc/archive/v" (uri (string-append
version ".tar.gz")) "https://github.com/ldc-developers/ldc/archive/v"
(file-name (string-append name "-" version ".tar.gz")) version ".tar.gz"))
(sha256 (file-name (string-append name "-" version ".tar.gz"))
(base32 (sha256
"135rgwwk82ccqp4n3fhqz4696jmvip90fg5ql2kccq5h1r71gb82")))) (base32
(build-system cmake-build-system) "1kw0j378k6bh0k66dvx99bjq8ilp8bb24w3jrmibn8rhmqv0d5q8"))))
(supported-systems '("x86_64-linux" "i686-linux" "armhf-linux")) (build-system cmake-build-system)
(arguments (supported-systems '("x86_64-linux" "i686-linux" "armhf-linux"))
`(#:phases (arguments
(modify-phases %standard-phases `(#:phases
(add-after 'unpack 'unpack-submodule-sources (modify-phases %standard-phases
(lambda* (#:key inputs #:allow-other-keys) (add-after 'unpack 'unpack-submodule-sources
(let ((unpack (lambda (source target) (lambda* (#:key inputs #:allow-other-keys)
(with-directory-excursion target (let ((unpack (lambda (source target)
(zero? (system* "tar" "xvf" (with-directory-excursion target
(assoc-ref inputs source) (zero? (system* "tar" "xvf"
"--strip-components=1")))))) (assoc-ref inputs source)
(and (unpack "phobos-src" "runtime/phobos") "--strip-components=1"))))))
(unpack "druntime-src" "runtime/druntime") (and (unpack "phobos-src" "runtime/phobos")
(unpack "dmd-testsuite-src" "tests/d2/dmd-testsuite"))))) (unpack "druntime-src" "runtime/druntime")
(add-after 'unpack-submodule-sources 'patch-dmd2 (unpack "dmd-testsuite-src" "tests/d2/dmd-testsuite")))))
(lambda* (#:key inputs #:allow-other-keys) (add-after 'unpack-submodule-sources 'patch-dmd2
(substitute* "dmd2/root/port.c" (lambda* (#:key inputs #:allow-other-keys)
((" ::isnan") " isnan") (substitute* "dmd2/root/port.c"
((" ::isinf") " isinf") ((" ::isnan") " isnan")
(("#undef isnan") "") ((" ::isinf") " isinf")
(("#undef isinf") "")) (("#undef isnan") "")
#t)) (("#undef isinf") ""))
(add-after 'unpack-submodule-sources 'patch-phobos #t))
(lambda* (#:key inputs #:allow-other-keys) (add-after 'unpack-submodule-sources 'patch-phobos
(substitute* "runtime/phobos/std/process.d" (lambda* (#:key inputs #:allow-other-keys)
(("/bin/sh") (which "sh")) (substitute* "runtime/phobos/std/process.d"
(("echo") (which "echo"))) (("/bin/sh") (which "sh"))
(substitute* "runtime/phobos/std/datetime.d" (("echo") (which "echo")))
(("/usr/share/zoneinfo/") (substitute* "runtime/phobos/std/datetime.d"
(string-append (assoc-ref inputs "tzdata") "/share/zoneinfo"))) (("/usr/share/zoneinfo/")
(substitute* "tests/d2/dmd-testsuite/Makefile" (string-append (assoc-ref inputs "tzdata") "/share/zoneinfo")))
(("/bin/bash") (which "bash"))) (substitute* "tests/d2/dmd-testsuite/Makefile"
;; FIXME: this test cannot be linked. (("/bin/bash") (which "bash")))
(delete-file "tests/d2/dmd-testsuite/runnable/cppa.d") ;; FIXME: this test cannot be linked.
#t))))) (delete-file "tests/d2/dmd-testsuite/runnable/cppa.d")
(inputs #t)))))
`(("libconfig" ,libconfig) (inputs
("libedit" ,libedit) `(("libconfig" ,libconfig)
("tzdata" ,tzdata) ("libedit" ,libedit)
("zlib" ,zlib))) ("tzdata" ,tzdata)
(native-inputs ("zlib" ,zlib)))
`(("llvm" ,llvm) (native-inputs
("clang" ,clang) `(("llvm" ,llvm)
("python-lit" ,python-lit) ("clang" ,clang)
("python-wrapper" ,python-wrapper) ("python-lit" ,python-lit)
("unzip" ,unzip) ("python-wrapper" ,python-wrapper)
("phobos-src" ("unzip" ,unzip)
,(origin ("phobos-src"
(method url-fetch) ,(origin
(uri (string-append (method url-fetch)
"https://github.com/ldc-developers/phobos/archive/ldc-v" (uri (string-append
version ".tar.gz")) "https://github.com/ldc-developers/phobos/archive/ldc-v"
(sha256 runtime-version ".tar.gz"))
(base32 (sha256
"0qywnvnp019mmmr74aw90ir9f03iz0hc7cgzna609agsar0b27jl")) (base32
(patches (search-patches "ldc-disable-tests.patch")))) "0qywnvnp019mmmr74aw90ir9f03iz0hc7cgzna609agsar0b27jl"))
("druntime-src" (patches (search-patches "ldc-disable-tests.patch"))))
,(origin ("druntime-src"
(method url-fetch) ,(origin
(uri (string-append (method url-fetch)
"https://github.com/ldc-developers/druntime/archive/ldc-v" (uri (string-append
version ".tar.gz")) "https://github.com/ldc-developers/druntime/archive/ldc-v"
(sha256 runtime-version ".tar.gz"))
(base32 (sha256
"0z418n6x2fxac07sxpi4rl69069qiym4w6r9sjppn91q58qh8hjs")))) (base32
("dmd-testsuite-src" "0z418n6x2fxac07sxpi4rl69069qiym4w6r9sjppn91q58qh8hjs"))))
,(origin ("dmd-testsuite-src"
(method url-fetch) ,(origin
(uri (string-append (method url-fetch)
"https://github.com/ldc-developers/dmd-testsuite/archive/ldc-v" (uri (string-append
version ".tar.gz")) "https://github.com/ldc-developers/dmd-testsuite/archive/ldc-v"
(sha256 runtime-version ".tar.gz"))
(base32 (sha256
"196mkfax5y3yqm3gz7jhqhnkjwrvr2m4a8nc9k41l0511ldzsk9x")))))) (base32
(home-page "http://wiki.dlang.org/LDC") "196mkfax5y3yqm3gz7jhqhnkjwrvr2m4a8nc9k41l0511ldzsk9x"))))))
(synopsis "LLVM compiler for the D programming language") (home-page "http://wiki.dlang.org/LDC")
(description (synopsis "LLVM compiler for the D programming language")
"LDC is a compiler for the D programming language. It is based on the (description
"LDC is a compiler for the D programming language. It is based on the
latest DMD frontend and uses LLVM as backend.") latest DMD frontend and uses LLVM as backend.")
;; Most of the code is released under BSD-3, except for code originally ;; Most of the code is released under BSD-3, except for code originally
;; written for GDC, which is released under GPLv2+, and the DMD frontend, ;; written for GDC, which is released under GPLv2+, and the DMD frontend,
;; which is released under the "Boost Software License version 1.0". ;; which is released under the "Boost Software License version 1.0".
(license (list license:bsd-3 (license (list license:bsd-3
license:gpl2+ license:gpl2+
license:boost1.0)))) license:boost1.0)))))
(define-public ldc (define-public ldc
;; The phobos, druntime and dmd-testsuite dependencies do not have a newer ;; The phobos, druntime and dmd-testsuite dependencies do not have a newer