Skip to content

Commit cfb19b3

Browse files
committed
ensure opam install -t works for pbrt and pbrt-yojson
1 parent 1aa42d9 commit cfb19b3

6 files changed

+35
-5
lines changed

dune-project

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
(depends
4545
(ocaml (>= 4.08))
4646
(pbrt (= :version))
47+
(ocaml-protoc (and (= :version) :with-test))
4748
(pbrt_yojson (= :version)))
4849
(tags (protobuf encode decode services rpc)))
4950

pbrt.opam

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ depends: [
1414
"odoc" {with-doc}
1515
"ocaml" {>= "4.08"}
1616
]
17+
dev-repo: "git+https://github.com/mransan/ocaml-protoc.git"
18+
available: arch != "arm32" & arch != "x86_32" & arch != "ppc32" & arch != "ppc64"
1719
build: [
1820
["dune" "subst"] {pinned}
1921
[
@@ -24,9 +26,7 @@ build: [
2426
"-j"
2527
jobs
2628
"@install"
27-
"@runtest" {with-test}
29+
"@src/tests/unit-tests/pbrt/runtest" {with-test} # custom path
2830
"@doc" {with-doc}
2931
]
3032
]
31-
dev-repo: "git+https://github.com/mransan/ocaml-protoc.git"
32-
available: arch != "arm32" & arch != "x86_32" & arch != "ppc32" & arch != "ppc64"

pbrt.opam.template

+14
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
11
available: arch != "arm32" & arch != "x86_32" & arch != "ppc32" & arch != "ppc64"
2+
build: [
3+
["dune" "subst"] {pinned}
4+
[
5+
"dune"
6+
"build"
7+
"-p"
8+
name
9+
"-j"
10+
jobs
11+
"@install"
12+
"@src/tests/unit-tests/pbrt/runtest" {with-test} # custom path
13+
"@doc" {with-doc}
14+
]
15+
]

pbrt_services.opam

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ depends: [
1212
"dune" {>= "2.0"}
1313
"ocaml" {>= "4.08"}
1414
"pbrt" {= version}
15+
"ocaml-protoc" {= version & with-test}
1516
"pbrt_yojson" {= version}
1617
]
1718
build: [

pbrt_yojson.opam

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ depends: [
1616
"yojson" {>= "1.6"}
1717
"base64" {>= "3.0"}
1818
]
19+
dev-repo: "git+https://github.com/mransan/ocaml-protoc.git"
1920
build: [
2021
["dune" "subst"] {pinned}
2122
[
@@ -26,8 +27,7 @@ build: [
2627
"-j"
2728
jobs
2829
"@install"
29-
"@runtest" {with-test}
30+
"@src/tests/yojson/runtest" {with-test}
3031
"@doc" {with-doc}
3132
]
3233
]
33-
dev-repo: "git+https://github.com/mransan/ocaml-protoc.git"

pbrt_yojson.opam.template

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
build: [
2+
["dune" "subst"] {pinned}
3+
[
4+
"dune"
5+
"build"
6+
"-p"
7+
name
8+
"-j"
9+
jobs
10+
"@install"
11+
"@src/tests/yojson/runtest" {with-test}
12+
"@doc" {with-doc}
13+
]
14+
]

0 commit comments

Comments
 (0)