diff --git a/Makefile b/Makefile index 31e7410..110f6f2 100644 --- a/Makefile +++ b/Makefile @@ -31,4 +31,8 @@ run: format: $(DUNE) build --auto-promote @fmt opam lint --normalise tcalc.opam > tcalc.tmp && mv tcalc.tmp tcalc.opam + dune format-dune-file dune-project > $$$$ && mv $$$$ dune-project git ls-files '**/*.[ch]' | xargs -n1 indent -nut -i8 + +# vim:ts=8:noet: + diff --git a/dune-project b/dune-project index 5557da6..c7a9628 100644 --- a/dune-project +++ b/dune-project @@ -1,2 +1,27 @@ (lang dune 2.0) + (name tcalc) + +(generate_opam_files true) + +(source + (github lindig/tcalc)) + +(license Unlicense) + +(authors "Christian Lindig ") + +(maintainers "Christian Lindig ") + +(package + (name tcalc) + (synopsis "Minimal desktop calculator for timestamps") + (description + "TCalc implements a minimal desktop calculator that in addition to floating point numbers recognises durations in hh:min:sec format and converts them to seconds. This can simplify time-based calculations.") + (depends + (dune + (>= "2.0")) + (ocaml + (>= 4.08.0)) + (linenoise + (>= 1.3.1)))) diff --git a/tcalc.opam b/tcalc.opam index 6f34d97..1cc398c 100644 --- a/tcalc.opam +++ b/tcalc.opam @@ -14,5 +14,18 @@ depends: [ "ocaml" {>= "4.08.0"} "linenoise" {>= "1.3.1"} ] -build: ["dune" "build" "-p" name "-j" jobs] +build: [ + ["dune" "subst"] {pinned} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@runtest" {with-test} + "@doc" {with-doc} + ] +] dev-repo: "git+https://github.com/lindig/tcalc.git"