boost-python: fix strict audit

Closes Homebrew/homebrew#42376.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Hiroshi Hatake 2015-08-03 11:22:25 +09:00 committed by Mike McQuaid
parent d1f17cd522
commit f08bc575dc

View file

@ -5,6 +5,15 @@ class BoostPython < Formula
sha256 "fdfc204fc33ec79c99b9a74944c3e54bd78be4f7f15e260c0e2700a36dc7d3e5"
head "https://github.com/boostorg/boost.git"
stable do
# don't explicitly link a Python framework
# https://github.com/boostorg/build/pull/78
patch do
url "https://gist.githubusercontent.com/tdsmith/9026da299ac1bfd3f419/raw/b73a919c38af08941487ca37d46e711864104c4d/boost-python.diff"
sha256 "9f374761ada11eecd082e7f9d5b80efeb387039d3a290f45b61f0730bce3801a"
end
end
bottle do
cellar :any
sha256 "7f627fb1887ecaaea4b6b363d300a21c5274a1607c7dc64f2114d3794b5fec11" => :yosemite
@ -29,15 +38,6 @@ class BoostPython < Formula
cause "Dropped arguments to functions when linking with boost"
end
stable do
# don't explicitly link a Python framework
# https://github.com/boostorg/build/pull/78
patch do
url "https://gist.githubusercontent.com/tdsmith/9026da299ac1bfd3f419/raw/b73a919c38af08941487ca37d46e711864104c4d/boost-python.diff"
sha256 "9f374761ada11eecd082e7f9d5b80efeb387039d3a290f45b61f0730bce3801a"
end
end
def install
ENV.universal_binary if build.universal?
@ -110,7 +110,7 @@ class BoostPython < Formula
`#{python}-config --ldflags`.strip).split(" ")
system ENV.cxx, "-shared", "hello.cpp", "-lboost_#{python}", "-o", "hello.so", *pyflags
output = `#{python} -c "from __future__ import print_function; import hello; print(hello.greet())"`
assert output.include?("Hello, world!")
assert_match "Hello, world!", output
end
end
end