aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDominyk Tiller2014-11-18 02:01:37 +0000
committerMike McQuaid2014-11-18 08:42:22 +0000
commit87a652899fe6279e9ae037a73e3fc00c48bec68f (patch)
tree2248d0accbe67bef0d42baa8afc22b049c0a9146 /Library/Formula
parentd2866122dbdf49c4c681bd1a40167e4ce59e3884 (diff)
downloadhomebrew-87a652899fe6279e9ae037a73e3fc00c48bec68f.tar.bz2
ldapvi: system openssl fix
Fixes ldapavi using the OS X shipped defunct OpenSSL. Also: Adds a mirror & Adds a test. Closes #34273. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ldapvi.rb27
1 files changed, 17 insertions, 10 deletions
diff --git a/Library/Formula/ldapvi.rb b/Library/Formula/ldapvi.rb
index 31393f113..67e86dd78 100644
--- a/Library/Formula/ldapvi.rb
+++ b/Library/Formula/ldapvi.rb
@@ -1,15 +1,18 @@
-require 'formula'
+require "formula"
class Ldapvi < Formula
- homepage 'http://www.lichteblau.com/ldapvi/'
- url 'http://www.lichteblau.com/download/ldapvi-1.7.tar.gz'
- sha1 'd1cde4cbb618180f9ae0e77c56a1520b8ad61c9a'
+ homepage "http://www.lichteblau.com/ldapvi/"
+ url "http://www.lichteblau.com/download/ldapvi-1.7.tar.gz"
+ mirror "https://mirrors.kernel.org/debian/pool/main/l/ldapvi/ldapvi_1.7.orig.tar.gz"
+ sha1 "d1cde4cbb618180f9ae0e77c56a1520b8ad61c9a"
+ revision 1
- depends_on 'pkg-config' => :build
- depends_on 'gettext'
- depends_on 'glib'
- depends_on 'popt'
- depends_on 'readline'
+ depends_on "pkg-config" => :build
+ depends_on "gettext"
+ depends_on "glib"
+ depends_on "popt"
+ depends_on "readline"
+ depends_on "openssl"
# Backporting the fix from the devel version
# (namespace conflict with Lion's getline function)
@@ -20,7 +23,11 @@ class Ldapvi < Formula
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
- system "make install"
+ system "make", "install"
+ end
+
+ test do
+ system "#{bin}/ldapvi", "--version"
end
end