aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2014-01-20 19:32:44 -0800
committerMike McQuaid2014-01-20 19:32:44 -0800
commit9d9dda658902324b562f620e2176ee8ad54414bd (patch)
tree484aacef2b34055a759ca0184eee3badd2f455f1
parent173a4986675ffc112aee152c6f874e07d47d405c (diff)
downloadhomebrew-9d9dda658902324b562f620e2176ee8ad54414bd.tar.bz2
clipsafe: use wrapper script instead of inreplace.
-rw-r--r--Library/Formula/clipsafe.rb8
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