-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ipaddr-sexp and macaddr-sexp packages
- Loading branch information
Showing
6 changed files
with
88 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
opam-version: "2.0" | ||
maintainer: "anil@recoil.org" | ||
authors: ["David Sheets" "Anil Madhavapeddy" "Hugo Heuzard"] | ||
synopsis: "A library for manipulation of IP (and MAC) address representations" | ||
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" {build} | ||
"ipaddr" | ||
"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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,34 @@ | ||
(executables | ||
(names test_ipaddr test_macaddr test_ppx) | ||
(rule (copy# ../lib/ipaddr_sexp.ml ipaddr_sexp.ml)) | ||
(rule (copy# ../lib/macaddr_sexp.ml macaddr_sexp.ml)) | ||
|
||
(library | ||
(name test_macaddr_sexp) | ||
(wrapped false) | ||
(modules macaddr_sexp) | ||
(preprocess (pps ppx_sexp_conv)) | ||
(libraries macaddr sexplib0)) | ||
|
||
(library | ||
(name test_ipaddr_sexp) | ||
(wrapped false) | ||
(modules ipaddr_sexp) | ||
(preprocess (pps ppx_sexp_conv)) | ||
(libraries ipaddr oUnit ipaddr.sexp macaddr.sexp)) | ||
(libraries ipaddr sexplib0)) | ||
|
||
(alias | ||
(name runtest) | ||
(deps test_ppx.exe) | ||
(action (run %{deps}))) | ||
(test | ||
(name test_ipaddr) | ||
(package ipaddr) | ||
(modules test_ipaddr) | ||
(libraries ipaddr test_ipaddr_sexp oUnit)) | ||
|
||
(alias | ||
(name runtest) | ||
(deps test_macaddr.exe) | ||
(action (run %{deps}))) | ||
(test | ||
(name test_macaddr) | ||
(package macaddr) | ||
(modules test_macaddr) | ||
(libraries macaddr test_macaddr_sexp oUnit)) | ||
|
||
(alias | ||
(name runtest) | ||
(deps test_ipaddr.exe) | ||
(action (run %{deps}))) | ||
(test | ||
(name test_ppx) | ||
(modules test_ppx) | ||
(package ipaddr) | ||
(libraries ipaddr macaddr test_ipaddr_sexp test_macaddr_sexp oUnit)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
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" {build} | ||
"macaddr" | ||
"ounit" {with-test} | ||
"ppx_sexp_conv" {>= "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: """ | ||
Sexp convertions for macaddr | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters