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.
This commit is contained in:
parent
3f6b58cec3
commit
b4e3d82ce6
1 changed files with 12 additions and 0 deletions
12
Formula/gnu-sed.rb
Normal file
12
Formula/gnu-sed.rb
Normal file
|
@ -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
|
Loading…
Reference in a new issue