aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorYacin Nadji2010-04-21 13:50:57 -0400
committerDavid Höppner2010-04-24 18:35:52 +0200
commitc2a96b5305e48817427fb98343474eb764147029 (patch)
tree3010ce7de8aef214665af3050d7a0fc06dc8326c /Library/Formula
parent95bd82f4394e06bb4c0c6c4f781d237d68df257e (diff)
downloadhomebrew-c2a96b5305e48817427fb98343474eb764147029.tar.bz2
New Formula libopennet
libopennet allows developers to open_net() files or URLs alike, and get a file descriptor back that they can use to read data from. It supports HTTP (read-only) and FTP (read or write). It also comes with read_net() to do a forceful read(), and lseek_net() for calling lseek on the socket/file. Signed-off-by: David Höppner <0xffea@gmail.com> * correct man path and homepage url
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/libopennet.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/Library/Formula/libopennet.rb b/Library/Formula/libopennet.rb
new file mode 100644
index 000000000..69c230479
--- /dev/null
+++ b/Library/Formula/libopennet.rb
@@ -0,0 +1,13 @@
+require 'formula'
+
+class Libopennet <Formula
+ url 'http://www.rkeene.org/files/oss/libopennet/libopennet-0.9.9.tar.gz'
+ homepage 'http://www.rkeene.org/oss/libopennet'
+ md5 '621294efc0d2d1a839d6262359b46f9c'
+
+ def install
+ system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}", "--mandir=#{man}"
+ system "make"
+ system "make install"
+ end
+end