Skip to content

Commit

Permalink
generate opam file from dune-project again, fix #3
Browse files Browse the repository at this point in the history
  • Loading branch information
zapashcanon committed Nov 7, 2020
1 parent c03b1cb commit 106b6aa
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 8 deletions.
20 changes: 13 additions & 7 deletions directories.opam
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "An OCaml library that provides configuration, cache and data paths (and more!) following the suitable conventions on Linux, macOS and Windows"
description: "directories is an OCaml library that provides configuration, cache and data paths (and more!) following the suitable conventions on Linux, macOS and Windows. It is inspired by similar libraries for other languages such as directories-jvm. The following conventions are used: XDG Base Directory Specification and xdg-user-dirs on Linux, Known Folders on Windows, Standard Directories on macOS."
version: "0.1"
synopsis:
"An OCaml library that provides configuration, cache and data paths (and more!) following the suitable conventions on Linux, macOS and Windows"
description:
"directories is an OCaml library that provides configuration, cache and data paths (and more!) following the suitable conventions on Linux, macOS and Windows. It is inspired by similar libraries for other languages such as directories-jvm. The following conventions are used: XDG Base Directory Specification and xdg-user-dirs on Linux, Known Folders on Windows, Standard Directories on macOS."
maintainer: ["OCamlPro <[email protected]>"]
authors: ["OCamlPro <[email protected]>"]
license: "ISC"
homepage: "https://github.com/ocamlpro/directories"
bug-reports: "https://github.com/ocamlpro/directories/issues"
authors: "OCamlPro <[email protected]>"
maintainer: "OCamlPro <[email protected]>"
depends: [
"dune" {>= "2.0"}
"dune" {>= "2.1"}
"ocaml" {>= "4.07.0"}
"ctypes-foreign" {>= "0.4.0" & (os = "win32" | os = "cygwin")}
"ctypes" {>= "0.17.1" & (os = "win32" | os = "cygwin")}
"ctypes-foreign" {>= "0.4.0" | "os" != "win32" | "os" != "mingw"}
"ctypes" {>= "0.17.1" | "os" != "win32" | "os" != "mingw"}
]
build: [
["dune" "subst"] {pinned}
Expand All @@ -25,3 +30,4 @@ build: [
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/ocamlpro/directories.git"
37 changes: 36 additions & 1 deletion dune-project
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
(lang dune 2.0)
(lang dune 2.1)

(name directories)

(version 0.1)

(generate_opam_files true)

(license ISC)

(authors "OCamlPro <[email protected]>")

(maintainers "OCamlPro <[email protected]>")

(source
(github ocamlpro/directories))

(package
(name directories)
(synopsis
"An OCaml library that provides configuration, cache and data paths (and more!) following the suitable conventions on Linux, macOS and Windows")
(description
"directories is an OCaml library that provides configuration, cache and data paths (and more!) following the suitable conventions on Linux, macOS and Windows. It is inspired by similar libraries for other languages such as directories-jvm. The following conventions are used: XDG Base Directory Specification and xdg-user-dirs on Linux, Known Folders on Windows, Standard Directories on macOS.")
(depends
(ocaml
(>= 4.07.0))
(ctypes-foreign
(or
(or
(>= 0.4.0)
(<> os "win32"))
(<> os "mingw")))
(ctypes
(or
(or
(>= 0.17.1)
(<> os "win32"))
(<> os "mingw")))))

0 comments on commit 106b6aa

Please sign in to comment.