me
/
guix
Archived
1
0
Fork 0

gnu: capstone: Update to 3.0.5.

* gnu/packages/engineering.scm (capstone): Update to 3.0.5.
[arguments]: Set cstool's LDFLAGS in the environment instead of
SUBSTITUTE*ing the Makefile.
master
Tobias Geerinckx-Rice 2018-08-24 02:58:23 +02:00
parent 77c027b98b
commit a7b14a1b39
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 7 additions and 9 deletions

View File

@ -1008,7 +1008,7 @@ language, ADMS transforms Verilog-AMS code into other target languages.")
(define-public capstone (define-public capstone
(package (package
(name "capstone") (name "capstone")
(version "3.0.5-rc2") (version "3.0.5")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append "https://github.com/aquynh/capstone/archive/" (uri (string-append "https://github.com/aquynh/capstone/archive/"
@ -1016,22 +1016,20 @@ language, ADMS transforms Verilog-AMS code into other target languages.")
(file-name (string-append name "-" version ".tar.gz")) (file-name (string-append name "-" version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"1cqms9r2p43aiwp5spd84zaccp16ih03r7sjhrv16nddahj0jz2q")))) "1wbd1g3r32ni6zd9vwrq3kn7fdp9y8qwn9zllrrbk8n5wyaxcgci"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:tests? #f `(#:tests? #f
#:make-flags (list (string-append "PREFIX=" %output) #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
"CC=gcc") "CC=gcc")
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(delete 'configure) (delete 'configure) ; no configure script
;; cstool's Makefile overrides LDFLAGS, so we cannot pass it as a make flag. ;; cstool's Makefile +=s LDFLAGS, so we cannot pass it as a make flag.
(add-before 'build 'fix-cstool-ldflags (add-before 'build 'fix-cstool-ldflags
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(substitute* "cstool/Makefile" (setenv "LDFLAGS" (string-append "-Wl,-rpath="
(("LDFLAGS =") (assoc-ref outputs "out") "/lib"))
(string-append "LDFLAGS = -Wl,-rpath=" (assoc-ref outputs "out")
"/lib")))
#t))))) #t)))))
(home-page "http://www.capstone-engine.org") (home-page "http://www.capstone-engine.org")
(synopsis "Lightweight multi-platform, multi-architecture disassembly framework") (synopsis "Lightweight multi-platform, multi-architecture disassembly framework")