Skip to content

Commit

Permalink
ensure opam install -t works for pbrt and pbrt-yojson
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Jul 10, 2024
1 parent 1aa42d9 commit cfb19b3
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 5 deletions.
1 change: 1 addition & 0 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
(depends
(ocaml (>= 4.08))
(pbrt (= :version))
(ocaml-protoc (and (= :version) :with-test))
(pbrt_yojson (= :version)))
(tags (protobuf encode decode services rpc)))

6 changes: 3 additions & 3 deletions pbrt.opam
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ depends: [
"odoc" {with-doc}
"ocaml" {>= "4.08"}
]
dev-repo: "git+https://github.com/mransan/ocaml-protoc.git"
available: arch != "arm32" & arch != "x86_32" & arch != "ppc32" & arch != "ppc64"
build: [
["dune" "subst"] {pinned}
[
Expand All @@ -24,9 +26,7 @@ build: [
"-j"
jobs
"@install"
"@runtest" {with-test}
"@src/tests/unit-tests/pbrt/runtest" {with-test} # custom path
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/mransan/ocaml-protoc.git"
available: arch != "arm32" & arch != "x86_32" & arch != "ppc32" & arch != "ppc64"
14 changes: 14 additions & 0 deletions pbrt.opam.template
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
available: arch != "arm32" & arch != "x86_32" & arch != "ppc32" & arch != "ppc64"
build: [
["dune" "subst"] {pinned}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@src/tests/unit-tests/pbrt/runtest" {with-test} # custom path
"@doc" {with-doc}
]
]
1 change: 1 addition & 0 deletions pbrt_services.opam
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ depends: [
"dune" {>= "2.0"}
"ocaml" {>= "4.08"}
"pbrt" {= version}
"ocaml-protoc" {= version & with-test}
"pbrt_yojson" {= version}
]
build: [
Expand Down
4 changes: 2 additions & 2 deletions pbrt_yojson.opam
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ depends: [
"yojson" {>= "1.6"}
"base64" {>= "3.0"}
]
dev-repo: "git+https://github.com/mransan/ocaml-protoc.git"
build: [
["dune" "subst"] {pinned}
[
Expand All @@ -26,8 +27,7 @@ build: [
"-j"
jobs
"@install"
"@runtest" {with-test}
"@src/tests/yojson/runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/mransan/ocaml-protoc.git"
14 changes: 14 additions & 0 deletions pbrt_yojson.opam.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
build: [
["dune" "subst"] {pinned}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@src/tests/yojson/runtest" {with-test}
"@doc" {with-doc}
]
]

0 comments on commit cfb19b3

Please sign in to comment.