Skip to content

Commit 792a454

Browse files
committed
Add opam file (for pinning, etc.)
1 parent e0bebe1 commit 792a454

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

dbm.opam

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
opam-version: "1.2"
2+
maintainer: "https://github.com/ocaml/opam-repository/issues"
3+
authors: ["Francois Rouaix"]
4+
homepage: "https://github.com/ocaml/dbm"
5+
bug-reports: "https://github.com/ocaml/dbm/issues"
6+
dev-repo: "https://github.com/ocaml/dbm.git"
7+
license: "LGPL-v2 with OCaml linking exception"
8+
build: [
9+
["mkdir" "-p" "%{lib}%/dbm"]
10+
["./configure"]
11+
[make "all"]
12+
[make "test"]
13+
]
14+
depends: ["ocamlfind"]
15+
depexts: [
16+
[["debian"] ["libgdbm-dev"]]
17+
[["ubuntu"] ["libgdbm-dev"]]
18+
[["nixpkgs"] ["gdbm"]]
19+
[["centos"] ["gdbm-devel"]]
20+
[["rhel"] ["gdbm-devel"]]
21+
[["fedora"] ["gdbm-devel"]]
22+
[["alpine"] ["gdbm-dev"]]
23+
[["osx" "homebrew"] ["gdbm"]]
24+
[["archlinux"] ["gdbm"]]
25+
]
26+
install: [
27+
[make "install" "STUBLIBDIR=%{lib}%/stublibs" "LIBDIR=%{lib}%/dbm"]
28+
["cp" "META" "%{lib}%/dbm"]
29+
]
30+
remove: [
31+
["rm" "-f" "%{lib}%/stublibs/dllcamldbm.so"]
32+
["ocamlfind" "remove" "dbm"]
33+
]

0 commit comments

Comments
 (0)