gnu: sassc: Update to 3.4.5.

* gnu/packages/web.scm (sassc): Update to 3.4.5.
[arguments]: Add PREFIX to make-flags, disable tests, remove custom install
phase.
This commit is contained in:
Ricardo Wurmus 2017-08-17 17:56:40 +02:00
parent f30ff28b96
commit 8a39e4a553
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC

@ -933,7 +933,7 @@ minimum to provide high performance operation.")
(define-public sassc (define-public sassc
;; libsass must be statically linked and it isn't included in the sassc ;; libsass must be statically linked and it isn't included in the sassc
;; release tarballs, hence this odd package recipe. ;; release tarballs, hence this odd package recipe.
(let* ((version "3.2.5") (let* ((version "3.4.5")
(libsass (libsass
(origin (origin
(method url-fetch) (method url-fetch)
@ -943,7 +943,7 @@ minimum to provide high performance operation.")
(file-name (string-append "libsass-" version ".tar.gz")) (file-name (string-append "libsass-" version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"1x25k6p1s1yzsdpzb7bzh8japilmi1mk3z96q66pycbinj9z9is4"))))) "1j22138l5ymqjfj5zan9d2hipa3ahjmifgpjahqy1smlg5sb837x")))))
(package (package
(name "sassc") (name "sassc")
(version version) (version version)
@ -954,11 +954,16 @@ minimum to provide high performance operation.")
(file-name (string-append "sassc-" version ".tar.gz")) (file-name (string-append "sassc-" version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"1xf3w75w840rj0nx375rxi7mcv1ngqqq8p3zrzjlyx8jfpnldmv5")))) "1xk4kmmvziz9sal3swpqa10q0s289xjpcz8aggmly8mvxvmngsi9"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:make-flags '("CC=gcc") `(#:make-flags
(list "CC=gcc"
(string-append "PREFIX=" (assoc-ref %outputs "out")))
#:test-target "test" #:test-target "test"
;; FIXME: "make test" rebuilds the application and gets lost in a
;; non-existing directory.
#:tests? #f
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(delete 'configure) (delete 'configure)
@ -968,13 +973,7 @@ minimum to provide high performance operation.")
(begin (begin
(setenv "SASS_LIBSASS_PATH" (setenv "SASS_LIBSASS_PATH"
(string-append (getcwd) "/libsass-" ,version)) (string-append (getcwd) "/libsass-" ,version))
#t)))) #t)))))))
(replace 'install ; no install target
(lambda* (#:key outputs #:allow-other-keys)
(let ((bin (string-append (assoc-ref outputs "out") "/bin")))
(mkdir-p bin)
(copy-file "bin/sassc" (string-append bin "/sassc"))
#t))))))
(inputs (inputs
`(("libsass" ,libsass))) `(("libsass" ,libsass)))
(synopsis "CSS pre-processor") (synopsis "CSS pre-processor")