Skip to content

Commit

Permalink
Revert "Remove the .opam files from version control, since they are g…
Browse files Browse the repository at this point in the history
…enerated from dune-project."

This reverts commit a3e90ca.
  • Loading branch information
liyishuai committed Dec 4, 2024
1 parent 2a2beaf commit 0c6f3ea
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ _build
.merlin
*.install
.*.swp
*.opam
43 changes: 43 additions & 0 deletions cppo.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "1.7.0"
synopsis: "Code preprocessor like cpp for OCaml"
description: """
Cppo is an equivalent of the C preprocessor for OCaml programs.
It allows the definition of simple macros and file inclusion.

Cppo is:

* more OCaml-friendly than cpp
* easy to learn without consulting a manual
* 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" {>= "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"
39 changes: 39 additions & 0 deletions cppo_ocamlbuild.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "1.7.0"
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" {>= "2.0"}
"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"

0 comments on commit 0c6f3ea

Please sign in to comment.