@@ -408,10 +408,10 @@ three scopes:
408
408
`_:bar`, always refers to the version being defined.
409
409
410
410
3. Some fields define their own local variables, like `success` and
411
- [`with-dev-setup`](#pkgvar-with-dev-setup ) in the field
411
+ [`with-dev-setup`](#pkgvar-with-dev-setup ) (since opam 2 .2 ) in the field
412
412
[`post-messages`](#opamfield-post-messages ). Other examples of this include
413
413
the [`with-test`](#pkgvar-with-test ), [`with-doc`](#pkgvar-with-doc ) and
414
- [`with-dev-setup`](#pkgvar-with-dev-setup ) variables, available in the
414
+ [`with-dev-setup`](#pkgvar-with-dev-setup ) (since opam 2 .2 ) variables, available in the
415
415
`depends:`, `depopts:`, `build:`, `install:` and `remove:` fields.
416
416
417
417
Within package definition files, the variables `name` and `version`, as
@@ -521,8 +521,8 @@ Additionally, the following are limited to some package fields (`depends:`,
521
521
- <a id="pkgvar-with-test "> `with-test `</a > : only true if tests have been
522
522
enabled for this specific package
523
523
- <a id="pkgvar-with-doc "> `with-doc `</a > : similarly for documentation
524
- - <a id="pkgvar-with-dev-setup "> `with-dev-setup `</a > : similarly for developer
525
- tools
524
+ - <a id="pkgvar-with-dev-setup "> `with-dev-setup `</a > (since opam 2 .2 ):
525
+ similarly for developer tools
526
526
527
527
528
528
The following are only available in the `depends:` and `depopts:` fields, and
@@ -920,7 +920,7 @@ files.
920
920
the command's `$PWD`, during this step.
921
921
922
922
The [`with-test`](#pkgvar-with-test ), [`with-doc`](#pkgvar-with-doc ), and
923
- [`with-dev-setup`](#pkgvar-with-dev-setup ) variables are available in the
923
+ [`with-dev-setup`](#pkgvar-with-dev-setup ) (since opam 2 .2 ) variables are available in the
924
924
scope of this field: filter testing commands with _e.g._ `[make " test" ]
925
925
{with-test }`. The `dev` variable can also be useful here to detect that the
926
926
package is not installed from a release tarball, and may need additional
@@ -948,7 +948,7 @@ files.
948
948
`install:` field have been run, if any.
949
949
950
950
Variables [`with-test`](#pkgvar-with-test ), [`with-doc`](#pkgvar-with-doc ),
951
- and [`with-dev-setup`](#pkgvar-with-dev-setup ) are also available to the
951
+ and [`with-dev-setup`](#pkgvar-with-dev-setup ) (since opam 2 .2 ) are also available to the
952
952
filters used in this field, to run specific installation commands when
953
953
tests or documentation have been requested.
954
954
@@ -992,7 +992,7 @@ files.
992
992
not variables from other packages. Additionally, special boolean variables
993
993
[`build`](#pkgvar-build ), [`post`](#pkgvar-post ),
994
994
[`with-test`](#pkgvar-with-test ), [`with-doc`](#pkgvar-with-doc ), and
995
- [`with-dev-setup`](#pkgvar-with-dev-setup ) are defined to allow limiting
995
+ [`with-dev-setup`](#pkgvar-with-dev-setup ) (since opam 2 .2 ) are defined to allow limiting
996
996
the scope of the dependency.
997
997
998
998
* `build` dependencies are no longer needed at run-time : they won't trigger
@@ -1006,7 +1006,7 @@ files.
1006
1006
package is explicitly installed with `--with-test`)
1007
1007
* likewise, `with-doc ` dependencies are only required when building the
1008
1008
package documentation
1009
- * likewise, `with-dev-setup ` dependencies are only required for a developer
1009
+ * likewise, `with-dev-setup ` (since opam 2 .2 ) dependencies are only required for a developer
1010
1010
tool
1011
1011
1012
1012
- <a id="opamfield-depopts ">
@@ -1081,7 +1081,7 @@ files.
1081
1081
and can be used to print messages in case there was an error (typically, a
1082
1082
hint on how it can be resolved, or a link to an open issue). `success` is also
1083
1083
defined as syntactic sugar for `!failure`. The
1084
- [`with-dev-setup`](#pkgvar-with-dev-setup ) variable is also available in the
1084
+ [`with-dev-setup`](#pkgvar-with-dev-setup ) (since opam 2 .2 ) variable is also available in the
1085
1085
scope of this field.
1086
1086
1087
1087
- <a id="opamfield-available "> `available: [ <filter> ]`</a > :
0 commit comments