-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
opam
56 lines (56 loc) · 1.73 KB
/
opam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
opam-version: "2.0"
synopsis: "A library manager for OCaml"
description: """\
Findlib is a library manager for OCaml. It provides a convention how
to store libraries, and a file format ("META") to describe the
properties of libraries. There is also a tool (ocamlfind) for
interpreting the META files, so that it is very easy to use libraries
in programs and scripts."""
maintainer: "Thomas Gazagnaire <thomas@gazagnaire.org>"
authors: "Gerd Stolpmann <gerd@gerd-stolpmann.de>"
homepage: "http://projects.camlcity.org/projects/findlib.html"
bug-reports: "https://gitlab.camlcity.org/gerd/lib-findlib/issues"
depends: [
"ocaml" {>= "4.00.0" & < "5.0"}
]
depopts: ["graphics"]
patches: ["fix-bsd.patch"]
build: [
[
"./configure"
"-bindir"
bin
"-sitelib"
lib
"-mandir"
man
"-config"
"%{lib}%/findlib.conf"
"-no-custom"
"-no-camlp4" {!ocaml:preinstalled & ocaml:version >= "4.02.0"}
"-no-topfind" {ocaml:preinstalled}
]
[make "all"]
[make "opt"] {ocaml:native}
]
install: [
[make "install"]
["install" "-m" "0755" "ocaml-stub" "%{bin}%/ocaml"] {ocaml:preinstalled}
]
available: false
dev-repo: "git+https://gitlab.camlcity.org/gerd/lib-findlib.git"
url {
src: "https://github.com/ocaml/ocamlfind/archive/findlib-1.9.tar.gz"
checksum: [
"md5=9dfedf0fd192ec15d070781cb7b41e8d"
"sha512=415208288c466faf47da07fc2492594399b35ba6430589233ffc86135ce3685bfa7944111777ab58f318ef34fa78353bed30539ccce6f9923478dd1fe97281eb"
]
}
extra-source "fix-bsd.patch" {
src:
"https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/ocamlfind/fix-bsd.patch"
checksum: [
"sha256=0288cdb8ebadebfa34d3eb0ae2dd0b6b67b3d186f0fad1dd148e5f3216cc949b"
"md5=00e4db61fceee51af794c3a36e4cef0e"
]
}