From: Xinglu Chen <public@yoctocell.xyz>
To: 50876@debbugs.gnu.org
Subject: [bug#50876] [PATCH] gnu: ocaml-ctypes: Update to 0.19.1.
Date: Tue, 28 Sep 2021 21:18:32 +0200 [thread overview]
Message-ID: <875yuk33w7.fsf@yoctocell.xyz> (raw)
* gnu/packages/ocaml.scm (ocaml-ctypes): Update to 0.19.1.
[arguments]<#:tests?>: Enable.
<#phases>{make-writable}: Simplify.
[inputs]: Remove ocaml-topkg and opam. Move ocaml-ounit and ocaml-lwt to ...
[native-inputs]: ... here.
---
gnu/packages/ocaml.scm | 25 +++++++++----------------
1 file changed, 9 insertions(+), 16 deletions(-)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index e30bd2f613..6577a38167 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -4012,7 +4012,7 @@ (define-public ocaml-integers
(define-public ocaml-ctypes
(package
(name "ocaml-ctypes")
- (version "0.18.0")
+ (version "0.19.1")
(home-page "https://github.com/ocamllabs/ocaml-ctypes")
(source (origin
(method git-fetch)
@@ -4022,34 +4022,27 @@ (define-public ocaml-ctypes
(file-name (git-file-name name version))
(sha256
(base32
- "03zrbnl16m67ls0yfhq7a4k4238x6x6b3m456g4dw2yqwc153vks"))))
+ "1xi1a486gssrb23zln3sf7zn0rmyl1k684bdf9iqkhgpz607fq6s"))))
(build-system ocaml-build-system)
(arguments
- `(#:tests? #f; require an old lwt
- #:make-flags
+ `(#:make-flags
(list (string-append "INSTALL_HEADERS = $(wildcard $($(PROJECT).dir)/*.h)"))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'make-writable
(lambda _
- (for-each
- (lambda (file)
- (let ((stat (stat file)))
- (chmod file (+ #o200 (stat:mode stat)))))
- (find-files "." "."))
- #t))
+ (for-each make-file-writable
+ (find-files "."))))
(delete 'configure))))
(native-inputs
- `(("pkg-config" ,pkg-config)))
+ `(("pkg-config" ,pkg-config)
+ ("ounit" ,ocaml-ounit)
+ ("lwt" ,ocaml-lwt)))
(propagated-inputs
`(("bigarray-compat" ,ocaml-bigarray-compat)
("integers" ,ocaml-integers)))
(inputs
- `(("libffi" ,libffi)
- ("ounit" ,ocaml-ounit)
- ("lwt" ,ocaml-lwt)
- ("topkg" ,ocaml-topkg)
- ("opam" ,opam)))
+ `(("libffi" ,libffi)))
(synopsis "Library for binding to C libraries using pure OCaml")
(description "Ctypes is a library for binding to C libraries using pure
OCaml. The primary aim is to make writing C extensions as straightforward as
base-commit: 8c6c33a2a5bf385e1589b405ee7f842684ed80c1
--
2.33.0
next reply other threads:[~2021-09-28 19:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-28 19:18 Xinglu Chen [this message]
2021-10-08 2:46 ` bug#50876: [PATCH] gnu: ocaml-ctypes: Update to 0.19.1 Julien Lepiller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=875yuk33w7.fsf@yoctocell.xyz \
--to=public@yoctocell.xyz \
--cc=50876@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.