Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ctypes-foreign depexts to work with opam 2 #617

Merged
merged 1 commit into from
Nov 5, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 32 additions & 12 deletions ctypes-foreign.opam
Original file line number Diff line number Diff line change
@@ -1,23 +1,43 @@
opam-version: "2.0"
version: "dev"
maintainer: "[email protected]"
author: "[email protected]"
homepage: "https://github.com/ocamllabs/ocaml-ctypes"
dev-repo: "git+https://github.com/ocamllabs/ocaml-ctypes.git"
bug-reports: "https://github.com/ocamllabs/ocaml-ctypes/issues"
depexts: [
[ ["debian"] [ "libffi-dev"] ]
[ ["ubuntu"] [ "libffi-dev" ] ]
[ ["osx" "homebrew"] ["libffi"] ]
[ ["centos"] ["libffi-devel"] ]
[ ["oraclelinux"] ["libffi-devel"] ]
[ ["fedora"] ["libffi-devel"] ]
[ ["alpine"] ["libffi-dev"] ]
[ ["opensuse"] ["libffi-devel"] ]
[ ["win32" "cygwinports"] ["libffi" "pkg-config"] ]
]
["libffi-dev"] {os-family = "debian"}
["libffi"] {os = "macos" & os-distribution = "homebrew"}
["libffi"] {os = "macos" & os-distribution = "macports"}
["libffi-devel"] {os-distribution = "centos"}
["libffi-devel"] {os-distribution = "ol"}
["libffi-devel"] {os-distribution = "fedora"}
["libffi-dev"] {os-distribution = "alpine"}
["libffi-devel"] {os-family = "suse"}
]
tags: ["org:ocamllabs" "org:mirage"]
post-messages: [
"This package requires libffi on your system" {failure}
]
synopsis: "Virtual package for enabling the ctypes.foreign subpackage"
synopsis: "Virtual package for enabling the ctypes.foreign subpackage."
description: """
`ctypes-foreign` is just a virtual OPAM package that determines
whether the foreign subpackage should built as part of ctypes.
In order to actually get the ctypes package, you should also:

opam install ctypes ctypes-foreign

You can verify the existence of the ocamlfind subpackage by:

ocamlfind list | grep ctypes

Which should output something like:

ctypes (version: 0.4.1)
ctypes.foreign (version: 0.4.1)
ctypes.foreign.base (version: 0.4.1)
ctypes.foreign.threaded (version: 0.4.1)
ctypes.foreign.unthreaded (version: 0.4.1)
ctypes.stubs (version: 0.4.1)
ctypes.top (version: 0.4.1)"""
authors: "[email protected]"
depends: ["ocaml"]