aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2013-11-13 18:56:52 -0600
committerJack Nagel2013-11-13 23:01:23 -0600
commit2467ee6f3ee0807d1708058255942caee639f322 (patch)
tree9880c026ebfe82de020db960ecf7b8cbdf8c8f06
parent733083fdf78efeedbc98fd151eb80cf1b7c1194c (diff)
downloadhomebrew-2467ee6f3ee0807d1708058255942caee639f322.tar.bz2
smake 1.2.3
- Re-enable superenv - Install to libexec to avoid conflicts in lib and include
-rw-r--r--Library/Formula/smake.rb21
1 files changed, 16 insertions, 5 deletions
diff --git a/Library/Formula/smake.rb b/Library/Formula/smake.rb
index 546cc1510..e2b23e6a9 100644
--- a/Library/Formula/smake.rb
+++ b/Library/Formula/smake.rb
@@ -2,13 +2,24 @@ require 'formula'
class Smake < Formula
homepage 'http://cdrecord.berlios.de/private/smake.html'
- url 'ftp://ftp.berlios.de/pub/smake/smake-1.2.2.tar.bz2'
- sha1 'abd5a99a6fe588afa31246f3d686c686c75bb953'
+ url 'ftp://ftp.berlios.de/pub/smake/smake-1.2.3.tar.bz2'
+ sha1 'e5bacf4d092835feeb11eeb1c788c5fafeb22dcf'
- # smake silently fails to build its binaries in superenv
- env :std
+ # A sed operation silently fails on Lion or older, due
+ # to some locale settings in smake's build files. The sed
+ # wrapper on 10.8+ overrides them.
+ env :std if MacOS.version <= :lion
def install
- system "make", "GMAKE_NOWARN=true", "INS_BASE=#{prefix}", "INS_RBASE=#{prefix}", "MANDIR=share/man", "install"
+ ENV.delete 'MAKEFLAGS' # the bootstrap smake does not like -j
+
+ # The configure script was generated by autoconf 2.13, so the heuristic
+ # that superenv uses to detect configure fails. This works around it.
+ inreplace 'autoconf/configure','# From configure.in 1.243', 'DUALCASE=1; export DUALCASE'
+
+ system "make", "GMAKE_NOWARN=true", "INS_BASE=#{libexec}", "INS_RBASE=#{libexec}", "install"
+ bin.install_symlink libexec/"bin/smake"
+ man1.install_symlink Dir["#{libexec}/share/man/man1/*.1"]
+ man5.install_symlink Dir["#{libexec}/share/man/man5/*.5"]
end
end