From c16f2b33f362076b540eeb6cf059adf0e047fc0a Mon Sep 17 00:00:00 2001 From: Tryn Mirell Date: Sun, 16 Jun 2013 03:03:22 -0500 Subject: gsed: add libexec/gnubin option for unprefixed sed Mirrors what is done for coreutils. Closes #20536. Signed-off-by: Adam Vandenberg --- Library/Formula/gnu-sed.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Library') diff --git a/Library/Formula/gnu-sed.rb b/Library/Formula/gnu-sed.rb index 9e711a3ad..1bdbbd35d 100644 --- a/Library/Formula/gnu-sed.rb +++ b/Library/Formula/gnu-sed.rb @@ -14,11 +14,25 @@ class GnuSed < Formula system "./configure", *args system "make install" + + (libexec/'gnubin').install_symlink bin/"gsed" =>"sed" + (libexec/'gnuman/man1').install_symlink man1/"gsed.1" => "sed.1" end def caveats; <<-EOS.undent The command has been installed with the prefix 'g'. If you do not want the prefix, install using the 'default-names' option. + + If you need to use these commands with their normal names, you + can add a "gnubin" directory to your PATH from your bashrc like: + + PATH="#{opt_prefix}/libexec/gnubin:$PATH" + + Additionally, you can access their man pages with normal names if you add + the "gnuman" directory to your MANPATH from your bashrc as well: + + MANPATH="#{opt_prefix}/libexec/gnuman:$MANPATH" + EOS end -- cgit v1.2.3