Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Dune to generate OPAM package definitions #1191

Merged
merged 3 commits into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 103 additions & 3 deletions dune-project
Original file line number Diff line number Diff line change
@@ -1,4 +1,104 @@
(lang dune 2.7)
(using menhir 2.0)
(name links)
(implicit_transitive_deps false)
;; dune language version (NOTE this comment applies to the above line; it is intentionally placed here!)
(using menhir 2.0) ;; enable use of menhir
(name links) ;; package name
(implicit_transitive_deps false) ;; hides transitive dependencies in libraries/executables/tests
(generate_opam_files true) ;; generate .opam package files using the descriptions defined in this file


;;
;; Project metainformation
;;

(source
(github links-lang/links))
(homepage
https://links-lang.org)
(authors
"The Links Team <[email protected]>")
(maintainers
"Daniel Hillerström <[email protected]>")
(license
GPL-3.0-only)
(documentation
"https://links-lang.org/quick-help.html")

;;
;; The Links Programmming System
;;

(package
(name links)
(synopsis "The Links Programming Language")
(description "Links is a functional programming language designed to make web programming easier.")
(depends (ocaml (>= : 4.14.0))
(dune-configurator (>= : 3.8))
ppx_deriving
(ppx_deriving_yojson (>= 3.3))
base64
linenoise
ANSITerminal
(lwt (>= 5.0.0))
cohttp
cohttp-lwt
cohttp-lwt-unix
conduit-lwt-unix
uri
tls
websocket
websocket-lwt-unix
safepass
result
ocamlfind
(menhir (>= 20210419))
(ppx_sexp_conv (>= v0.16.0))
(calendar (>= 2.0.4))
(rdf_lwt (>= 0.13.0)))
(tags
("web programming" "tierless" "multi-tier" "effect handlers" "effect typing" "session types"
"concurrency" "webpage" "extensible data types" "language-integrated queries")))

;;
;; Links PostgreSQL driver
;;

(package
(name links-postgresql)
(synopsis "Postgresql database driver for the Links Programming Language")
(description "Postgresql database driver for the Links Programming Language")
(depends (links (= :version))
postgresql)
(tags
("postgresql" "database")))

;;
;; Links SQLite3 driver
;;

(package
(name links-sqlite3)
(synopsis "SQLite database driver for the Links Programming Language")
(description "SQLite database driver for the Links Programming Language")
(depends (links (= :version))
sqlite3)
(tags
("sqlite" "database")))

;;
;; Links MySQL driver
;;

(package
(name links-mysql)
(synopsis "MySQL database driver for the Links Programming Language")
(description "MySQL database driver for the Links Programming Language")
(depends (links (= :version))
conf-mysql
mysql8)
(tags
("mysql" "database")))



; See the complete stanza docs at https://dune.readthedocs.io/en/stable/dune-files.html#dune-project

37 changes: 24 additions & 13 deletions links-mysql.opam
Original file line number Diff line number Diff line change
@@ -1,22 +1,33 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
maintainer: "James Cheney <[email protected]>"
authors: "The Links Team <[email protected]>"
synopsis: "MySQL database driver for the Links Programming Language"
description: "MySQL database driver for the Links Programming Language"
homepage: "https://github.com/links-lang/links"
dev-repo: "git+https://github.com/links-lang/links.git"
bug-reports: "https://github.com/links-lang/links/issues"
maintainer: ["Daniel Hillerström <[email protected]>"]
authors: ["The Links Team <[email protected]>"]
license: "GPL-3.0-only"

build: [
[ "dune" "subst" ] {dev}
[ "dune" "build" "-p" name "-j" jobs ]
]

tags: ["mysql" "database"]
homepage: "https://links-lang.org"
doc: "https://links-lang.org/quick-help.html"
bug-reports: "https://github.com/links-lang/links/issues"
depends: [
"ocaml" {>= "4.08.0"}
"dune" {>= "2.7"}
"links" {= version}
"conf-mysql"
"mysql8"
"links" {= version}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/links-lang/links.git"
38 changes: 24 additions & 14 deletions links-postgresql.opam
Original file line number Diff line number Diff line change
@@ -1,22 +1,32 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
maintainer: "Daniel Hillerström <[email protected]>"
authors: "The Links Team <[email protected]>"
synopsis: "Postgresql database driver for the Links Programming Language"
description: "Postgresql database driver for the Links Programming Language"
homepage: "https://github.com/links-lang/links"
dev-repo: "git+https://github.com/links-lang/links.git"
bug-reports: "https://github.com/links-lang/links/issues"
maintainer: ["Daniel Hillerström <[email protected]>"]
authors: ["The Links Team <[email protected]>"]
license: "GPL-3.0-only"


build: [
[ "dune" "subst" ] {dev}
[ "dune" "build" "-p" name "-j" jobs ]
]

tags: ["postgresql" "database"]
homepage: "https://links-lang.org"
doc: "https://links-lang.org/quick-help.html"
bug-reports: "https://github.com/links-lang/links/issues"
depends: [
"ocaml" {>= "4.08.0"}
"dune" {>= "2.7"}
"postgresql"
"links" {= version}
"postgresql"
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/links-lang/links.git"
37 changes: 24 additions & 13 deletions links-sqlite3.opam
Original file line number Diff line number Diff line change
@@ -1,21 +1,32 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
maintainer: "Daniel Hillerström <[email protected]>"
authors: "The Links Team <[email protected]>"
synopsis: "SQLite database driver for the Links Programming Language"
description: "SQLite database driver for the Links Programming Language"
homepage: "https://github.com/links-lang/links"
dev-repo: "git+https://github.com/links-lang/links.git"
bug-reports: "https://github.com/links-lang/links/issues"
maintainer: ["Daniel Hillerström <[email protected]>"]
authors: ["The Links Team <[email protected]>"]
license: "GPL-3.0-only"

build: [
[ "dune" "subst" ] {dev}
[ "dune" "build" "-p" name "-j" jobs ]
]

tags: ["sqlite" "database"]
homepage: "https://links-lang.org"
doc: "https://links-lang.org/quick-help.html"
bug-reports: "https://github.com/links-lang/links/issues"
depends: [
"ocaml" {>= "4.08.0"}
"dune" {>= "2.7"}
"sqlite3"
"links" {= version}
"sqlite3"
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/links-lang/links.git"
40 changes: 27 additions & 13 deletions links.opam
Original file line number Diff line number Diff line change
@@ -1,22 +1,30 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
maintainer: "Daniel Hillerström <[email protected]>"
authors: "The Links Team <[email protected]>"
synopsis: "The Links Programming Language"
description: "Links is a functional programming language designed to make web programming easier."
homepage: "https://github.com/links-lang/links"
dev-repo: "git+https://github.com/links-lang/links.git"
bug-reports: "https://github.com/links-lang/links/issues"
description:
"Links is a functional programming language designed to make web programming easier."
maintainer: ["Daniel Hillerström <[email protected]>"]
authors: ["The Links Team <links-[email protected]>"]
license: "GPL-3.0-only"


build: [
[ "dune" "exec" "preinstall/preinstall.exe" "--" "-libdir" _:lib ]
[ make "opam-build-links.opam" ]
tags: [
"web programming"
"tierless"
"multi-tier"
"effect handlers"
"effect typing"
"session types"
"concurrency"
"webpage"
"extensible data types"
"language-integrated queries"
]

homepage: "https://links-lang.org"
doc: "https://links-lang.org/quick-help.html"
bug-reports: "https://github.com/links-lang/links/issues"
depends: [
"ocaml" {>= "4.08.0"}
"dune" {>= "2.7"}
"ocaml" { >= "4.14.0"}
"dune-configurator" { >= "3.8"}
"ppx_deriving"
"ppx_deriving_yojson" {>= "3.3"}
"base64"
Expand All @@ -38,4 +46,10 @@ depends: [
"ppx_sexp_conv" {>= "v0.16.0"}
"calendar" {>= "2.0.4"}
"rdf_lwt" {>= "0.13.0"}
"odoc" {with-doc}
]
dev-repo: "git+https://github.com/links-lang/links.git"
build: [
[ "dune" "exec" "preinstall/preinstall.exe" "--" "-libdir" _:lib ]
[ make "opam-build-links.opam" ]
]
4 changes: 4 additions & 0 deletions links.opam.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
build: [
[ "dune" "exec" "preinstall/preinstall.exe" "--" "-libdir" _:lib ]
[ make "opam-build-links.opam" ]
]
Loading