diff options
| author | Adam Vandenberg | 2011-02-21 11:05:53 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2011-02-21 11:05:53 -0800 |
| commit | eeaad948f5a8d56ba647345e0b2764472ddb4b66 (patch) | |
| tree | 6af027c483e2134926e562f5a400d832de620f06 | |
| parent | a18205bc9deffdabe03844fc525002ee4a9c0786 (diff) | |
| download | homebrew-eeaad948f5a8d56ba647345e0b2764472ddb4b66.tar.bz2 | |
Fix aplus
| -rw-r--r-- | Library/Formula/aplus.rb | 37 |
1 files changed, 8 insertions, 29 deletions
diff --git a/Library/Formula/aplus.rb b/Library/Formula/aplus.rb index 8246a8b00..e22f8e245 100644 --- a/Library/Formula/aplus.rb +++ b/Library/Formula/aplus.rb @@ -5,18 +5,16 @@ class Aplus <Formula homepage 'http://www.aplusdev.org/' md5 'c45df4f3e816d7fe957deed9b81f66c3' + # Fix the missing CoreServices include (via Fink version of aplus) def patches - # need CoreServices.h include to get it to compile. - # (idea cribbed from fink) DATA end def install # replace placeholder w/ actual prefix - changeme = ["src/lisp.0/aplus.el", "src/lisp.1/aplus.el"] - chmod 0644, changeme - changeme.each do |path| - inreplace path, /_PREFIX_/, 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 "/usr/bin/aclocal -I config" system "/usr/bin/glibtoolize --force --copy" @@ -26,7 +24,8 @@ class Aplus <Formula "--prefix=#{prefix}" system "/usr/bin/make" # make install breaks with -j option - system "/usr/bin/make", "install", "MAKEFLAGS=" + ENV.j1 + system "/usr/bin/make", "install" end def caveats @@ -40,6 +39,8 @@ class Aplus <Formula 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 @@ -51,25 +52,3 @@ __END__ #include <MSGUI/MSTextField.H> #include <MSGUI/MSWidget.H> #include <MSIPC/MSTv.H> ---- a/src/lisp.0/aplus.el 2010-11-28 21:34:09.000000000 -0800 -+++ b/src/lisp.0/aplus.el 2010-11-28 21:35:01.000000000 -0800 -@@ -5,7 +5,7 @@ - ;; - (setq load-path - (append -- '("/usr/local/aplus-fsf-4.20/lisp.0") load-path -+ '("_PREFIX_/lisp.0") load-path - ) - ) - ;; ---- a/src/lisp.1/aplus.el 2010-11-28 21:35:52.000000000 -0800 -+++ a/src/lisp.1/aplus.el 2010-11-28 21:36:08.000000000 -0800 -@@ -32,7 +32,7 @@ - (if aplus-set-load-path - (setq load-path - (append -- '("/usr/local/aplus-fsf-4.20/lisp.1") load-path -+ '("_PREFIX_/lisp.1") load-path - ) - )) - ;; |
