mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-20 06:37:08 +01:00
gnu: ocaml-frontc: Update to 4.1.0.
* gnu/packages/ocaml.scm (ocaml-frontc): Update to 4.1.0. (ocaml4.07-frontc): New variable.
This commit is contained in:
parent
32cecfa057
commit
42eeea188d
1 changed files with 54 additions and 26 deletions
|
@ -1478,41 +1478,29 @@ (define-public ocaml-zarith
|
||||||
(define-public ocaml-frontc
|
(define-public ocaml-frontc
|
||||||
(package
|
(package
|
||||||
(name "ocaml-frontc")
|
(name "ocaml-frontc")
|
||||||
(version "3.4.2")
|
(version "4.1.0")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://github.com/BinaryAnalysisPlatform/FrontC")
|
(url "https://github.com/BinaryAnalysisPlatform/FrontC")
|
||||||
(commit (string-append
|
(commit (string-append "v" version))))
|
||||||
"V_" (string-join (string-split version #\.) "_")))))
|
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0k7jk9hkglnkk27s62xl493jyqc017gyvwqb1lyc0ywbb001s102"))))
|
"1mi1vh4qgscnb470qwidccaqd068j1bqlz6pf6wddk21paliwnqb"))))
|
||||||
(build-system ocaml-build-system)
|
(build-system dune-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:test-target "test.t"
|
||||||
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(delete 'configure)
|
(add-after 'unpack 'make-writable
|
||||||
(add-after 'install 'install-meta
|
(lambda _
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(for-each make-file-writable (find-files "." ".")))))))
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(native-inputs
|
||||||
(with-output-to-file
|
`(("ocaml-menhir" ,ocaml-menhir)
|
||||||
(string-append out "/lib/ocaml/frontc/META")
|
("ocaml-odoc" ,ocaml-odoc)))
|
||||||
(lambda _
|
(properties `((upstream-name . "FrontC")
|
||||||
(display
|
(ocaml4.07-variant . ,(delay ocaml4.07-frontc))))
|
||||||
(string-append
|
|
||||||
"description = \"Parser for the C language\"
|
|
||||||
version = \"" ,version "\"
|
|
||||||
requires = \"unix\"
|
|
||||||
archive(byte) = \"frontc.cma\"
|
|
||||||
archive(native) = \"frontc.cmxa\""))))
|
|
||||||
(symlink (string-append out "/lib/ocaml/frontc")
|
|
||||||
(string-append out "/lib/ocaml/FrontC"))))))
|
|
||||||
#:make-flags (list (string-append "PREFIX="
|
|
||||||
(assoc-ref %outputs "out"))
|
|
||||||
"OCAML_SITE=$(LIB_DIR)/ocaml/")))
|
|
||||||
(properties `((upstream-name . "FrontC")))
|
|
||||||
(home-page "https://www.irit.fr/FrontC")
|
(home-page "https://www.irit.fr/FrontC")
|
||||||
(synopsis "C parser and lexer library")
|
(synopsis "C parser and lexer library")
|
||||||
(description "FrontC is an OCAML library providing a C parser and lexer.
|
(description "FrontC is an OCAML library providing a C parser and lexer.
|
||||||
|
@ -1521,6 +1509,46 @@ (define-public ocaml-frontc
|
||||||
GNU CC attributes. It provides also a C pretty printer as an example of use.")
|
GNU CC attributes. It provides also a C pretty printer as an example of use.")
|
||||||
(license license:lgpl2.1)))
|
(license license:lgpl2.1)))
|
||||||
|
|
||||||
|
(define-public ocaml4.07-frontc
|
||||||
|
(package-with-ocaml4.07
|
||||||
|
(package
|
||||||
|
(inherit ocaml-frontc)
|
||||||
|
(version "3.4.2")
|
||||||
|
(source (origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/mirage/ocaml-base64")
|
||||||
|
(commit (string-append
|
||||||
|
"V_" (string-join (string-split version #\.) "_")))))
|
||||||
|
(file-name (git-file-name "ocaml-frontc" version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0k7jk9hkglnkk27s62xl493jyqc017gyvwqb1lyc0ywbb001s102"))))
|
||||||
|
(build-system ocaml-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(delete 'configure)
|
||||||
|
(add-after 'install 'install-meta
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let ((out (assoc-ref outputs "out")))
|
||||||
|
(with-output-to-file
|
||||||
|
(string-append out "/lib/ocaml/frontc/META")
|
||||||
|
(lambda _
|
||||||
|
(display
|
||||||
|
(string-append
|
||||||
|
"description = \"Parser for the C language\"
|
||||||
|
version = \"" ,version "\"
|
||||||
|
requires = \"unix\"
|
||||||
|
archive(byte) = \"frontc.cma\"
|
||||||
|
archive(native) = \"frontc.cmxa\""))))
|
||||||
|
(symlink (string-append out "/lib/ocaml/frontc")
|
||||||
|
(string-append out "/lib/ocaml/FrontC"))))))
|
||||||
|
#:make-flags (list (string-append "PREFIX="
|
||||||
|
(assoc-ref %outputs "out"))
|
||||||
|
"OCAML_SITE=$(LIB_DIR)/ocaml/")))
|
||||||
|
(properties '()))))
|
||||||
|
|
||||||
(define-public ocaml-qcheck
|
(define-public ocaml-qcheck
|
||||||
(package
|
(package
|
||||||
(name "ocaml-qcheck")
|
(name "ocaml-qcheck")
|
||||||
|
|
Loading…
Reference in a new issue