aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2013-08-19 17:21:14 -0500
committerJack Nagel2013-08-19 17:21:14 -0500
commitcb9317eb03f54b1951c5c13d9e6096a36a871fef (patch)
tree14cfaa41882606bbe0562d0a383934d4b39a3ced /Library/Formula
parentad3864534ddb84be455700af036608c8f6806ab5 (diff)
downloadhomebrew-cb9317eb03f54b1951c5c13d9e6096a36a871fef.tar.bz2
Use ENV.{append,prepend}_path in formulae
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/aspell.rb2
-rw-r--r--Library/Formula/libquvi.rb2
-rw-r--r--Library/Formula/netcdf.rb2
-rw-r--r--Library/Formula/pgtap.rb2
4 files changed, 4 insertions, 4 deletions
diff --git a/Library/Formula/aspell.rb b/Library/Formula/aspell.rb
index 31fc743e4..e3ef88cd6 100644
--- a/Library/Formula/aspell.rb
+++ b/Library/Formula/aspell.rb
@@ -3,7 +3,7 @@ require 'formula'
class AspellLang < Formula
def install
aspell = Formula.factory 'aspell'
- ENV.prepend 'PATH', aspell.bin, ':'
+ ENV.prepend_path 'PATH', aspell.bin
system "./configure", "--vars", "ASPELL=#{aspell.bin}/aspell", "PREZIP=#{aspell.bin}/prezip"
system "make install"
end
diff --git a/Library/Formula/libquvi.rb b/Library/Formula/libquvi.rb
index c1c34ef22..3540403f5 100644
--- a/Library/Formula/libquvi.rb
+++ b/Library/Formula/libquvi.rb
@@ -21,7 +21,7 @@ class Libquvi < Formula
system "./configure", "--prefix=#{scripts}", "--with-nsfw"
system "make install"
end
- ENV.append 'PKG_CONFIG_PATH', "#{scripts}/lib/pkgconfig", ':'
+ ENV.append_path 'PKG_CONFIG_PATH', "#{scripts}/lib/pkgconfig"
# Lua 5.2 does not have a proper lua.pc
ENV['liblua_CFLAGS'] = ' '
diff --git a/Library/Formula/netcdf.rb b/Library/Formula/netcdf.rb
index 8cb4be91e..096b3dc2d 100644
--- a/Library/Formula/netcdf.rb
+++ b/Library/Formula/netcdf.rb
@@ -54,7 +54,7 @@ class Netcdf < Formula
# Add newly created installation to paths so that binding libraries can
# find the core libs.
- ENV.prepend 'PATH', bin, ':'
+ ENV.prepend_path 'PATH', bin
ENV.prepend 'CPPFLAGS', "-I#{include}"
ENV.prepend 'LDFLAGS', "-L#{lib}"
diff --git a/Library/Formula/pgtap.rb b/Library/Formula/pgtap.rb
index 1eef53ed4..6617df1e9 100644
--- a/Library/Formula/pgtap.rb
+++ b/Library/Formula/pgtap.rb
@@ -10,7 +10,7 @@ class Pgtap < Formula
skip_clean 'share'
def install
- ENV.prepend 'PATH', Formula.factory('postgresql').bin, ':'
+ ENV.prepend_path 'PATH', Formula.factory('postgresql').bin
system "make install"
end
end