aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/os/linux
diff options
context:
space:
mode:
authorBob W. Hogg2017-04-21 09:32:30 -0700
committerShaun Jackman2017-05-30 10:37:26 -0700
commite2c707d8b12fcf8deed952de8b1a181df6652cca (patch)
tree6012e0482aae9f53bdf76a100cdd774093f23818 /Library/Homebrew/extend/os/linux
parentf0dc1d96c50551be69ea418148a9bc2d72cfaf16 (diff)
downloadbrew-e2c707d8b12fcf8deed952de8b1a181df6652cca.tar.bz2
Stdenv: Add ENV.libxml2 and ENV.x11 for Linux
Add ENV.libxml2 primarily for the use of test do blocks. Add a dummy ENV.x11 function. See Linuxbrew/brew#356 and Linuxbrew/brew#382
Diffstat (limited to 'Library/Homebrew/extend/os/linux')
-rw-r--r--Library/Homebrew/extend/os/linux/extend/ENV/std.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/os/linux/extend/ENV/std.rb b/Library/Homebrew/extend/os/linux/extend/ENV/std.rb
new file mode 100644
index 000000000..ed19d2495
--- /dev/null
+++ b/Library/Homebrew/extend/os/linux/extend/ENV/std.rb
@@ -0,0 +1,7 @@
+module Stdenv
+ def libxml2
+ append "CPPFLAGS", "-I#{Formula["libxml2"].include/"libxml2"}"
+ rescue FormulaUnavailableError
+ nil
+ end
+end