Skip to content

Commit

Permalink
Generate opam files using dune
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterDA committed Sep 12, 2024
1 parent 219fc30 commit cb94738
Show file tree
Hide file tree
Showing 5 changed files with 123 additions and 56 deletions.
26 changes: 14 additions & 12 deletions angstrom-async.opam
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
maintainer: "Spiros Eliopoulos <[email protected]>"
authors: [ "Spiros Eliopoulos <[email protected]>" ]
synopsis: "Async support for Angstrom"
maintainer: ["Spiros Eliopoulos <[email protected]>"]
authors: ["Spiros Eliopoulos <[email protected]>"]
license: "BSD-3-clause"
homepage: "https://github.com/inhabitedtype/angstrom"
bug-reports: "https://github.com/inhabitedtype/angstrom/issues"
dev-repo: "git+https://github.com/inhabitedtype/angstrom.git"
depends: [
"dune" {>= "3.16"}
"ocaml" {>= "4.04.1"}
"angstrom" {= version}
"async" {>= "v0.10.0"}
"core_bench" {with-test}
"core_unix" {>= "v0.15.0" & with-test}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
Expand All @@ -19,12 +29,4 @@ build: [
"@doc" {with-doc}
]
]
depends: [
"ocaml" {>= "4.04.1"}
"dune" {>= "3.16"}
"angstrom" {= version}
"async" {>= "v0.10.0"}
"core_bench" {with-test}
"core_unix" {with-test & >= "v0.15.0"}
]
synopsis: "Async support for Angstrom"
dev-repo: "git+https://github.com/inhabitedtype/angstrom.git"
26 changes: 14 additions & 12 deletions angstrom-lwt-unix.opam
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
maintainer: "Spiros Eliopoulos <[email protected]>"
authors: [ "Spiros Eliopoulos <[email protected]>" ]
synopsis: "Lwt_unix support for Angstrom"
maintainer: ["Spiros Eliopoulos <[email protected]>"]
authors: ["Spiros Eliopoulos <[email protected]>"]
license: "BSD-3-clause"
homepage: "https://github.com/inhabitedtype/angstrom"
bug-reports: "https://github.com/inhabitedtype/angstrom/issues"
dev-repo: "git+https://github.com/inhabitedtype/angstrom.git"
depends: [
"dune" {>= "3.16"}
"ocaml" {>= "4.03.0"}
"angstrom" {= version}
"lwt"
"base-unix"
"core_bench" {with-test}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
Expand All @@ -19,12 +29,4 @@ build: [
"@doc" {with-doc}
]
]
depends: [
"ocaml" {>= "4.03.0"}
"dune" {>= "3.16"}
"angstrom" {= version}
"lwt"
"base-unix"
"core_bench" {with-test}
]
synopsis: "Lwt_unix support for Angstrom"
dev-repo: "git+https://github.com/inhabitedtype/angstrom.git"
22 changes: 12 additions & 10 deletions angstrom-unix.opam
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
maintainer: "Spiros Eliopoulos <[email protected]>"
authors: [ "Spiros Eliopoulos <[email protected]>" ]
synopsis: "Unix support for Angstrom"
maintainer: ["Spiros Eliopoulos <[email protected]>"]
authors: ["Spiros Eliopoulos <[email protected]>"]
license: "BSD-3-clause"
homepage: "https://github.com/inhabitedtype/angstrom"
bug-reports: "https://github.com/inhabitedtype/angstrom/issues"
dev-repo: "git+https://github.com/inhabitedtype/angstrom.git"
depends: [
"dune" {>= "3.16"}
"ocaml" {>= "4.03.0"}
"angstrom" {= version}
"base-unix"
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
Expand All @@ -19,10 +27,4 @@ build: [
"@doc" {with-doc}
]
]
depends: [
"ocaml" {>= "4.03.0"}
"dune" {>= "3.16"}
"angstrom" {= version}
"base-unix"
]
synopsis: "Unix support for Angstrom"
dev-repo: "git+https://github.com/inhabitedtype/angstrom.git"
48 changes: 26 additions & 22 deletions angstrom.opam
Original file line number Diff line number Diff line change
@@ -1,10 +1,32 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
maintainer: "Spiros Eliopoulos <[email protected]>"
authors: [ "Spiros Eliopoulos <[email protected]>" ]
synopsis: "Parser combinators built for speed and memory-efficiency"
description: """
Angstrom is a parser-combinator library that makes it easy to write
efficient, expressive, and reusable parsers suitable for
high-performance applications. It exposes monadic and applicative
interfaces for composition, and supports incremental input through
buffered and unbuffered interfaces. Both interfaces give the user
total control over the blocking behavior of their application, with
the unbuffered interface enabling zero-copy IO. Parsers are
backtracking by default and support unbounded lookahead.
"""
maintainer: ["Spiros Eliopoulos <[email protected]>"]
authors: ["Spiros Eliopoulos <[email protected]>"]
license: "BSD-3-clause"
homepage: "https://github.com/inhabitedtype/angstrom"
bug-reports: "https://github.com/inhabitedtype/angstrom/issues"
dev-repo: "git+https://github.com/inhabitedtype/angstrom.git"
depends: [
"dune" {>= "3.16"}
"ocaml" {>= "4.04.0"}
"alcotest" {>= "0.8.1" & with-test}
"bigstringaf"
"ppx_let" {>= "v0.14.0" & with-test}
"core_bench" {with-test}
"core_unix" {>= "v0.15.0" & with-test}
"ocaml-syntax-shims" {build}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
Expand All @@ -19,22 +41,4 @@ build: [
"@doc" {with-doc}
]
]
depends: [
"ocaml" {>= "4.04.0"}
"dune" {>= "3.16"}
"alcotest" {with-test & >= "0.8.1"}
"bigstringaf"
"ppx_let" {with-test & >= "v0.14.0"}
"core_bench" {with-test}
"core_unix" {with-test & >= "v0.15.0"}
"ocaml-syntax-shims" {build}
]
synopsis: "Parser combinators built for speed and memory-efficiency"
description: """
Angstrom is a parser-combinator library that makes it easy to write efficient,
expressive, and reusable parsers suitable for high-performance applications. It
exposes monadic and applicative interfaces for composition, and supports
incremental input through buffered and unbuffered interfaces. Both interfaces
give the user total control over the blocking behavior of their application,
with the unbuffered interface enabling zero-copy IO. Parsers are backtracking by
default and support unbounded lookahead."""
dev-repo: "git+https://github.com/inhabitedtype/angstrom.git"
57 changes: 57 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
@@ -1,3 +1,60 @@
(lang dune 3.16)
(name angstrom)

(formatting (enabled_for dune))
(generate_opam_files true)

(source (github inhabitedtype/angstrom))
(license "BSD-3-clause")
(authors "Spiros Eliopoulos <[email protected]>")
(maintainers "Spiros Eliopoulos <[email protected]>")

(package
(name angstrom)
(synopsis "Parser combinators built for speed and memory-efficiency")
(description
"\| Angstrom is a parser-combinator library that makes it easy to write
"\| efficient, expressive, and reusable parsers suitable for
"\| high-performance applications. It exposes monadic and applicative
"\| interfaces for composition, and supports incremental input through
"\| buffered and unbuffered interfaces. Both interfaces give the user
"\| total control over the blocking behavior of their application, with
"\| the unbuffered interface enabling zero-copy IO. Parsers are
"\| backtracking by default and support unbounded lookahead.
)
(depends
(ocaml (>= "4.04.0"))
(alcotest (and (>= "0.8.1") :with-test))
bigstringaf
(ppx_let (and (>= "v0.14.0") :with-test))
(core_bench :with-test)
(core_unix (and (>= "v0.15.0") :with-test))
(ocaml-syntax-shims :build)))

(package
(name angstrom-unix)
(synopsis "Unix support for Angstrom")
(depends
(ocaml (>= "4.03.0"))
(angstrom (= :version))
base-unix))

(package
(name angstrom-lwt-unix)
(synopsis "Lwt_unix support for Angstrom")
(depends
(ocaml (>= "4.03.0"))
(angstrom (= :version))
lwt
base-unix
(core_bench :with-test)))

(package
(name angstrom-async)
(synopsis "Async support for Angstrom")
(depends
(ocaml (>= "4.04.1"))
(angstrom (= :version))
(async (>= "v0.10.0"))
(core_bench :with-test)
(core_unix (and (>= "v0.15.0") :with-test))))

0 comments on commit cb94738

Please sign in to comment.