homebrew-core/Formula/aplus.rb
2013-06-02 11:11:42 -07:00

54 lines
1.7 KiB
Ruby

require 'formula'
class Aplus < Formula
homepage 'http://www.aplusdev.org/'
url 'http://mirrors.kernel.org/debian/pool/main/a/aplus-fsf/aplus-fsf_4.22.1.orig.tar.gz'
mirror 'http://ftp.us.debian.org/debian/pool/main/a/aplus-fsf/aplus-fsf_4.22.1.orig.tar.gz'
sha1 'e757cc7654cf35dba15a6a5d6cac5320146558fc'
depends_on :automake
depends_on :libtool
# Fix the missing CoreServices include (via Fink version of aplus)
def patches
DATA
end
def install
# replace placeholder w/ actual prefix
["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
end
system "aclocal -I config"
system "glibtoolize --force --copy"
system "automake --foreign --add-missing --copy"
system "autoconf"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make"
ENV.j1 # make install breaks with -j option
system "make", "install"
end
def caveats; <<-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 #{opt_prefix}/fonts/TrueType/KAPL.TTF
and clicking on the "Install Font" button.
EOS
end
end
__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>