this repo has no description
1opam-version: "2.0"
2maintainer: "https://github.com/ocaml/opam-repository/issues"
3authors: ["Francois Rouaix"]
4homepage: "https://github.com/ocaml/dbm"
5bug-reports: "https://github.com/ocaml/dbm/issues"
6dev-repo: "git+https://github.com/ocaml/dbm.git"
7license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
8build: [
9 ["./configure"]
10 [make "all"]
11 [make "test"] {with-test}
12]
13depends: [
14 "ocaml" {< "5.0.0"}
15 "ocamlfind" {build}
16]
17depexts: [
18 ["libgdbm-dev" "libgdbm-compat-dev"] {os-family = "debian"}
19 ["gdbm"] {os-distribution = "nixos"}
20 ["gdbm-devel"] {os-distribution = "centos"}
21 ["gdbm-devel"] {os-distribution = "rhel"}
22 ["gdbm-devel"] {os-distribution = "fedora"}
23 ["gdbm-dev"] {os-distribution = "alpine"}
24 ["gdbm"] {os-distribution = "arch"}
25]
26patches: [
27 "hasgotfix.patch"
28 "include_fix.patch"
29 "mkdir-stublibs.patch"
30]
31install: [
32 ["mkdir" "-p" "%{lib}%/dbm"]
33 [make "install" "STUBLIBDIR=%{lib}%/stublibs" "LIBDIR=%{lib}%/dbm"]
34 ["cp" "META" "%{lib}%/dbm"]
35]
36remove: [
37 ["rm" "-f" "%{lib}%/stublibs/dllcamldbm.so"]
38 ["ocamlfind" "remove" "dbm"]
39]
40synopsis: "Binding to the NDBM/GDBM Unix \"databases\""
41flags: light-uninstall
42url {
43 src:
44 "https://download.ocamlcore.org/camldbm/template/CamlDBM1.0/camldbm-1.0.tgz"
45 checksum: [
46 "sha256=19741fa7827c306ae43b18170b01f5547326ec7ea6c2f4bd80c93439b5ff538f"
47 "md5=79a297c0e0c54fbb3c7e795359e5f902"
48 ]
49}
50extra-source "mkdir-stublibs.patch" {
51 src:
52 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/dbm/mkdir-stublibs.patch"
53 checksum: [
54 "sha256=066809888d7fdb9d17209d7681137c8980c970d100fe76aeb3dfcf6157955f97"
55 "md5=fe28ae3da0723ab2438f41c9cbb2b8f3"
56 ]
57}
58extra-source "include_fix.patch" {
59 src:
60 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/dbm/include_fix.patch"
61 checksum: [
62 "sha256=5da83c02b9d0c8fba6be9428e7866058d70ed4c932b0257f5d46e6e7eaf62bcc"
63 "md5=27df514fc62ef34881f2625b452ea961"
64 ]
65}
66extra-source "hasgotfix.patch" {
67 src:
68 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/dbm/hasgotfix.patch"
69 checksum: [
70 "sha256=8a4d9a817968b46ef6b39e885a826ac41275d0779a563525d6571ab3c2358fa4"
71 "md5=b47c3bd0728c929227ca30463f41a7f7"
72 ]
73}