/
opam
48 lines (44 loc) · 1.66 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
opam-version: "2.0"
maintainer: "Daniel Bünzli <daniel.buenzl i@erratique.ch>"
authors: ["Daniel Bünzli <daniel.buenzl i@erratique.ch>"]
homepage: "http://erratique.ch/software/ptime"
doc: "http://erratique.ch/software/ptime"
dev-repo: "git+http://erratique.ch/repos/ptime.git"
bug-reports: "https://github.com/dbuenzli/ptime/issues"
tags: [ "time" "posix" "system" "org:erratique" ]
license: "BSD-3-Clause"
depends: [
"ocaml" {>= "4.01.0" & < "4.06.0"}
"ocamlfind" {build}
"ocamlbuild" {build & != "0.9.0"}
"result"
]
depopts: [ "js_of_ocaml" ]
build: ["ocaml" "pkg/git.ml"]
install: [
"ocaml"
"pkg/build.ml"
"native=%{ocaml:native}%"
"native-dynlink=%{ocaml:native-dynlink}%"
"jsoo=%{js_of_ocaml:installed}%"
]
synopsis: "POSIX time for OCaml"
description: """
Ptime has platform independent POSIX time support in pure OCaml. It
provides a type to represent a well-defined range of POSIX timestamps
with picosecond precision, conversion with date-time values,
conversion with [RFC 3339 timestamps][1] and pretty printing to a
human-readable, locale-independent representation.
The additional Ptime_clock library provides access to a system POSIX
clock and to the system's current time zone offset.
Ptime is not a calendar library.
Ptime depends on the `result` compatibility package. Ptime_clock
depends on your system library. Ptime_clock's optional JavaScript
support depends on [js_of_ocaml][2]. Ptime and its libraries are
distributed under the BSD3 license.
[1]: http://tools.ietf.org/html/rfc3339
[2]: http://ocsigen.org/js_of_ocaml/"""
url {
src: "http://erratique.ch/software/ptime/releases/ptime-0.8.0.tbz"
checksum: "md5=9d5ad46d4bbf19f2419fa121bf6c111a"
}