aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorArlo Breault2014-06-14 14:55:39 -0700
committerJack Nagel2014-06-16 18:52:10 -0500
commit845f54cd54da6e9f62617d048d86bc2559f24742 (patch)
tree560896db8fc6b18b3a105fbbde40d21989a73733 /Library/Formula
parentcb9b3e205cc0c79a0287b4ad10d19c63873d52ad (diff)
downloadhomebrew-845f54cd54da6e9f62617d048d86bc2559f24742.tar.bz2
pidgin: add OTR plugin as a resource
Closes #30161. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/pidgin.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/Library/Formula/pidgin.rb b/Library/Formula/pidgin.rb
index 8f5d031ac..1dff1c787 100644
--- a/Library/Formula/pidgin.rb
+++ b/Library/Formula/pidgin.rb
@@ -13,6 +13,14 @@ class Pidgin < Formula
depends_on 'gnutls'
depends_on 'gtk+'
+ # for pidgin-otr
+ depends_on "libotr"
+
+ resource "pidgin-otr" do
+ url "http://www.cypherpunks.ca/otr/pidgin-otr-4.0.0.tar.gz"
+ sha1 "23c602c4b306ef4eeb3ff5959cd389569f39044d"
+ end
+
option 'perl', 'Build pidgin with perl support'
def install
@@ -35,6 +43,12 @@ class Pidgin < Formula
system "./configure", *args
system "make install"
+
+ resource("pidgin-otr").stage do
+ ENV.append_path "PKG_CONFIG_PATH", "#{lib}/pkgconfig"
+ system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
+ system "make", "install"
+ end
end
test do