From 791318c39a3a55e3edca880dd1955c0f9a9346de Mon Sep 17 00:00:00 2001 From: Benjamin San Souci Date: Tue, 16 May 2017 22:03:09 -0700 Subject: [PATCH] Depend on opam_of_packagejson. --- META | 5 +++++ ReasonNativeProject.install | 12 ++++++++++-- opam | 21 ++++++--------------- package.json | 21 +++++++++++++++++++++ 4 files changed, 42 insertions(+), 17 deletions(-) create mode 100644 META create mode 100644 package.json diff --git a/META b/META new file mode 100644 index 0000000..ff75b28 --- /dev/null +++ b/META @@ -0,0 +1,5 @@ +version = "0.0.1" +description = "My reason example project." + +archive(byte) = "ReasonNativeProject.cma" +archive(native) = "ReasonNativeProject.cmxa" diff --git a/ReasonNativeProject.install b/ReasonNativeProject.install index e2f6d09..c1c789b 100644 --- a/ReasonNativeProject.install +++ b/ReasonNativeProject.install @@ -1,4 +1,12 @@ # ReasonNativeProject -bin: [ - "_build/src/index.native" {"index"} ] +lib: [ + "./META" {"META"} + "./opam" {"opam"} + "_build/src/ReasonNativeProject.a" {"ReasonNativeProject.a"} + "_build/src/ReasonNativeProject.cma" {"ReasonNativeProject.cma"} + "_build/src/ReasonNativeProject.cmi" {"ReasonNativeProject.cmi"} + "_build/src/ReasonNativeProject.cmo" {"ReasonNativeProject.cmo"} + "_build/src/ReasonNativeProject.cmx" {"ReasonNativeProject.cmx"} + "_build/src/ReasonNativeProject.cmxa" {"ReasonNativeProject.cmxa"} + "_build/src/ReasonNativeProject.o" {"ReasonNativeProject.o"} ] diff --git a/opam b/opam index 400ce9f..7309d21 100644 --- a/opam +++ b/opam @@ -1,21 +1,12 @@ opam-version: "1.2" -name: "ReasonNativeProject" version: "0.0.1" -maintainer: "Jordan Walke " -authors: [ - "Jordan Walke " - "Maxwell Bernstein " +dev-repo: "https://github.com/reasonml/ReasonNativeProject.git" +maintainer: "FirstName LastName " +authors: [ "FirstName LastName " ] +depends: [ + "reason" { build & >= "1.13.3" } ] -license: "BSD" -homepage: "https://github.com/reasonml/ReasonNativeProject" -doc: "https://reasonml.github.io/ReasonNativeProject/" -bug-reports: "https://github.com/reasonml/ReasonNativeProject/issues" -dev-repo: "git://github.com/reasonml/ReasonNativeProject.git" -tags: [ "reason" "example" ] build: [ - [make "build"] -] -depends: [ - "reason" {= "1.13.3"} + [ make "build" ] ] available: [ ocaml-version >= "4.02" & ocaml-version < "4.05" ] diff --git a/package.json b/package.json new file mode 100644 index 0000000..4b0a2ca --- /dev/null +++ b/package.json @@ -0,0 +1,21 @@ +{ + "name": "ReasonNativeProject", + "version": "0.0.1", + "description": "My reason example project.", + "author": "FirstName LastName ", + "repository": { + "type": "git", + "url": "https://github.com/reasonml/ReasonNativeProject.git" + }, + "scripts": { + "release": "opam_of_packagejson -gen-meta -gen-opam -gen-install package.json && opam publish" + }, + "devDependencies": { + "opam_of_packagejson": "*" + }, + "opam": { + "dependencies": { + "reason": "build & >= \"1.13.3\"" + } + } +}