aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJoe Shaw2009-09-22 22:30:16 -0400
committerMax Howell2009-09-30 01:24:31 +0100
commit8da18b0504d20b1957a9f5484bfae9ef1181f205 (patch)
tree22bd51cb9d7b4832ef06828f51077f6d857cd075 /Library/Formula
parent25e5766843731bb3ccc75f47783260055eb2ece5 (diff)
downloadhomebrew-8da18b0504d20b1957a9f5484bfae9ef1181f205.tar.bz2
Add a formula for GNU sed.
Installs as $prefix/bin/gsed, like the Macports version. This makes it easier to alias so that you don't have to put $prefix/bin ahead of /usr/bin in your $PATH.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/gnu-sed.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Formula/gnu-sed.rb b/Library/Formula/gnu-sed.rb
new file mode 100644
index 000000000..1a215ec61
--- /dev/null
+++ b/Library/Formula/gnu-sed.rb
@@ -0,0 +1,12 @@
+require 'brewkit'
+
+class GnuSed <Formula
+ @url='http://ftp.gnu.org/gnu/sed/sed-4.2.1.tar.bz2'
+ @homepage='http://www.gnu.org/software/sed/'
+ @md5='7d310fbd76e01a01115075c1fd3f455a'
+
+ def install
+ system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking", "--program-prefix=g"
+ system "make install"
+ end
+end