diff options
| author | Mike McQuaid | 2014-01-20 19:32:44 -0800 |
|---|---|---|
| committer | Mike McQuaid | 2014-01-20 19:32:44 -0800 |
| commit | 9d9dda658902324b562f620e2176ee8ad54414bd (patch) | |
| tree | 484aacef2b34055a759ca0184eee3badd2f455f1 | |
| parent | 173a4986675ffc112aee152c6f874e07d47d405c (diff) | |
| download | homebrew-9d9dda658902324b562f620e2176ee8ad54414bd.tar.bz2 | |
clipsafe: use wrapper script instead of inreplace.
| -rw-r--r-- | Library/Formula/clipsafe.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/clipsafe.rb b/Library/Formula/clipsafe.rb index 96ff7088a..6248be757 100644 --- a/Library/Formula/clipsafe.rb +++ b/Library/Formula/clipsafe.rb @@ -23,6 +23,8 @@ class Clipsafe < Formula end def install + ENV.prepend_create_path 'PERL5LIB', libexec+'lib/perl5' + resource("Crypt::Twofish").stage do system "perl", "Makefile.PL", "INSTALL_BASE=#{libexec}" system "make" @@ -41,12 +43,8 @@ class Clipsafe < Formula system "./Build", "install" end - # Add resources to Perl's load_path. - inreplace "clipsafe", - /(# cliPSafe is a command line interface to Password Safe databases.)/, - "use lib '#{libexec}/lib/perl5';\n"'\1' - bin.install "clipsafe" + bin.env_script_all_files(libexec+"bin", :PERL5LIB => ENV['PERL5LIB']) end test do |
