From 2447e61e06f0862b166ed51483b51757aa0781f0 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Mon, 6 Jun 2016 09:13:05 -0700 Subject: [PATCH] libconfig 1.6 - bump version - force regeneration of two outdated BUILT_SOURCES files, which upstream has under revision control Closes #1752. Signed-off-by: ilovezfs --- Formula/libconfig.rb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Formula/libconfig.rb b/Formula/libconfig.rb index 9916c53502..5ebfa21a9f 100644 --- a/Formula/libconfig.rb +++ b/Formula/libconfig.rb @@ -1,8 +1,8 @@ class Libconfig < Formula desc "Configuration file processing library" homepage "http://www.hyperrealm.com/libconfig/" - url "http://www.hyperrealm.com/libconfig/libconfig-1.5.tar.gz" - sha256 "e31daa390d8e4461c8830512fe2e13ba1a3d6a02a2305a02429eec61e68703f6" + url "https://github.com/hyperrealm/libconfig/archive/v1.6.tar.gz" + sha256 "18739792eb463d73525d7aea9b0a48b14106fae1cfec09aedc668d8c1079adf1" bottle do cellar :any @@ -23,8 +23,15 @@ class Libconfig < Formula def install ENV.universal_binary if build.universal? + system "autoreconf", "-i" if build.head? system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" + + # Fixes "scanner.l:137:59: error: too few arguments to function call ..." + # Forces regeneration of the BUILT_SOURCES "scanner.c" and "scanner.h" + # Reported 6 Jun 2016: https://github.com/hyperrealm/libconfig/issues/66 + touch "lib/scanner.l" + system "make", "install" end