Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup and new tests #87

Merged
merged 16 commits into from
Jul 16, 2024
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
40 changes: 24 additions & 16 deletions cppo.opam
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
build: [
["dune" "subst"] {pinned}
["dune" "build" "-p" name "-j" jobs]
["dune" "runtest" "-p" name "-j" jobs] {with-test}
["dune" "build" "-p" name "@doc"] {with-doc}
]
maintainer: [
"Martin Jambon <[email protected]>" "Yishuai Li <[email protected]>"
]
authors: ["Martin Jambon"]
bug-reports: "https://github.com/ocaml-community/cppo/issues"
homepage: "https://github.com/ocaml-community/cppo"
doc: "https://ocaml-community.github.io/cppo"
license: "BSD-3-Clause"
dev-repo: "git+https://github.com/ocaml-community/cppo.git"
synopsis: "Code preprocessor like cpp for OCaml"
description: """
Cppo is an equivalent of the C preprocessor for OCaml programs.
Expand All @@ -27,8 +12,31 @@ Cppo is:
* reasonably fast
* simple to install and to maintain
"""
maintainer: [
"Martin Jambon <[email protected]>" "Yishuai Li <[email protected]>"
]
authors: ["Martin Jambon"]
license: "BSD-3-Clause"
homepage: "https://github.com/ocaml-community/cppo"
doc: "https://ocaml-community.github.io/cppo"
bug-reports: "https://github.com/ocaml-community/cppo/issues"
depends: [
"ocaml" {>= "4.02.3"}
"dune" {>= "1.10"}
"dune" {>= "2.0"}
"base-unix"
]
build: [
["dune" "subst"] {pinned}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/ocaml-community/cppo.git"
38 changes: 23 additions & 15 deletions cppo_ocamlbuild.opam
Original file line number Diff line number Diff line change
@@ -1,30 +1,38 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
build: [
["dune" "subst"] {pinned}
["dune" "build" "-p" name "-j" jobs]
["dune" "runtest" "-p" name "-j" jobs] {with-test}
["dune" "build" "-p" name "@doc"] {with-doc}
]
maintainer: [
"Martin Jambon <[email protected]>" "Yishuai Li <[email protected]>"
]
authors: ["Martin Jambon"]
bug-reports: "https://github.com/ocaml-community/cppo/issues"
homepage: "https://github.com/ocaml-community/cppo"
doc: "https://ocaml-community.github.io/cppo"
license: "BSD-3-Clause"
dev-repo: "git+https://github.com/ocaml-community/cppo.git"
synopsis: "Plugin to use cppo with ocamlbuild"
description: """
This ocamlbuild plugin lets you use cppo in ocamlbuild projects.

To use it, you can call ocamlbuild with the argument `-plugin-tag
package(cppo_ocamlbuild)` (only since ocaml 4.01 and cppo >= 0.9.4).
"""
maintainer: [
"Martin Jambon <[email protected]>" "Yishuai Li <[email protected]>"
]
authors: ["Martin Jambon"]
license: "BSD-3-Clause"
homepage: "https://github.com/ocaml-community/cppo"
doc: "https://ocaml-community.github.io/cppo"
bug-reports: "https://github.com/ocaml-community/cppo/issues"
depends: [
"ocaml"
"dune" {>= "1.10"}
"ocamlbuild"
"ocamlfind"
]
build: [
["dune" "subst"] {pinned}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/ocaml-community/cppo.git"
6 changes: 3 additions & 3 deletions dune-project
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(lang dune 1.10)
(lang dune 2.0)
(name cppo)

(generate_opam_files true)
Expand All @@ -15,7 +15,7 @@
(name cppo)
(depends
(ocaml (>= 4.02.3))
(dune (>= 1.10))
(dune (>= 2.0))
base-unix)
Copy link
Member

Choose a reason for hiding this comment

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

Maybe worth making dune a build-only dependency?
Also, should we change the depends field for cppo_ocamlbuild as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Making dune a build-only dependency: this makes sense, but I don't know how to do it. In the dune-project file, I can write either (dune (>= 2.0)) or (dune :build) but I am unable to combine these two declarations into a single one; dune rejects everything I try.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changing the depends field cppo_ocamlbuild seems preferable; I will add a commit to do it.

(synopsis "Code preprocessor like cpp for OCaml")
(description "Cppo is an equivalent of the C preprocessor for OCaml programs.
Expand All @@ -33,7 +33,7 @@ Cppo is:
(name cppo_ocamlbuild)
(depends
ocaml
(dune (>= 1.10))
(dune (>= 2.0))
ocamlbuild
ocamlfind)
(synopsis "Plugin to use cppo with ocamlbuild")
Expand Down
Loading
Loading