aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJohannes Lieder2013-01-01 01:08:55 +0100
committerAdam Vandenberg2013-05-15 09:11:42 -0700
commitb38c7475fc9287ac8f2e10303e95431438f0570c (patch)
treec940149cb8dd2a7ca44c8f8c34639517a8aab314 /Library/Formula
parent5c55f7875e545a7b524ccc4509f6903ba01c22dd (diff)
downloadhomebrew-b38c7475fc9287ac8f2e10303e95431438f0570c.tar.bz2
Yaze 2.30.1
Closes #16817. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/yaze-ag.rb48
1 files changed, 48 insertions, 0 deletions
diff --git a/Library/Formula/yaze-ag.rb b/Library/Formula/yaze-ag.rb
new file mode 100644
index 000000000..4b46ccd16
--- /dev/null
+++ b/Library/Formula/yaze-ag.rb
@@ -0,0 +1,48 @@
+require 'formula'
+
+class YazeAg < Formula
+ homepage 'http://www.mathematik.uni-ulm.de/users/ag/yaze-ag/'
+ url 'http://www.mathematik.uni-ulm.de/users/ag/yaze-ag/devel/yaze-ag-2.30.1.tar.gz'
+ sha1 'c8ef40ebef4daab20ee38aae28293b6a9776c99f'
+
+ # Fix missing sys header include for caddr_t on Mac OS
+ # Fix omission of creating bin directory by custom Makefile
+ # Upstream author is aware of this issue:
+ # https://github.com/mxcl/homebrew/pull/16817
+ def patches
+ DATA
+ end
+
+ def install
+ system "make", "-f", "Makefile_solaris_gcc",
+ "BINDIR=#{bin}",
+ "MANDIR=#{man1}",
+ "LIBDIR=#{lib}/yaze",
+ "install"
+ end
+
+ test do
+ system "#{bin}/yaze", "'sys quit'"
+ end
+end
+
+__END__
+diff --git a/Makefile_solaris_gcc b/Makefile_solaris_gcc
+index 9e469a3..b25d007 100644
+--- a/Makefile_solaris_gcc
++++ b/Makefile_solaris_gcc
+@@ -140,11 +140,14 @@ simz80.c: simz80.pl
+ perl -w simz80.pl >simz80.c
+ chmod a-w simz80.c
+
++cdm.o: CFLAGS+=-include sys/types.h
++
+ cdm: cdm.o
+ $(CC) $(CFLAGS) cdm.o $(LIBS) -o $@
+
+ install: all
+ rm -rf $(LIBDIR)
++ mkdir -p $(BINDIR)
+ mkdir -p $(LIBDIR)
+ mkdir -p $(MANDIR)
+ $(INSTALL) -s -c -m 755 yaze_bin $(BINDIR)