Skip to content

Commit 7322cf0

Browse files
committed
Patch opam-depext for bytecode-only builds
1 parent c446348 commit 7322cf0

File tree

1 file changed

+53
-0
lines changed
  • packages/opam-depext/opam-depext.1.2.1-1

1 file changed

+53
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
opam-version: "2.0"
2+
synopsis: "Install OS distribution packages"
3+
description: """\
4+
opam-depext is a simple program intended to facilitate the interaction between
5+
OPAM packages and the host package management system. It can query OPAM for the
6+
right external dependencies on a set of packages, depending on the host OS, and
7+
call the OS's package manager in the appropriate way to install them."""
8+
maintainer: [
9+
"Louis Gesbert <[email protected]>"
10+
"Anil Madhavapeddy <[email protected]>"
11+
]
12+
authors: [
13+
"Louis Gesbert <[email protected]>"
14+
"Anil Madhavapeddy <[email protected]>"
15+
]
16+
license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
17+
homepage: "https://github.com/ocaml/opam-depext"
18+
bug-reports: "https://github.com/ocaml/opam-depext/issues"
19+
depends: [
20+
"ocaml" {>= "4.00"}
21+
"base-unix"
22+
"cmdliner" {>= "0.9.8" & dev}
23+
"ocamlfind" {dev}
24+
]
25+
depopts: "ocaml-option-bytecode-only"
26+
available: opam-version >= "2.0.0~beta5"
27+
flags: plugin
28+
build: [
29+
["sed" "-ib" "-e" "/all:/s/ncl//" "src_ext/Makefile"]
30+
[make "OCAMLOPT=%{ocaml-option-bytecode-only:installed?no:ocamlopt}%"] {!dev}
31+
[
32+
"ocamlfind"
33+
"%{ocaml:native?ocamlopt:ocamlc}%"
34+
"-package"
35+
"unix,cmdliner"
36+
"-linkpkg"
37+
"-o"
38+
"opam-depext"
39+
"depext.ml"
40+
] {dev}
41+
]
42+
post-messages:
43+
"opam-depext is unnecessary when used with opam >= 2.1. Please use opam install directly instead"
44+
{opam-version >= "2.1"}
45+
dev-repo: "git+https://github.com/ocaml/opam-depext.git#2.0"
46+
url {
47+
src:
48+
"https://github.com/ocaml-opam/opam-depext/releases/download/v1.2.1/opam-depext-full-1.2.1.tbz"
49+
checksum: [
50+
"md5=7bda1fdbd88322e8f515919c82a37a2a"
51+
"sha512=a031289ac4e2d4d28bf02b892313b2a0ee724c94f0b7a131b3d9bccc5fbaf2292834d53dd6a0b7134f43bab06ee70bd2c98562fb3a6a03f1a526981290cbf501"
52+
]
53+
}

0 commit comments

Comments
 (0)