boost-python 1.61.0
Also fix test for non-standard prefix.
This commit is contained in:
parent
b9a6577a08
commit
310cb3b387
1 changed files with 3 additions and 3 deletions
|
@ -1,8 +1,8 @@
|
||||||
class BoostPython < Formula
|
class BoostPython < Formula
|
||||||
desc "C++ library for C++/Python interoperability"
|
desc "C++ library for C++/Python interoperability"
|
||||||
homepage "https://www.boost.org/"
|
homepage "https://www.boost.org/"
|
||||||
url "https://downloads.sourceforge.net/project/boost/boost/1.60.0/boost_1_60_0.tar.bz2"
|
url "https://downloads.sourceforge.net/project/boost/boost/1.61.0/boost_1_61_0.tar.bz2"
|
||||||
sha256 "686affff989ac2488f79a97b9479efb9f2abae035b5ed4d8226de6857933fd3b"
|
sha256 "a547bd06c2fd9a71ba1d169d9cf0339da7ebf4753849a8f7d6fdb8feee99b640"
|
||||||
head "https://github.com/boostorg/boost.git"
|
head "https://github.com/boostorg/boost.git"
|
||||||
|
|
||||||
bottle do
|
bottle do
|
||||||
|
@ -100,7 +100,7 @@ class BoostPython < Formula
|
||||||
Language::Python.each_python(build) do |python, _|
|
Language::Python.each_python(build) do |python, _|
|
||||||
pyflags = (`#{python}-config --includes`.strip +
|
pyflags = (`#{python}-config --includes`.strip +
|
||||||
`#{python}-config --ldflags`.strip).split(" ")
|
`#{python}-config --ldflags`.strip).split(" ")
|
||||||
system ENV.cxx, "-shared", "hello.cpp", "-lboost_#{python}", "-o", "hello.so", *pyflags
|
system ENV.cxx, "-shared", "hello.cpp", "-L#{lib}", "-lboost_#{python}", "-o", "hello.so", *pyflags
|
||||||
output = `#{python} -c "from __future__ import print_function; import hello; print(hello.greet())"`
|
output = `#{python} -c "from __future__ import print_function; import hello; print(hello.greet())"`
|
||||||
assert_match "Hello, world!", output
|
assert_match "Hello, world!", output
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue