aboutsummaryrefslogtreecommitdiff
path: root/lang/opa
diff options
context:
space:
mode:
authorJeremy Messenger <mezz@FreeBSD.org>2012-04-27 02:18:49 +0000
committerJeremy Messenger <mezz@FreeBSD.org>2012-04-27 02:18:49 +0000
commit4c23dd00615edd9efd353da17331f307cc40559f (patch)
treed5b5f8d5d869d30b3b602dfac65af9243db447fb /lang/opa
parent6e27dc97231f8d030352061f978dab59afe39086 (diff)
downloadports-4c23dd00615edd9efd353da17331f307cc40559f.tar.gz
ports-4c23dd00615edd9efd353da17331f307cc40559f.zip
Notes
Diffstat (limited to 'lang/opa')
-rw-r--r--lang/opa/files/patch-build_myocamlbuild_prefix.ml17
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