Skip to content

Commit

Permalink
Move opam packages definition in dune-project
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinepouille committed Mar 18, 2024
1 parent fec4bd9 commit ae2301c
Show file tree
Hide file tree
Showing 6 changed files with 245 additions and 65 deletions.
83 changes: 83 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
@@ -1 +1,84 @@
(lang dune 2.9)
(generate_opam_files)

(name kappa-tool-suite)
(version 4.1~dev) ; could be removed and generated at release time instead using dune-release
(source (github Kappa-Dev/KappaTools)) ; no need to specifybug-reports and dev-repo
(license LGPL-3.0-only)
(authors
"Jean Krivine" "Jérôme Feret" "Pierre Boutillier"
"Ioana Cristescu" "Mutaamba Maasha" "Lý Kim Quyên" "Antoine Pouille")
(maintainers "Antoine Pouille <[email protected]>"
"Pierre Boutillier <[email protected]>")
(homepage https://kappalanguage.org/)
(documentation https://kappalanguage.org/sites/kappalanguage.org/files/inline-files/Kappa_Manual.pdf)

(package
(name kappa-library)
(synopsis "Public internals of the Kappa tool suite")
(depends
(ocaml ( >= 4.05.0 ))
num
re
(yojson ( >= 2.0 ))
(lwt ( >= 4.2.0 ))
stdlib-shims
fmt
logs
result
)
; no need to declare dependancies in `dune` files: generated automatically
)

(package
(name kappa-binaries)
(synopsis "Command line interfaces of the Kappa tool suite")
(depends
(ocaml ( >= 4.04.0 ))
num
re
(yojson ( >= 1.6.0 ))
(lwt ( >= 4.2.0 ))
fmt
logs
kappa-library
)
(depopts
labltk)
)

(package
(name kappa-agents)
(synopsis "Backends for an interactive use of the Kappa tool suite")
(depends
(ocaml ( >= 4.05.0 ))
num
re
(yojson ( >= 1.6.0 ))
(lwt ( >= 4.2.0 ))
fmt
logs
kappa-library
atdgen-runtime
(atdgen (= build))
)
)

(package
(name kappa-server)
(synopsis "HTTP server to query the Kappa tool suite")
(depends
(ocaml ( >= 4.05.0 ))
num
re
(yojson ( >= 1.6.0 ))
(lwt ( >= 4.2.0 ))
fmt
logs
kappa-binaries
kappa-agents
cohttp-lwt-unix
atdgen-runtime
(atdgen (= build))
)
)
57 changes: 41 additions & 16 deletions kappa-agents.opam
Original file line number Diff line number Diff line change
@@ -1,28 +1,53 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "Backends for an interactive use of the Kappa tool suite"
version: "4.1~dev"
maintainer: "Pierre Boutillier <[email protected]>"
synopsis: "Backends for an interactive use of the Kappa tool suite"
maintainer: [
"Antoine Pouille <[email protected]>"
"Pierre Boutillier <[email protected]>"
]
authors: [
"Jean Krivine" "Jérôme Feret" "Pierre Boutillier"
"Ioana Cristescu" "Mutaamba Maasha" "Lý Kim Quyên"
"Jean Krivine"
"Jérôme Feret"
"Pierre Boutillier"
"Ioana Cristescu"
"Mutaamba Maasha"
"Lý Kim Quyên"
"Antoine Pouille"
]
license: "LGPL-3.0"
license: "LGPL-3.0-only"
homepage: "https://kappalanguage.org/"
bug-reports: "https://github.com/Kappa-Dev/KaSim/issues"
dev-repo: "git+https://github.com/Kappa-Dev/KaSim.git"

depends : [
"ocaml" { >= "4.05.0" }
doc:
"https://kappalanguage.org/sites/kappalanguage.org/files/inline-files/Kappa_Manual.pdf"
bug-reports: "https://github.com/Kappa-Dev/KappaTools/issues"
depends: [
"dune" {>= "2.9"}
"ocaml" {>= "4.05.0"}
"num"
"re"
"dune"
"yojson" { >= "1.6.0" }
"lwt" { >= "4.2.0" }
"yojson" {>= "1.6.0"}
"lwt" {>= "4.2.0"}
"fmt"
"logs"
"kappa-library"
"atdgen-runtime"
"atdgen" {build}
"atdgen" {= "build"}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"--promote-install-files=false"
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
["dune" "install" "-p" name "--create-install-files" name]
]

build: ["dune" "build" "-p" name "-j" jobs]
dev-repo: "git+https://github.com/Kappa-Dev/KappaTools.git"
59 changes: 40 additions & 19 deletions kappa-binaries.opam
Original file line number Diff line number Diff line change
@@ -1,32 +1,53 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "Command line interfaces of the Kappa tool suite"
version: "4.1~dev"
maintainer: "Pierre Boutillier <[email protected]>"
synopsis: "Command line interfaces of the Kappa tool suite"
maintainer: [
"Antoine Pouille <[email protected]>"
"Pierre Boutillier <[email protected]>"
]
authors: [
"Jean Krivine" "Jérôme Feret" "Pierre Boutillier"
"Ioana Cristescu" "Mutaamba Maasha" "Lý Kim Quyên"
"Jean Krivine"
"Jérôme Feret"
"Pierre Boutillier"
"Ioana Cristescu"
"Mutaamba Maasha"
"Lý Kim Quyên"
"Antoine Pouille"
]
license: "LGPL-3.0"
license: "LGPL-3.0-only"
homepage: "https://kappalanguage.org/"
bug-reports: "https://github.com/Kappa-Dev/KaSim/issues"
dev-repo: "git+https://github.com/Kappa-Dev/KaSim.git"

depends : [
"ocaml" { >= "4.04.0" }
doc:
"https://kappalanguage.org/sites/kappalanguage.org/files/inline-files/Kappa_Manual.pdf"
bug-reports: "https://github.com/Kappa-Dev/KappaTools/issues"
depends: [
"dune" {>= "2.9"}
"ocaml" {>= "4.04.0"}
"num"
"re"
"dune"
"yojson" { >= "1.6.0" }
"lwt" { >= "4.2.0" }
"yojson" {>= "1.6.0"}
"lwt" {>= "4.2.0"}
"fmt"
"logs"
"kappa-library"
"odoc" {with-doc}
]

depopts: [
"labltk"
depopts: ["labltk"]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"--promote-install-files=false"
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
["dune" "install" "-p" name "--create-install-files" name]
]

build: ["dune" "build" "-p" name "-j" jobs]

dev-repo: "git+https://github.com/Kappa-Dev/KappaTools.git"
run-test: [ make "check" ]
1 change: 1 addition & 0 deletions kappa-binaries.opam.template
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
run-test: [ make "check" ]
53 changes: 39 additions & 14 deletions kappa-library.opam
Original file line number Diff line number Diff line change
@@ -1,27 +1,52 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "4.1~dev"
synopsis: "Public internals of the Kappa tool suite"
maintainer: "Pierre Boutillier <[email protected]>"
maintainer: [
"Antoine Pouille <[email protected]>"
"Pierre Boutillier <[email protected]>"
]
authors: [
"Jean Krivine" "Jérôme Feret" "Pierre Boutillier"
"Ioana Cristescu" "Mutaamba Maasha" "Lý Kim Quyên"
"Jean Krivine"
"Jérôme Feret"
"Pierre Boutillier"
"Ioana Cristescu"
"Mutaamba Maasha"
"Lý Kim Quyên"
"Antoine Pouille"
]
license: "LGPL-3.0"
license: "LGPL-3.0-only"
homepage: "https://kappalanguage.org/"
bug-reports: "https://github.com/Kappa-Dev/KaSim/issues"
dev-repo: "git+https://github.com/Kappa-Dev/KaSim.git"

depends : [
"ocaml" { >= "4.05.0" }
doc:
"https://kappalanguage.org/sites/kappalanguage.org/files/inline-files/Kappa_Manual.pdf"
bug-reports: "https://github.com/Kappa-Dev/KappaTools/issues"
depends: [
"dune" {>= "2.9"}
"ocaml" {>= "4.05.0"}
"num"
"re"
"dune"
"yojson" { >= "2.0" }
"lwt" { >= "4.2.0" }
"yojson" {>= "2.0"}
"lwt" {>= "4.2.0"}
"stdlib-shims"
"fmt"
"logs"
"result"
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"--promote-install-files=false"
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
["dune" "install" "-p" name "--create-install-files" name]
]

build: ["dune" "build" "-p" name "-j" jobs]
dev-repo: "git+https://github.com/Kappa-Dev/KappaTools.git"
57 changes: 41 additions & 16 deletions kappa-server.opam
Original file line number Diff line number Diff line change
@@ -1,30 +1,55 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis:"HTTP server to query the Kappa tool suite"
version: "4.1~dev"
maintainer: "Pierre Boutillier <[email protected]>"
synopsis: "HTTP server to query the Kappa tool suite"
maintainer: [
"Antoine Pouille <[email protected]>"
"Pierre Boutillier <[email protected]>"
]
authors: [
"Jean Krivine" "Jérôme Feret" "Pierre Boutillier"
"Ioana Cristescu" "Mutaamba Maasha" "Lý Kim Quyên"
"Jean Krivine"
"Jérôme Feret"
"Pierre Boutillier"
"Ioana Cristescu"
"Mutaamba Maasha"
"Lý Kim Quyên"
"Antoine Pouille"
]
license: "LGPL-3.0"
license: "LGPL-3.0-only"
homepage: "https://kappalanguage.org/"
bug-reports: "https://github.com/Kappa-Dev/KaSim/issues"
dev-repo: "git+https://github.com/Kappa-Dev/KaSim.git"

depends : [
"ocaml" { >= "4.05.0" }
doc:
"https://kappalanguage.org/sites/kappalanguage.org/files/inline-files/Kappa_Manual.pdf"
bug-reports: "https://github.com/Kappa-Dev/KappaTools/issues"
depends: [
"dune" {>= "2.9"}
"ocaml" {>= "4.05.0"}
"num"
"re"
"dune"
"yojson" { >= "1.6.0" }
"lwt" { >= "4.2.0" }
"yojson" {>= "1.6.0"}
"lwt" {>= "4.2.0"}
"fmt"
"logs"
"kappa-binaries"
"kappa-agents"
"cohttp-lwt-unix"
"atdgen-runtime"
"atdgen" {build}
"atdgen" {= "build"}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"--promote-install-files=false"
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
["dune" "install" "-p" name "--create-install-files" name]
]

build: ["dune" "build" "-p" name "-j" jobs]
dev-repo: "git+https://github.com/Kappa-Dev/KappaTools.git"

0 comments on commit ae2301c

Please sign in to comment.