2010-11-30 04:35:34 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Aplus < Formula
|
2012-03-21 05:30:24 +00:00
|
|
|
homepage 'http://www.aplusdev.org/'
|
2010-11-30 04:35:34 +00:00
|
|
|
url 'http://mirrors.kernel.org/debian/pool/main/a/aplus-fsf/aplus-fsf_4.22.1.orig.tar.gz'
|
2011-09-19 15:51:54 +00:00
|
|
|
mirror 'http://ftp.us.debian.org/debian/pool/main/a/aplus-fsf/aplus-fsf_4.22.1.orig.tar.gz'
|
2010-11-30 04:35:34 +00:00
|
|
|
md5 'c45df4f3e816d7fe957deed9b81f66c3'
|
|
|
|
|
2011-02-21 19:05:53 +00:00
|
|
|
# Fix the missing CoreServices include (via Fink version of aplus)
|
2010-11-30 04:35:34 +00:00
|
|
|
def patches
|
|
|
|
DATA
|
|
|
|
end
|
|
|
|
|
2012-02-27 03:44:55 +00:00
|
|
|
if MacOS.xcode_version >= "4.3"
|
2012-02-28 17:31:20 +00:00
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
2012-02-27 03:44:55 +00:00
|
|
|
end
|
|
|
|
|
2010-11-30 04:35:34 +00:00
|
|
|
def install
|
|
|
|
# replace placeholder w/ actual prefix
|
2011-02-21 19:05:53 +00:00
|
|
|
["src/lisp.0/aplus.el", "src/lisp.1/aplus.el"].each do |path|
|
|
|
|
chmod 0644, path
|
|
|
|
inreplace path, "/usr/local/aplus-fsf-4.20", prefix
|
2010-11-30 04:35:34 +00:00
|
|
|
end
|
2012-02-27 03:44:55 +00:00
|
|
|
system "aclocal -I config"
|
|
|
|
system "glibtoolize --force --copy"
|
|
|
|
system "automake --foreign --add-missing --copy"
|
|
|
|
system "autoconf"
|
2010-11-30 04:35:34 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2012-03-21 05:30:24 +00:00
|
|
|
system "make"
|
|
|
|
ENV.j1 # make install breaks with -j option
|
|
|
|
system "make", "install"
|
2010-11-30 04:35:34 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def caveats
|
|
|
|
return <<-EOS.undent
|
|
|
|
This package contains a custom APL font; it doesn't display APL characters
|
|
|
|
using the usual Unicode codepoints. Install it by running
|
|
|
|
|
|
|
|
open #{prefix}/fonts/TrueType/KAPL.TTF
|
|
|
|
|
|
|
|
and clicking on the "Install Font" button.
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|
2011-02-21 19:05:53 +00:00
|
|
|
|
|
|
|
|
2010-11-30 04:35:34 +00:00
|
|
|
__END__
|
|
|
|
--- a/src/AplusGUI/AplusApplication.C 2010-11-28 17:06:58.000000000 -0800
|
|
|
|
+++ b/src/AplusGUI/AplusApplication.C 2010-11-28 17:06:31.000000000 -0800
|
|
|
|
@@ -5,6 +5,7 @@
|
|
|
|
//
|
|
|
|
//
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
+#include <CoreServices/CoreServices.h>
|
|
|
|
#include <MSGUI/MSTextField.H>
|
|
|
|
#include <MSGUI/MSWidget.H>
|
|
|
|
#include <MSIPC/MSTv.H>
|