From 0d3a279481f88f40b3dbe25a5e1866ccff900d4c Mon Sep 17 00:00:00 2001 From: zapashcanon Date: Sat, 7 Nov 2020 20:21:23 +0100 Subject: [PATCH] generate opam file from dune-project again, fix #3 --- directories.opam | 20 +++++++++++++------- dune-project | 37 ++++++++++++++++++++++++++++++++++++- 2 files changed, 49 insertions(+), 8 deletions(-) diff --git a/directories.opam b/directories.opam index 194bed6..98b7191 100644 --- a/directories.opam +++ b/directories.opam @@ -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 "] +authors: ["OCamlPro "] +license: "ISC" homepage: "https://github.com/ocamlpro/directories" bug-reports: "https://github.com/ocamlpro/directories/issues" -authors: "OCamlPro " -maintainer: "OCamlPro " 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"} + "ctype" {>= "0.17.1" | "os" != "win32" | "os" != "mingw"} ] build: [ ["dune" "subst"] {pinned} @@ -25,3 +30,4 @@ build: [ "@doc" {with-doc} ] ] +dev-repo: "git+https://github.com/ocamlpro/directories.git" diff --git a/dune-project b/dune-project index 46f71e7..4ae1fa3 100644 --- a/dune-project +++ b/dune-project @@ -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 ") + +(maintainers "OCamlPro ") + +(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"))) + (ctype + (or + (or + (>= 0.17.1) + (<> os "win32")) + (<> os "mingw")))))