aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/clipsafe.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/clipsafe.rb')
-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