Skip to content

Commit

Permalink
Replace manual opam file with template
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
  • Loading branch information
rgrinberg committed May 2, 2019
1 parent 352f99f commit 65a6e4f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
23 changes: 10 additions & 13 deletions dune.opam
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
opam-version: "2.0"
maintainer: "opensource@janestreet.com"
authors: ["Jane Street Group, LLC <opensource@janestreet.com>"]
homepage: "https://github.com/ocaml/dune"
bug-reports: "https://github.com/ocaml/dune/issues"
dev-repo: "git+https://github.com/ocaml/dune.git"
license: "MIT"
depends: [
"ocaml" {>= "4.02"}
"base-unix"
"base-threads"
]
build: [
# opam 2 sets OPAM_SWITCH_PREFIX, so we don't need a hardcoded path
["ocaml" "configure.ml" "--libdir" lib] {opam-version < "2"}
["ocaml" "bootstrap.ml"]
["./boot.exe" "--release" "--subst"] {pinned}
["./boot.exe" "--release" "-j" jobs]
]
opam-version: "2.0"
dev-repo: "git+https://github.com/ocaml/dune.git"
authors: ["Jane Street Group, LLC <opensource@janestreet.com>"]
license: "MIT"
conflicts: [
"jbuilder" {!= "transition"}
"odoc" {< "1.3.0"}
]
synopsis: "Fast, portable and opinionated build system"
depends: [
"ocaml" {>= "4.02"}
"base-unix"
"base-threads"
]
description: """
dune is a build system that was designed to simplify the release of
Jane Street packages. It reads metadata from "dune" files following a
Expand All @@ -40,3 +36,4 @@ several opam roots/switches simultaneously. This helps maintaining
packages across several versions of OCaml and gives cross-compilation
for free.
"""
synopsis: "Fast, portable and opinionated build system"
7 changes: 7 additions & 0 deletions dune.opam.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
build: [
# opam 2 sets OPAM_SWITCH_PREFIX, so we don't need a hardcoded path
["ocaml" "configure.ml" "--libdir" lib] {opam-version < "2"}
["ocaml" "bootstrap.ml"]
["./boot.exe" "--release" "--subst"] {pinned}
["./boot.exe" "--release" "-j" jobs]
]

0 comments on commit 65a6e4f

Please sign in to comment.