From b8571a891ab55ae73f2c13a824f8a2d75cca08e8 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 8 Jul 2014 16:59:21 -0700 Subject: leptonica: don’t use pkg-config in test. --- Library/Formula/leptonica.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Formula/leptonica.rb b/Library/Formula/leptonica.rb index 926111dab..7ddeb2240 100644 --- a/Library/Formula/leptonica.rb +++ b/Library/Formula/leptonica.rb @@ -45,7 +45,9 @@ class Leptonica < Formula return 0; } EOS - system ENV.cxx, "test.cpp", `pkg-config --cflags lept` + + flags = ["-I#{include}/leptonica"] + ENV.cflags.to_s.split + system ENV.cxx, "test.cpp", *flags assert_equal version.to_s, `./a.out` end end -- cgit v1.2.3