Browse Source
* will it fail on ci? * run on latest mac mayberemotes/origin/add-simple-redirecting-site
![gal@spitfire.co.il](/assets/img/avatar_default.png)
![GitHub](/assets/img/avatar_default.png)
67 changed files with 2109 additions and 1220 deletions
@ -0,0 +1,34 @@ |
|||||||
|
opam-version: "2.0" |
||||||
|
maintainer: "martin@mjambon.com" |
||||||
|
authors: ["Martin Jambon"] |
||||||
|
|
||||||
|
homepage: "https://github.com/mjambon/atd" |
||||||
|
bug-reports: "https://github.com/mjambon/atd/issues" |
||||||
|
dev-repo: "git://github.com/mjambon/atd.git" |
||||||
|
|
||||||
|
build: [ |
||||||
|
["jbuilder" "subst" "-p" name] {pinned} |
||||||
|
["jbuilder" "build" "-p" name "-j" jobs] |
||||||
|
] |
||||||
|
|
||||||
|
# Restore when https://github.com/mjambon/atd/issues/121 is resolved. |
||||||
|
# build-test: [ |
||||||
|
# ["jbuilder" "runtest" "-p" name] |
||||||
|
# ] |
||||||
|
|
||||||
|
depends: [ |
||||||
|
"ocaml" {>= "4.03.0"} |
||||||
|
"jbuilder" {build} |
||||||
|
"menhir" {build} |
||||||
|
"easy-format" |
||||||
|
] |
||||||
|
synopsis: "Parser for the ATD data format description language" |
||||||
|
description: """ |
||||||
|
ATD is the OCaml library providing a parser for the ATD language and |
||||||
|
various utilities. ATD stands for Adjustable Type Definitions in |
||||||
|
reference to its main property of supporting annotations that allow a |
||||||
|
good fit with a variety of data formats.""" |
||||||
|
url { |
||||||
|
src: "https://github.com/mjambon/atd/releases/download/2.0.0/atd-2.0.0.tbz" |
||||||
|
checksum: "md5=14e47609397c524ea0eae7c3f14f7ccf" |
||||||
|
} |
@ -0,0 +1,29 @@ |
|||||||
|
opam-version: "2.0" |
||||||
|
maintainer: "martin@mjambon.com" |
||||||
|
authors: ["Martin Jambon"] |
||||||
|
|
||||||
|
homepage: "https://github.com/mjambon/atd" |
||||||
|
bug-reports: "https://github.com/mjambon/atd/issues" |
||||||
|
dev-repo: "git://github.com/mjambon/atd.git" |
||||||
|
|
||||||
|
build: [ |
||||||
|
["jbuilder" "subst" "-p" name] {pinned} |
||||||
|
["jbuilder" "build" "-p" name "-j" jobs] |
||||||
|
] |
||||||
|
|
||||||
|
# Restore when https://github.com/mjambon/atd/issues/121 is resolved. |
||||||
|
# build-test: [ |
||||||
|
# ["jbuilder" "runtest" "-p" name] |
||||||
|
# ] |
||||||
|
|
||||||
|
depends: [ |
||||||
|
"ocaml" {>= "4.02.3"} |
||||||
|
"jbuilder" {build} |
||||||
|
"biniou" {>= "1.0.6"} |
||||||
|
"yojson" {>= "1.2.1"} |
||||||
|
] |
||||||
|
synopsis: "Runtime library for code generated by atdgen." |
||||||
|
url { |
||||||
|
src: "https://github.com/mjambon/atd/releases/download/2.0.0/atd-2.0.0.tbz" |
||||||
|
checksum: "md5=14e47609397c524ea0eae7c3f14f7ccf" |
||||||
|
} |
@ -0,0 +1,44 @@ |
|||||||
|
opam-version: "2.0" |
||||||
|
maintainer: "martin@mjambon.com" |
||||||
|
authors: ["Martin Jambon"] |
||||||
|
|
||||||
|
homepage: "https://github.com/mjambon/atd" |
||||||
|
bug-reports: "https://github.com/mjambon/atd/issues" |
||||||
|
dev-repo: "git://github.com/mjambon/atd.git" |
||||||
|
|
||||||
|
build: [ |
||||||
|
["jbuilder" "subst" "-p" name] {pinned} |
||||||
|
["jbuilder" "build" "-p" name "-j" jobs] |
||||||
|
] |
||||||
|
|
||||||
|
# Restore when https://github.com/mjambon/atd/issues/121 is resolved. |
||||||
|
# build-test: [ |
||||||
|
# ["jbuilder" "runtest" "-p" name] |
||||||
|
# ] |
||||||
|
|
||||||
|
depends: [ |
||||||
|
"ocaml" {>= "4.03.0"} |
||||||
|
"jbuilder" {build} |
||||||
|
"atd" {>= "2.0.0"} |
||||||
|
"atdgen-runtime" {>= "2.0.0"} |
||||||
|
"biniou" {>= "1.0.6"} |
||||||
|
"yojson" {>= "1.2.1"} |
||||||
|
] |
||||||
|
synopsis: |
||||||
|
"Generates efficient JSON serializers, deserializers and validators" |
||||||
|
description: """ |
||||||
|
Atdgen is a command-line program that takes as input type definitions in the |
||||||
|
ATD syntax and produces OCaml code suitable for data serialization and |
||||||
|
deserialization. |
||||||
|
|
||||||
|
Two data formats are currently supported, these are biniou and JSON. |
||||||
|
Atdgen-biniou and Atdgen-json will refer to Atdgen used in one context or the |
||||||
|
other. |
||||||
|
|
||||||
|
Atdgen was designed with efficiency and durability in mind. Software authors |
||||||
|
are encouraged to use Atdgen directly and to write tools that may reuse part of |
||||||
|
Atdgen’s source code.""" |
||||||
|
url { |
||||||
|
src: "https://github.com/mjambon/atd/releases/download/2.0.0/atd-2.0.0.tbz" |
||||||
|
checksum: "md5=14e47609397c524ea0eae7c3f14f7ccf" |
||||||
|
} |
@ -1,25 +0,0 @@ |
|||||||
opam-version: "2.0" |
|
||||||
maintainer: "martin@mjambon.com" |
|
||||||
authors: ["Martin Jambon"] |
|
||||||
|
|
||||||
homepage: "https://github.com/mjambon/biniou" |
|
||||||
bug-reports: "https://github.com/mjambon/biniou/issues" |
|
||||||
dev-repo: "git+https://github.com/mjambon/biniou.git" |
|
||||||
license: "BSD-3-Clause" |
|
||||||
|
|
||||||
build: [ |
|
||||||
["jbuilder" "build" "-p" name "-j" jobs] |
|
||||||
["jbuilder" "runtest" "-p" name] {with-test} |
|
||||||
] |
|
||||||
depends: [ |
|
||||||
"ocaml" {>= "4.02.3"} |
|
||||||
"conf-which" {build} |
|
||||||
"jbuilder" {build & >= "1.0+beta7"} |
|
||||||
"easy-format" |
|
||||||
] |
|
||||||
synopsis: |
|
||||||
"Binary data format designed for speed, safety, ease of use and backward compatibility as protocols evolve" |
|
||||||
url { |
|
||||||
src: "https://github.com/mjambon/biniou/archive/v1.2.0.tar.gz" |
|
||||||
checksum: "md5=f3e92358e832ed94eaf23ce622ccc2f9" |
|
||||||
} |
|
@ -0,0 +1,45 @@ |
|||||||
|
opam-version: "2.0" |
||||||
|
build: [ |
||||||
|
["dune" "subst"] {pinned} |
||||||
|
["dune" "build" "-p" name "-j" jobs] |
||||||
|
["dune" "runtest" "-p" name "-j" jobs] {with-test} |
||||||
|
["dune" "build" "-p" name "@doc"] {with-doc} |
||||||
|
] |
||||||
|
maintainer: ["martin@mjambon.com"] |
||||||
|
authors: ["Martin Jambon"] |
||||||
|
bug-reports: "https://github.com/mjambon/biniou/issues" |
||||||
|
homepage: "https://github.com/mjambon/biniou" |
||||||
|
doc: "https://mjambon.github.io/biniou/" |
||||||
|
license: "BSD-3-Clause" |
||||||
|
dev-repo: "git+https://github.com/mjambon/biniou.git" |
||||||
|
synopsis: |
||||||
|
"Binary data format designed for speed, safety, ease of use and backward compatibility as protocols evolve" |
||||||
|
description: """ |
||||||
|
|
||||||
|
Biniou (pronounced "be new") is a binary data format designed for speed, safety, |
||||||
|
ease of use and backward compatibility as protocols evolve. Biniou is vastly |
||||||
|
equivalent to JSON in terms of functionality but allows implementations several |
||||||
|
times faster (4 times faster than yojson), with 25-35% space savings. |
||||||
|
|
||||||
|
Biniou data can be decoded into human-readable form without knowledge of type |
||||||
|
definitions except for field and variant names which are represented by 31-bit |
||||||
|
hashes. A program named bdump is provided for routine visualization of biniou |
||||||
|
data files. |
||||||
|
|
||||||
|
The program atdgen is used to derive OCaml-Biniou serializers and deserializers |
||||||
|
from type definitions. |
||||||
|
|
||||||
|
Biniou format specification: mjambon.github.io/atdgen-doc/biniou-format.txt""" |
||||||
|
depends: [ |
||||||
|
"easy-format" |
||||||
|
"dune" {>= "1.10"} |
||||||
|
"ocaml" {>= "4.02.3"} |
||||||
|
] |
||||||
|
url { |
||||||
|
src: |
||||||
|
"https://github.com/mjambon/biniou/releases/download/1.2.1/biniou-1.2.1.tbz" |
||||||
|
checksum: [ |
||||||
|
"sha256=35546c68b1929a8e6d27a3b39ecd17b38303a0d47e65eb9d1480c2061ea84335" |
||||||
|
"sha512=82670cc77bf3e869ee26e5fbe5a5affa45a22bc8b6c4bd7e85473912780e0111baca59b34a2c14feae3543ce6e239d7fddaeab24b686a65bfe642cdb91d27ebf" |
||||||
|
] |
||||||
|
} |
@ -1,19 +0,0 @@ |
|||||||
opam-version: "2.0" |
|
||||||
maintainer: "unixjunkie@sdf.org" |
|
||||||
homepage: "http://www.gnu.org/software/which/" |
|
||||||
authors: "Carlo Wood" |
|
||||||
bug-reports: "https://github.com/ocaml/opam-repository/issues" |
|
||||||
license: "GPL-2+" |
|
||||||
build: [["which" "which"]] |
|
||||||
depexts: [ |
|
||||||
["which"] {os-distribution = "centos"} |
|
||||||
["which"] {os-distribution = "fedora"} |
|
||||||
["which"] {os-family = "suse"} |
|
||||||
["debianutils"] {os-family = "debian"} |
|
||||||
["which"] {os-distribution = "nixos"} |
|
||||||
["which"] {os-distribution = "arch"} |
|
||||||
] |
|
||||||
synopsis: "Virtual package relying on which" |
|
||||||
description: |
|
||||||
"This package can only install if the which program is installed on the system." |
|
||||||
flags: conf |
|
@ -0,0 +1,37 @@ |
|||||||
|
opam-version: "2.0" |
||||||
|
maintainer: "Hannes Mehnert <hannes@mehnert.org>" |
||||||
|
authors: "Hannes Mehnert <hannes@mehnert.org>" |
||||||
|
license: "ISC" |
||||||
|
homepage: "https://github.com/hannesm/domain-name" |
||||||
|
doc: "https://hannesm.github.io/domain-name/doc" |
||||||
|
bug-reports: "https://github.com/hannesm/domain-name/issues" |
||||||
|
depends: [ |
||||||
|
"ocaml" {>= "4.04.2"} |
||||||
|
"dune" |
||||||
|
"fmt" |
||||||
|
"astring" |
||||||
|
"alcotest" {with-test} |
||||||
|
] |
||||||
|
build: [ |
||||||
|
["dune" "subst"] {pinned} |
||||||
|
["dune" "build" "-p" name "-j" jobs] |
||||||
|
["dune" "runtest" "-p" name "-j" jobs] {with-test} |
||||||
|
] |
||||||
|
dev-repo: "git+https://github.com/hannesm/domain-name.git" |
||||||
|
synopsis: "RFC 1035 Internet domain names" |
||||||
|
description: """ |
||||||
|
A domain name is a sequence of labels separated by dots, such as `foo.example`. |
||||||
|
Each label may contain any bytes. The length of each label may not exceed 63 |
||||||
|
charactes. The total length of a domain name is limited to 253 (byte |
||||||
|
representation is 255), but other protocols (such as SMTP) may apply even |
||||||
|
smaller limits. A domain name label is case preserving, comparison is done in a |
||||||
|
case insensitive manner. |
||||||
|
""" |
||||||
|
url { |
||||||
|
src: |
||||||
|
"https://github.com/hannesm/domain-name/releases/download/v0.3.0/domain-name-v0.3.0.tbz" |
||||||
|
checksum: [ |
||||||
|
"sha256=4dd9ed1bc619886d1adcaff14edfb503dedb77fc0b7a28d88d213aa1c44d6c8a" |
||||||
|
"sha512=8229766b20a44622d3a94250c6909dbe64269aab6dde8dd13f6b1c027d63e119658fd35b459c6556817ab583bbfdbc5dbea97d3022f590184d70a72ecd7c0a34" |
||||||
|
] |
||||||
|
} |
@ -0,0 +1,9 @@ |
|||||||
|
opam-version: "2.0" |
||||||
|
authors: ["Jérémie Dimino"] |
||||||
|
homepage: "https://github.com/ocaml/dune" |
||||||
|
bug-reports: "https://github.com/ocaml/dune/issues" |
||||||
|
maintainer: "Jérémie Dimino" |
||||||
|
description: """ |
||||||
|
dune.configurator library distributed with Dune 1.x |
||||||
|
""" |
||||||
|
depends: ["dune" {<"2.0.0"}] |
@ -1,20 +0,0 @@ |
|||||||
opam-version: "2.0" |
|
||||||
maintainer: "martin@mjambon.com" |
|
||||||
authors: ["Martin Jambon"] |
|
||||||
homepage: "http://mjambon.com/easy-format.html" |
|
||||||
bug-reports: "https://github.com/mjambon/easy-format/issues" |
|
||||||
dev-repo: "git+https://github.com/mjambon/easy-format.git" |
|
||||||
build: [ |
|
||||||
["jbuilder" "build" "-p" name "-j" jobs] |
|
||||||
["jbuilder" "runtest" "-p" name] {with-test} |
|
||||||
] |
|
||||||
depends: [ |
|
||||||
"ocaml" {>= "4.02.3"} |
|
||||||
"jbuilder" {build} |
|
||||||
] |
|
||||||
synopsis: |
|
||||||
"High-level and functional interface to the Format module of the OCaml standard library" |
|
||||||
url { |
|
||||||
src: "https://github.com/mjambon/easy-format/archive/v1.3.1.tar.gz" |
|
||||||
checksum: "md5=4e163700fb88fdcd6b8976c3a216c8ea" |
|
||||||
} |
|
@ -0,0 +1,46 @@ |
|||||||
|
opam-version: "2.0" |
||||||
|
build: [ |
||||||
|
["dune" "subst"] {pinned} |
||||||
|
["dune" "build" "-p" name "-j" jobs] |
||||||
|
["dune" "runtest" "-p" name "-j" jobs] {with-test} |
||||||
|
["dune" "build" "-p" name "@doc"] {with-doc} |
||||||
|
] |
||||||
|
maintainer: ["martin@mjambon.com" "rudi.grinberg@gmail.com"] |
||||||
|
authors: ["Martin Jambon"] |
||||||
|
bug-reports: "https://github.com/mjambon/easy-format/issues" |
||||||
|
homepage: "https://github.com/mjambon/easy-format" |
||||||
|
doc: "https://mjambon.github.io/easy-format/" |
||||||
|
license: "BSD-3-Clause" |
||||||
|
dev-repo: "git+https://github.com/mjambon/easy-format.git" |
||||||
|
synopsis: |
||||||
|
"High-level and functional interface to the Format module of the OCaml standard library" |
||||||
|
description: """ |
||||||
|
|
||||||
|
This module offers a high-level and functional interface to the Format module of |
||||||
|
the OCaml standard library. It is a pretty-printing facility, i.e. it takes as |
||||||
|
input some code represented as a tree and formats this code into the most |
||||||
|
visually satisfying result, breaking and indenting lines of code where |
||||||
|
appropriate. |
||||||
|
|
||||||
|
Input data must be first modelled and converted into a tree using 3 kinds of |
||||||
|
nodes: |
||||||
|
|
||||||
|
* atoms |
||||||
|
* lists |
||||||
|
* labelled nodes |
||||||
|
|
||||||
|
Atoms represent any text that is guaranteed to be printed as-is. Lists can model |
||||||
|
any sequence of items such as arrays of data or lists of definitions that are |
||||||
|
labelled with something like "int main", "let x =" or "x:".""" |
||||||
|
depends: [ |
||||||
|
"dune" {>= "1.10"} |
||||||
|
"ocaml" {>= "4.02.3"} |
||||||
|
] |
||||||
|
url { |
||||||
|
src: |
||||||
|
"https://github.com/mjambon/easy-format/releases/download/1.3.2/easy-format-1.3.2.tbz" |
||||||
|
checksum: [ |
||||||
|
"sha256=3440c2b882d537ae5e9011eb06abb53f5667e651ea4bb3b460ea8230fa8c1926" |
||||||
|
"sha512=e39377a2ff020ceb9ac29e8515a89d9bdbc91dfcfa871c4e3baafa56753fac2896768e5d9822a050dc1e2ade43c8967afb69391a386c0a8ecd4e1f774e236135" |
||||||
|
] |
||||||
|
} |
@ -0,0 +1,35 @@ |
|||||||
|
opam-version: "2.0" |
||||||
|
maintainer: "anil@recoil.org" |
||||||
|
authors: ["David Sheets" "Anil Madhavapeddy" "Hugo Heuzard"] |
||||||
|
synopsis: "A library for manipulation of IP address representations usnig sexp" |
||||||
|
description: """ |
||||||
|
Sexp convertions for ipaddr |
||||||
|
""" |
||||||
|
|
||||||
|
license: "ISC" |
||||||
|
tags: ["org:mirage" "org:xapi-project"] |
||||||
|
homepage: "https://github.com/mirage/ocaml-ipaddr" |
||||||
|
doc: "https://mirage.github.io/ocaml-ipaddr/" |
||||||
|
bug-reports: "https://github.com/mirage/ocaml-ipaddr/issues" |
||||||
|
depends: [ |
||||||
|
"ocaml" {>= "4.04.0"} |
||||||
|
"dune" {>="1.9.0"} |
||||||
|
"ipaddr" {=version} |
||||||
|
"ipaddr-cstruct" {with-test & =version} |
||||||
|
"ounit" {with-test} |
||||||
|
"ppx_sexp_conv" {>= "v0.9.0"} |
||||||
|
] |
||||||
|
build: [ |
||||||
|
["dune" "subst"] {pinned} |
||||||
|
["dune" "build" "-p" name "-j" jobs] |
||||||
|
["dune" "runtest" "-p" name "-j" jobs] {with-test} |
||||||
|
] |
||||||
|
dev-repo: "git+https://github.com/mirage/ocaml-ipaddr.git" |
||||||
|
url { |
||||||
|
src: |
||||||
|
"https://github.com/mirage/ocaml-ipaddr/releases/download/v4.0.0/ipaddr-v4.0.0.tbz" |
||||||
|
checksum: [ |
||||||
|
"sha256=6f4abf9c210b20ccddf4610691a87b8c870790d8f71d4a7edcfca9e21b59fc29" |
||||||
|
"sha512=ca55a8cfa8b84c0a2f4e1fe7afb4c582066bbb562efb94169c0347e441ce076dc426d191772edb869eca6bd77f42f7141378181057ad8886da25ef915a9ee57f" |
||||||
|
] |
||||||
|
} |
@ -1,28 +0,0 @@ |
|||||||
opam-version: "2.0" |
|
||||||
version: "1.1.2" |
|
||||||
homepage: "https://github.com/aantron/lwt_ssl" |
|
||||||
doc: "https://github.com/aantron/lwt_ssl/blob/master/src/lwt_ssl.mli" |
|
||||||
bug-reports: "https://github.com/aantron/lwt_ssl/issues" |
|
||||||
license: "LGPL with OpenSSL linking exception" |
|
||||||
|
|
||||||
authors: [ |
|
||||||
"Jérôme Vouillon" |
|
||||||
"Jérémie Dimino" |
|
||||||
] |
|
||||||
maintainer: "Anton Bachin <antonbachin@yahoo.com>" |
|
||||||
dev-repo: "git+https://github.com/aantron/lwt_ssl.git" |
|
||||||
depends: [ |
|
||||||
"ocaml" |
|
||||||
"base-unix" |
|
||||||
"jbuilder" {build & >= "1.0+beta10"} |
|
||||||
"lwt" {>= "3.0.0"} |
|
||||||
"ssl" {>= "0.5.0"} |
|
||||||
] |
|
||||||
build: [ |
|
||||||
["jbuilder" "build" "-p" name "-j" jobs] |
|
||||||
] |
|
||||||
synopsis: "OpenSSL binding with concurrent I/O" |
|
||||||
url { |
|
||||||
src: "https://github.com/aantron/lwt_ssl/archive/1.1.2.tar.gz" |
|
||||||
checksum: "md5=d239353b1e7c6e3fd4192c71a3b25ce2" |
|
||||||
} |
|
@ -0,0 +1,33 @@ |
|||||||
|
opam-version: "2.0" |
||||||
|
|
||||||
|
synopsis: "OpenSSL binding with concurrent I/O" |
||||||
|
|
||||||
|
version: "1.1.3" |
||||||
|
license: "LGPL with OpenSSL linking exception" |
||||||
|
homepage: "https://github.com/ocsigen/lwt_ssl" |
||||||
|
doc: "https://github.com/ocsigen/lwt_ssl/blob/master/src/lwt_ssl.mli" |
||||||
|
bug-reports: "https://github.com/ocsigen/lwt_ssl/issues" |
||||||
|
|
||||||
|
authors: [ |
||||||
|
"Jérôme Vouillon" |
||||||
|
"Jérémie Dimino" |
||||||
|
] |
||||||
|
maintainer: "Anton Bachin <antonbachin@yahoo.com>" |
||||||
|
dev-repo: "git+https://github.com/ocsigen/lwt_ssl.git" |
||||||
|
|
||||||
|
depends: [ |
||||||
|
"base-unix" |
||||||
|
"dune" |
||||||
|
"lwt" {>= "3.0.0"} |
||||||
|
"ocaml" |
||||||
|
"ssl" {>= "0.5.0"} |
||||||
|
] |
||||||
|
|
||||||
|
build: [ |
||||||
|
["dune" "build" "-p" name "-j" jobs] |
||||||
|
] |
||||||
|
|
||||||
|
url { |
||||||
|
src: "https://github.com/ocsigen/lwt_ssl/archive/1.1.3.tar.gz" |
||||||
|
checksum: "md5=b18414b2ef71ededa07666dfc467f10a" |
||||||
|
} |
@ -1,27 +0,0 @@ |
|||||||
opam-version: "2.0" |
|
||||||
maintainer: "anil@recoil.org" |
|
||||||
authors: ["David Sheets" "Anil Madhavapeddy" "Hugo Heuzard"] |
|
||||||
synopsis: "A library for manipulation of MAC address representations" |
|
||||||
license: "ISC" |
|
||||||
tags: ["org:mirage" "org:xapi-project"] |
|
||||||
homepage: "https://github.com/mirage/ocaml-ipaddr" |
|
||||||
doc: "https://mirage.github.io/ocaml-ipaddr/" |
|
||||||
bug-reports: "https://github.com/mirage/ocaml-ipaddr/issues" |
|
||||||
depends: [ |
|
||||||
"ocaml" {>= "4.04.0"} |
|
||||||
"dune" |
|
||||||
"sexplib0" |
|
||||||
"ounit" {with-test} |
|
||||||
"ppx_sexp_conv" {with-test} |
|
||||||
] |
|
||||||
conflicts: [ "ipaddr" {< "3.0.0"} ] |
|
||||||
build: [ |
|
||||||
["dune" "subst"] {pinned} |
|
||||||
["dune" "build" "-p" name "-j" jobs] |
|
||||||
] |
|
||||||
dev-repo: "git+https://github.com/mirage/ocaml-ipaddr.git" |
|
||||||
url { |
|
||||||
src: |
|
||||||
"https://github.com/mirage/ocaml-ipaddr/releases/download/v3.1.0/ipaddr-v3.1.0.tbz" |
|
||||||
checksum: "md5=471a594563bb9c3dd91ae912b5ffd6ed" |
|
||||||
} |
|
@ -0,0 +1,40 @@ |
|||||||
|
opam-version: "2.0" |
||||||
|
maintainer: "anil@recoil.org" |
||||||
|
authors: ["David Sheets" "Anil Madhavapeddy" "Hugo Heuzard"] |
||||||
|
synopsis: "A library for manipulation of MAC address representations" |
||||||
|
license: "ISC" |
||||||
|
tags: ["org:mirage" "org:xapi-project"] |
||||||
|
homepage: "https://github.com/mirage/ocaml-ipaddr" |
||||||
|
doc: "https://mirage.github.io/ocaml-ipaddr/" |
||||||
|
bug-reports: "https://github.com/mirage/ocaml-ipaddr/issues" |
||||||
|
depends: [ |
||||||
|
"ocaml" {>= "4.04.0"} |
||||||
|
"dune" {>="1.9.0"} |
||||||
|
"ounit" {with-test} |
||||||
|
"ppx_sexp_conv" {with-test & >= "v0.9.0"} |
||||||
|
] |
||||||
|
conflicts: [ "ipaddr" {< "3.0.0"} ] |
||||||
|
build: [ |
||||||
|
["dune" "subst"] {pinned} |
||||||
|
["dune" "build" "-p" name "-j" jobs] |
||||||
|
["dune" "runtest" "-p" name "-j" jobs] {with-test} |
||||||
|
] |
||||||
|
dev-repo: "git+https://github.com/mirage/ocaml-ipaddr.git" |
||||||
|
description: """ |
||||||
|
A library for manipulation of MAC address representations. |
||||||
|
|
||||||
|
Features: |
||||||
|
|
||||||
|
* oUnit-based tests |
||||||
|
* MAC-48 (Ethernet) address support |
||||||
|
* `Macaddr` is a `Map.OrderedType` |
||||||
|
* All types have sexplib serializers/deserializers optionally via the `Macaddr_sexp` library. |
||||||
|
""" |
||||||
|
url { |
||||||
|
src: |
||||||
|
"https://github.com/mirage/ocaml-ipaddr/releases/download/v4.0.0/ipaddr-v4.0.0.tbz" |
||||||
|
checksum: [ |
||||||
|
"sha256=6f4abf9c210b20ccddf4610691a87b8c870790d8f71d4a7edcfca9e21b59fc29" |
||||||
|
"sha512=ca55a8cfa8b84c0a2f4e1fe7afb4c582066bbb562efb94169c0347e441ce076dc426d191772edb869eca6bd77f42f7141378181057ad8886da25ef915a9ee57f" |
||||||
|
] |
||||||
|
} |
@ -1,19 +0,0 @@ |
|||||||
commit 40142bc941e6e308686e86be6fc2da92f346a22f
|
|
||||||
Author: Kate <kit.ty.kate@disroot.org>
|
|
||||||
Date: Tue Mar 19 16:29:06 2019 +0000
|
|
||||||
|
|
||||||
Remove awk from the set of checked unix tools as it's not used anywhere
|
|
||||||
|
|
||||||
diff --git a/configure b/configure
|
|
||||||
index d9b587c..20e8dca 100755
|
|
||||||
--- a/configure
|
|
||||||
+++ b/configure
|
|
||||||
@@ -184,7 +184,7 @@ echo "Configuring core..."
|
|
||||||
|
|
||||||
# Some standard Unix tools must be available:
|
|
||||||
|
|
||||||
-for tool in sed awk ocaml ocamlc uname rm make cat m4 dirname basename; do
|
|
||||||
+for tool in sed ocaml ocamlc uname rm make cat m4 dirname basename; do
|
|
||||||
if in_path $tool; then true; else
|
|
||||||
echo "configure: $tool not in PATH; this is required" 1>&2
|
|
||||||
exit 1
|
|
@ -0,0 +1,33 @@ |
|||||||
|
opam-version: "2.0" |
||||||
|
authors: "Pierre Chambart" |
||||||
|
maintainer: "pierre.chambart@ocamlpro.com" |
||||||
|
homepage: "https://github.com/OCamlPro/ocplib-endian" |
||||||
|
build: [ |
||||||
|
["ocaml" "setup.ml" "-configure" "--disable-debug" "--prefix" prefix] |
||||||
|
["ocaml" "setup.ml" "-build"] |
||||||
|
] |
||||||
|
install: [ |
||||||
|
["ocaml" "setup.ml" "-install"] |
||||||
|
] |
||||||
|
remove: ["ocamlfind" "remove" "ocplib-endian"] |
||||||
|
depends: [ |
||||||
|
"ocaml" |
||||||
|
"base-bytes" |
||||||
|
"ocamlfind" |
||||||
|
"cppo" {>= "1.1.0"} |
||||||
|
"ocamlbuild" {build} |
||||||
|
] |
||||||
|
dev-repo: "git+https://github.com/OCamlPro/ocplib-endian.git" |
||||||
|
bug-reports: "https://github.com/OCamlPro/ocplib-endian/issues" |
||||||
|
synopsis: |
||||||
|
"Optimised functions to read and write int16/32/64 from strings and bigarrays, based on new primitives added in version 4.01." |
||||||
|
description: """ |
||||||
|
The library implements three modules: |
||||||
|
* [EndianString](https://github.com/OCamlPro/ocplib-endian/blob/master/src/endianString.cppo.mli) works directly on strings, and provides submodules BigEndian and LittleEndian, with their unsafe counter-parts; |
||||||
|
* [EndianBytes](https://github.com/OCamlPro/ocplib-endian/blob/master/src/endianBytes.cppo.mli) works directly on bytes, and provides submodules BigEndian and LittleEndian, with their unsafe counter-parts; |
||||||
|
* [EndianBigstring](https://github.com/OCamlPro/ocplib-endian/blob/master/src/endianBigstring.cppo.mli) works on bigstrings (Bigarrays of chars), and provides submodules BigEndian and LittleEndian, with their unsafe counter-parts;""" |
||||||
|
flags: light-uninstall |
||||||
|
url { |
||||||
|
src: "https://github.com/OCamlPro/ocplib-endian/archive/1.0.tar.gz" |
||||||
|
checksum: "md5=74b45ba33e189283170a748c2a3ed477" |
||||||
|
} |
@ -0,0 +1,35 @@ |
|||||||
|
opam-version: "2.0" |
||||||
|
maintainer: "whitequark <whitequark@whitequark.org>" |
||||||
|
authors: [ "whitequark <whitequark@whitequark.org>" ] |
||||||
|
license: "MIT" |
||||||
|
homepage: "https://github.com/whitequark/ppx_deriving_yojson" |
||||||
|
bug-reports: "https://github.com/whitequark/ppx_deriving_yojson/issues" |
||||||
|
dev-repo: "git://github.com/whitequark/ppx_deriving_yojson.git" |
||||||
|
tags: [ "syntax" "json" ] |
||||||
|
build: [ |
||||||
|
["dune" "subst"] {pinned} |
||||||
|
["dune" "build" "-p" name "-j" jobs] |
||||||
|
["dune" "runtest" "-p" name] {with-test} |
||||||
|
] |
||||||
|
depends: [ |
||||||
|
"ocaml" {>= "4.04.0" & < "4.10.0"} |
||||||
|
"yojson" {>= "1.6.0" & < "2.0.0"} |
||||||
|
"result" |
||||||
|
"ppx_deriving" {>= "4.0" & < "5.0"} |
||||||
|
"ppx_tools" {build} |
||||||
|
"ppxfind" {build} |
||||||
|
"dune" {>= "1.2"} |
||||||
|
"cppo" {build} |
||||||
|
"ounit" {with-test & >= "2.0.0"} |
||||||
|
] |
||||||
|
conflicts: [ |
||||||
|
"ppx_deriving" {= "4.2"} |
||||||
|
] |
||||||
|
synopsis: "JSON codec generator for OCaml" |
||||||
|
description: """ |
||||||
|
ppx_deriving_yojson is a ppx_deriving plugin that provides |
||||||
|
a JSON codec generator.""" |
||||||
|
url { |
||||||
|
src: "https://github.com/ocaml-ppx/ppx_deriving_yojson/archive/v3.5.1.tar.gz" |
||||||
|
checksum: "sha256=aefe9c673f2f0ee2beb9edcca5a4e332a9fe9266c81bc554b8df5cd375568994" |
||||||
|
} |
@ -0,0 +1,13 @@ |
|||||||
|
--- ./setup.ml
|
||||||
|
+++ ./setup.ml
|
||||||
|
@@ -6331,9 +6331,7 @@
|
||||||
|
[
|
||||||
|
"-classic-display";
|
||||||
|
"-no-log";
|
||||||
|
- "-no-links";
|
||||||
|
- "-install-lib-dir";
|
||||||
|
- (Filename.concat (standard_library ()) "ocamlbuild")
|
||||||
|
+ "-no-links"
|
||||||
|
]
|
||||||
|
else
|
||||||
|
[];
|
@ -0,0 +1,41 @@ |
|||||||
|
--- ./myocamlbuild.ml
|
||||||
|
+++ ./myocamlbuild.ml
|
||||||
|
@@ -573,6 +573,24 @@
|
||||||
|
Add a dependency after dropping support for 4.01 and earlier. *)
|
||||||
|
let dispatch_cppo = function
|
||||||
|
| After_rules -> begin
|
||||||
|
+ let is_directory s =
|
||||||
|
+ let slen = String.length s in
|
||||||
|
+ let s =
|
||||||
|
+ if Sys.os_type <> "Win32" || slen < 2 then
|
||||||
|
+ s
|
||||||
|
+ else
|
||||||
|
+ match s.[slen-1] with
|
||||||
|
+ | '\\' | '/' ->
|
||||||
|
+ if slen <> 3 || s.[1] <> ':' then
|
||||||
|
+ String.sub s 0 (slen -1)
|
||||||
|
+ else
|
||||||
|
+ (match s.[0] with
|
||||||
|
+ | 'A' .. 'Z' | 'a' .. 'z' -> s
|
||||||
|
+ | _ -> String.sub s 0 (slen -1))
|
||||||
|
+ | _ -> s
|
||||||
|
+ in
|
||||||
|
+ Pathname.is_directory s
|
||||||
|
+ in
|
||||||
|
let cppo_rules ext =
|
||||||
|
let dep = "%(name).cppo"-.-ext
|
||||||
|
and prod1 = "%(name: <*> and not <*.cppo>)"-.-ext
|
||||||
|
@@ -591,11 +609,11 @@
|
||||||
|
pflag ["cppo"] "cppo_D" (fun s -> S [A "-D"; A s]) ;
|
||||||
|
pflag ["cppo"] "cppo_U" (fun s -> S [A "-U"; A s]) ;
|
||||||
|
pflag ["cppo"] "cppo_I" (fun s ->
|
||||||
|
- if Pathname.is_directory s then S [A "-I"; P s]
|
||||||
|
+ if is_directory s then S [A "-I"; P s]
|
||||||
|
else S [A "-I"; P (Pathname.dirname s)]
|
||||||
|
) ;
|
||||||
|
pdep ["cppo"] "cppo_I" (fun s ->
|
||||||
|
- if Pathname.is_directory s then [] else [s]) ;
|
||||||
|
+ if is_directory s then [] else [s]) ;
|
||||||
|
flag ["cppo"; "cppo_q"] (A "-q") ;
|
||||||
|
flag ["cppo"; "cppo_s"] (A "-s") ;
|
||||||
|
flag ["cppo"; "cppo_n"] (A "-n") ;
|
@ -0,0 +1,34 @@ |
|||||||
|
{ |
||||||
|
"build": [ |
||||||
|
[ |
||||||
|
"bash", |
||||||
|
"-c", |
||||||
|
"#{os == 'windows' ? 'patch -p1 < ocplib-endian-0.8.patch' : 'true'}" |
||||||
|
], |
||||||
|
[ |
||||||
|
"bash", |
||||||
|
"-c", |
||||||
|
"#{os == 'windows' ? 'patch -p1 < esy-fix.patch' : 'true'}" |
||||||
|
], |
||||||
|
[ |
||||||
|
"ocaml", |
||||||
|
"setup.ml", |
||||||
|
"-configure", |
||||||
|
"--disable-debug", |
||||||
|
"--prefix", |
||||||
|
"#{self.install}" |
||||||
|
], |
||||||
|
[ |
||||||
|
"ocaml", |
||||||
|
"setup.ml", |
||||||
|
"-build" |
||||||
|
] |
||||||
|
], |
||||||
|
"install": [ |
||||||
|
[ |
||||||
|
"ocaml", |
||||||
|
"setup.ml", |
||||||
|
"-install" |
||||||
|
] |
||||||
|
] |
||||||
|
} |
Loading…
Reference in new issue