Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@
.PHONY: build doc clean

build:
jbuilder build -j16
dune build

doc:
@echo "waiting for jbuilder odoc support"
@#topkg doc
dune build @doc

clean:
-rm -R _build
-rm octavius.install
dune clean
15 changes: 15 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
(lang dune 1.11)
(name octavius)

(generate_opam_files true)

(maintainers leo@lpw25.net)
(authors "Leo White <leo@lpw25.net>")
(source (github ocaml-doc/octavius))
(documentation http://ocaml-doc.github.io/octavius/)
(license ISC)

(package
(name octavius)
(depends (ocaml (>= 4.03.0)))
(tags (doc ocamldoc org:ocaml-doc)))
36 changes: 21 additions & 15 deletions octavius.opam
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
opam-version: "1.2"
name: "octavius"
maintainer: "leo@lpw25.net"
authors: [ "Leo White <leo@lpw25.net>" ]
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
maintainer: ["leo@lpw25.net"]
authors: ["Leo White <leo@lpw25.net>"]
license: "ISC"
homepage: "https://github.com/ocaml-doc/octavius"
doc: "http://ocaml-doc.github.io/octavius/"
license: "ISC"
dev-repo: "http://github.com/ocaml-doc/octavius.git"
bug-reports: "https://github.com/ocaml-doc/octavius/issues"
tags: ["doc" "ocamldoc" "org:ocaml-doc"]

available: [ ocaml-version >= "4.03.0"]
depends: [
"ocamlfind" {build}
"jbuilder" {build}
"topkg" {build & >= "0.7.5"} ]

"dune" {>= "1.11"}
"ocaml" {>= "4.03.0"}
]
build: [
["jbuilder" "subst"] {pinned}
["jbuilder" "build" "-p" name "-j" jobs]
["dune" "subst"] {pinned}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/ocaml-doc/octavius.git"
3 changes: 0 additions & 3 deletions pkg/pkg.ml

This file was deleted.

7 changes: 7 additions & 0 deletions src/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
(ocamllex octLexer)

(ocamlyacc octParser)

(library
(name octavius)
(public_name octavius))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note, it's odd that Dune generates both of these for lang dune >= 1.1.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yh, I suppose the upgrader could be a bit more clever here.

8 changes: 0 additions & 8 deletions src/jbuild

This file was deleted.

4 changes: 4 additions & 0 deletions test/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(executable
(name main)
(public_name octavius)
(libraries octavius compiler-libs.common))
6 changes: 0 additions & 6 deletions test/jbuild

This file was deleted.