aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorKyle Fuller2010-01-14 20:59:07 +0000
committerAdam Vandenberg2010-01-30 17:09:57 -0800
commit263ec7213f71480a9d67eb53fba46defc177df31 (patch)
tree2fdb9bd1c39411202c785ca39e02191af2869da0 /Library/Formula
parent8e9c287b243215ed655223016bb588007bb8910f (diff)
downloadhomebrew-263ec7213f71480a9d67eb53fba46defc177df31.tar.bz2
Updated znc formula, znc-buildmod and znc-config now work. Separated colloquy push into its own formula.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/colloquypush.rb14
-rw-r--r--Library/Formula/znc.rb15
2 files changed, 20 insertions, 9 deletions
diff --git a/Library/Formula/colloquypush.rb b/Library/Formula/colloquypush.rb
new file mode 100644
index 000000000..7cc11cff4
--- /dev/null
+++ b/Library/Formula/colloquypush.rb
@@ -0,0 +1,14 @@
+require 'formula'
+
+class Colloquypush <Formula
+ head 'git://github.com/wired/colloquypush.git'
+ homepage 'http://github.com/wired/colloquypush'
+
+ depends_on 'znc'
+
+ def install
+ Dir.chdir("znc")
+ system "znc-buildmod", "colloquy.cpp"
+ system "install", "-m", "0755", "colloquy.so", %x[znc-config --moddir].strip()
+ end
+end
diff --git a/Library/Formula/znc.rb b/Library/Formula/znc.rb
index 9a94bd81a..04bfc11c3 100644
--- a/Library/Formula/znc.rb
+++ b/Library/Formula/znc.rb
@@ -1,20 +1,17 @@
require 'formula'
class Znc <Formula
- url 'http://downloads.sourceforge.net/project/znc/znc/0.076/znc-0.076.tar.gz'
+ head 'https://znc.svn.sourceforge.net/svnroot/znc/trunk'
homepage 'http://en.znc.in/wiki/ZNC'
- md5 '03c2804b91225e83884f06078f6db568'
-
+
depends_on 'c-ares'
depends_on 'pkg-config' => :optional
-
+
skip_clean 'bin/znc'
-
+ skip_clean 'bin/znc-config'
+ skip_clean 'bin/znc-buildmod'
+
def install
- # This is a 3rd-party module that handles push notifications for Colloquy on the iPhone
- # it's off by default, but annoying to compile if you don't do it while the source is available
- system "curl -Ls -o modules/colloquy.cpp http://github.com/wired/colloquypush/raw/e678ca8ba9b3515dc8bfabeb7a6f258e6b8665e8/znc/colloquy.cpp"
-
# Apparently Snow Leopard's libperl is at /System/Library/Perl/lib/5.10/libperl.dylib
# but I don't know how to tell znc that. Perl is only used for user plugins, anyway.
system "./configure", "--prefix=#{prefix}", "--enable-extra", "--disable-perl"