[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/06: gnu: Add mozjs-24 (Mozilla SpiderMonkey 24).
From: |
??? |
Subject: |
04/06: gnu: Add mozjs-24 (Mozilla SpiderMonkey 24). |
Date: |
Sun, 08 Nov 2015 13:47:10 +0000 |
iyzsong pushed a commit to branch master
in repository guix.
commit cefdcb3801dad656c8b711979c16b34313d57dc7
Author: 宋文武 <address@hidden>
Date: Sun Nov 8 21:34:58 2015 +0800
gnu: Add mozjs-24 (Mozilla SpiderMonkey 24).
* gnu/packages/gnuzilla.scm (mozjs-24): New variable.
---
gnu/packages/gnuzilla.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 files changed, 38 insertions(+), 0 deletions(-)
diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index 49e3b31..f32c947 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -92,6 +92,44 @@
in C/C++.")
(license license:mpl2.0))) ; and others for some files
+(define-public mozjs-24
+ (package (inherit mozjs)
+ (name "mozjs")
+ (version "24.2.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://ftp.mozilla.org/pub/mozilla.org/js/"
+ name "-" version ".tar.bz2"))
+ (sha256
+ (base32
+ "1n1phk8r3l8icqrrap4czplnylawa0ddc2cc4cgdz46x3lrkybz6"))))
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (replace
+ 'configure
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (chdir "js/src")
+ ;; configure fails if it is follwed by SHELL and CONFIG_SHELL
+ (setenv "SHELL" (which "sh"))
+ (setenv "CONFIG_SHELL" (which "sh"))
+ (zero? (system* "./configure"
+ (string-append "--prefix=" out)
+ "--with-system-nspr"
+ "--enable-system-ffi"
+ "--enable-threadsafe"))))))))
+ (native-inputs
+ `(("perl" ,perl)
+ ("pkg-config" ,pkg-config)
+ ("python" ,python-2)))
+ (propagated-inputs
+ `(("nspr" ,nspr))) ; in the Requires.private field of mozjs-24.pc
+ (inputs
+ `(("libffi" ,libffi)
+ ("zlib" ,zlib)))))
+
(define-public nspr
(package
(name "nspr")
- branch master updated (ae7ffa9 -> c3b9d75), ???, 2015/11/08
- 01/06: gnu: gnome-desktop: Update to 3.18.1., ???, 2015/11/08
- 02/06: gnu: gnome-themes-standard: Update to 3.18.0., ???, 2015/11/08
- 04/06: gnu: Add mozjs-24 (Mozilla SpiderMonkey 24).,
??? <=
- 05/06: gnu: Add gjs., ???, 2015/11/08
- 06/06: gnu: evince: Update to 3.18.1., ???, 2015/11/08
- 03/06: gnu: Add gnome-session., ???, 2015/11/08