aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorRobert Iannucci2009-10-14 19:35:31 -0700
committerMax Howell2009-10-19 04:02:48 +0100
commitd0ec1e60be13fd31b1b84818e06dc22b5c5961e9 (patch)
tree05cdc924423b804790aa37b24cca52d7271a5b4a /Library/Formula
parentffbf8229ebef2548c6c1ff3fcfb5cb1ccfc2108f (diff)
downloadhomebrew-d0ec1e60be13fd31b1b84818e06dc22b5c5961e9.tar.bz2
Add rtorrent and dependencies
Adds rtorrent, libtorrent and libsigcpp formulae.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/libsigc++.rb13
-rw-r--r--Library/Formula/libtorrent.rb16
-rw-r--r--Library/Formula/rtorrent.rb35
3 files changed, 64 insertions, 0 deletions
diff --git a/Library/Formula/libsigc++.rb b/Library/Formula/libsigc++.rb
new file mode 100644
index 000000000..bcd1c96b7
--- /dev/null
+++ b/Library/Formula/libsigc++.rb
@@ -0,0 +1,13 @@
+require 'formula'
+
+class Libsigcxx <Formula
+ url 'http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.2/libsigc++-2.2.4.2.tar.bz2'
+ homepage 'http://libsigc.sourceforge.net'
+ md5 '545edbb7b54eec4f723323d3158c0e0c'
+
+ def install
+ system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
+ system "make"
+ system "make install"
+ end
+end
diff --git a/Library/Formula/libtorrent.rb b/Library/Formula/libtorrent.rb
new file mode 100644
index 000000000..2abfe32fb
--- /dev/null
+++ b/Library/Formula/libtorrent.rb
@@ -0,0 +1,16 @@
+require 'formula'
+
+class Libtorrent <Formula
+ url 'http://libtorrent.rakshasa.no/downloads/libtorrent-0.12.5.tar.gz'
+ homepage 'http://libtorrent.rakshasa.no/'
+ md5 'fe8155d364b220713074423100d4bf29'
+
+ depends_on 'pkg-config'
+ depends_on 'libsigc++'
+
+ def install
+ system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
+ system "make"
+ system "make install"
+ end
+end
diff --git a/Library/Formula/rtorrent.rb b/Library/Formula/rtorrent.rb
new file mode 100644
index 000000000..38d9bcac5
--- /dev/null
+++ b/Library/Formula/rtorrent.rb
@@ -0,0 +1,35 @@
+require 'formula'
+
+class Rtorrent <Formula
+ url 'http://libtorrent.rakshasa.no/downloads/rtorrent-0.8.5.tar.gz'
+ homepage 'http://libtorrent.rakshasa.no/'
+ md5 'e701095e1824b7e512a17000f4c0a783'
+
+ depends_on 'pkg-config'
+ depends_on 'libsigc++'
+ depends_on 'libtorrent'
+
+ def patches
+ DATA
+ end
+
+ def install
+ system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
+ system "make"
+ system "make install"
+ end
+end
+
+__END__
+diff -u a/configure b/configure
+--- a/configure 2009-10-14 19:28:31.000000000 -0700
++++ b/configure 2009-10-14 19:27:36.000000000 -0700
+@@ -17686,7 +17686,7 @@
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+- pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.15.4" 2>/dev/null`
++ pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs-only-l "libcurl >= 7.15.4" 2>/dev/null`
+ else
+ pkg_failed=yes
+ fi