diff options
author | mezz <mezz@FreeBSD.org> | 2012-04-27 10:18:49 +0800 |
---|---|---|
committer | mezz <mezz@FreeBSD.org> | 2012-04-27 10:18:49 +0800 |
commit | 3ce3f0ca6652951760a86c4ff52033514379435f (patch) | |
tree | 6ea9a2fe7372b12b7ef364e1ff117d380deeaa78 /lang | |
parent | e954468348360578f098fb4ac9699ef4d30badea (diff) | |
download | freebsd-ports-gnome-3ce3f0ca6652951760a86c4ff52033514379435f.tar.gz freebsd-ports-gnome-3ce3f0ca6652951760a86c4ff52033514379435f.tar.zst freebsd-ports-gnome-3ce3f0ca6652951760a86c4ff52033514379435f.zip |
FreeBSD 8.x and above have added -r that does exactly same as -E for increased
compatibility with GNU sed. Since FreeBSD still supports 7.x that does not has
-r, so use -E instead.
Reported by: pointyhat (pav)
Diffstat (limited to 'lang')
-rw-r--r-- | lang/opa/files/patch-build_myocamlbuild_prefix.ml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lang/opa/files/patch-build_myocamlbuild_prefix.ml b/lang/opa/files/patch-build_myocamlbuild_prefix.ml new file mode 100644 index 000000000000..a8f235ce2285 --- /dev/null +++ b/lang/opa/files/patch-build_myocamlbuild_prefix.ml @@ -0,0 +1,17 @@ +--- build/myocamlbuild_prefix.ml.orig 2012-04-26 21:03:23.000000000 -0500 ++++ build/myocamlbuild_prefix.ml 2012-04-26 21:03:35.000000000 -0500 +@@ -325,7 +325,13 @@ + let sedexpr = + Printf.sprintf "s/^\\?HAS_(%s)://; /HAS_.*:/d" tags + in +- Cmd(S[sed; A"-r"; A sedexpr; P(env "%.mllibp"); Sh">"; P(env "%.mllib")])); ++ (* FreeBSD 8.x and above have added -r that does exactly same as -E ++ for increased compatibility with GNU sed. Since FreeBSD still ++ supports 7.x that does not has -r, so use -E instead. *) ++ if is_fbsd then ++ Cmd(S[sed; A"-E"; A sedexpr; P(env "%.mllibp"); Sh">"; P(env "%.mllib")]) ++ else ++ Cmd(S[sed; A"-r"; A sedexpr; P(env "%.mllibp"); Sh">"; P(env "%.mllib")])); + + (* Windows specific : redefinition of an existing rule in Ocaml_specific.ml, + Louis please have a look to avoid the two copies at the end |