Skip to content

Commit

Permalink
Generate *.opam files
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Lindig <lindig@gmail.com>
  • Loading branch information
lindig committed Jun 12, 2024
1 parent cdb946e commit 72ffe6e
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:

25 changes: 25 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
@@ -1,2 +1,27 @@
(lang dune 2.0)

(name tcalc)

(generate_opam_files true)

(source
(github lindig/tcalc))

(license Unlicense)

(authors "Christian Lindig <lindig@gmail.com>")

(maintainers "Christian Lindig <lindig@gmail.com>")

(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))))
15 changes: 14 additions & 1 deletion tcalc.opam
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 72ffe6e

Please sign in to comment.