aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorNick Barkas2011-05-18 04:20:48 +0200
committerAdam Vandenberg2011-09-03 22:35:46 -0700
commitaad4b9d421e6f1608f4117c23f643f2da12b9c5b (patch)
tree19598a8a881144c9fe918d618c5d7045cec1f5f3 /Library/Formula
parentac909eacd7879777c87065c9c5e14ec086fbdfa3 (diff)
downloadhomebrew-aad4b9d421e6f1608f4117c23f643f2da12b9c5b.tar.bz2
udns 0.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/udns.rb57
1 files changed, 57 insertions, 0 deletions
diff --git a/Library/Formula/udns.rb b/Library/Formula/udns.rb
new file mode 100644
index 000000000..c73f87ec7
--- /dev/null
+++ b/Library/Formula/udns.rb
@@ -0,0 +1,57 @@
+require 'formula'
+
+class Udns < Formula
+ url 'http://www.corpit.ru/mjt/udns/udns-0.1.tar.gz'
+ homepage 'http://www.corpit.ru/mjt/udns.html'
+ sha1 'e3326684653701f9219cc213bdc3656dff269c80'
+
+ # Build target for dylib. See:
+ # http://www.corpit.ru/pipermail/udns/2011q3/000154.html
+ def patches
+ DATA
+ end
+
+ def install
+ system "./configure"
+ system "make"
+ system "make dylib"
+
+ bin.install ["dnsget", "rblcheck"]
+ doc.install ["NOTES", "TODO", "ex-rdns.c"]
+ include.install "udns.h"
+ lib.install ["libudns.a", "libudns.0.dylib", "libudns.dylib"]
+ man1.install ["dnsget.1", "rblcheck.1"]
+ man3.install "udns.3"
+ end
+end
+
+__END__
+--- udns-0.1.orig/Makefile.in 2010-12-27 09:35:02.000000000 -0800
++++ udns-0.1/Makefile.in 2011-05-03 15:09:46.000000000 -0700
+@@ -42,7 +42,10 @@
+ SOLIBV = lib$(NAME).so.$(SOVER)
+ SOLIBFL= -L. -l$(NAME)_s
+
+-LIBS = $(LIB) $(SOLIBV)
++DYLIB = lib$(NAME).dylib
++DYLIBV = lib$(NAME).$(SOVER).dylib
++
++LIBS = $(LIB) $(SOLIBV) $(DYLIB)
+
+ UTILS = $(USRCS:.c=)
+ UOBJS = $(USRCS:.c=.o)
+@@ -68,6 +71,14 @@
+ .c.o:
+ $(CC) $(CFLAGS) $(CDEFS) -c $<
+
++dylib: $(DYLIB)
++
++$(DYLIBV): $(SOBJS)
++ $(CC) -dynamiclib $(SOBJS) -o $(DYLIBV)
++$(DYLIB): $(DYLIBV)
++ rm -f $@
++ ln -s $(DYLIBV) $@
++
+ shared: $(SOLIBV) $(SOUTILS)
+ sharedlib: $(SOLIBV)
+