aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authornibbles 2bits2012-05-10 00:34:31 -0700
committerAdam Vandenberg2012-05-10 06:42:52 -0700
commitc2df1cf497add618c56f9ff12097efa00e5e8a0e (patch)
treeab0be23c3b56fda84ca652b0f51c0612818cb03e /Library/Formula
parentc6d3538c33476f4323f0fa88e1c6f91280b7b62e (diff)
downloadhomebrew-c2df1cf497add618c56f9ff12097efa00e5e8a0e.tar.bz2
libdnet: fix for autoreconf error on Lion
Libdnet is used by snort, but the manual autoreconf statements cause a build error on Lion. This is likely due to some subtle changes in autoconf-2.69. * Remove manual autotools statements. * Set `ACLOCAL` to include the `config` directory. * Use `autoreconf -ivf` the way the `autoconf` docs recommend. * Remove the unrecognized `--disable-debug` flag. This compiles with or without the `--with-python` flag, and it functions well in `snort` using all five compilers from XCode 4.3.2 and 4.0.2 on Lion and Snow Leopard. It's interesting to see software from 2007 build the python bindings and install them into the HB site-packages correctly. Fixes #12174 Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/libdnet.rb17
1 files changed, 8 insertions, 9 deletions
diff --git a/Library/Formula/libdnet.rb b/Library/Formula/libdnet.rb
index 17d9fcf4b..11e5684bc 100644
--- a/Library/Formula/libdnet.rb
+++ b/Library/Formula/libdnet.rb
@@ -15,16 +15,15 @@ class Libdnet < Formula
end
def install
- # "manual" autoreconf to get '.dylib' extension on shared lib
- system "aclocal --force -I config"
- system "glibtoolize --copy --force"
- system "autoconf --force"
- system "autoheader --force"
- system "automake --add-missing --copy --force-missing"
+ # autoreconf to get '.dylib' extension on shared lib
+ ENV['ACLOCAL'] = 'aclocal -I config'
+ system 'autoreconf', '-ivf'
- args = ["--disable-debug", "--disable-dependency-tracking",
- "--prefix=#{prefix}",
- "--mandir=#{man}"]
+ args = %W[
+ --disable-dependency-tracking
+ --prefix=#{prefix}
+ --mandir=#{man}
+ ]
args << "--with-python" if ARGV.include? "--with-python"
system "./configure", *args
system "make install"