Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Boost 1.59.0 #45564

Closed
wants to merge 15 commits into from
5 changes: 3 additions & 2 deletions Library/Formula/boost-bcp.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
class BoostBcp < Formula
desc "Utility for extracting subsets of the Boost library"
homepage "http://www.boost.org/doc/tools/bcp/"
url "https://downloads.sourceforge.net/project/boost/boost/1.58.0/boost_1_58_0.tar.bz2"
sha256 "fdfc204fc33ec79c99b9a74944c3e54bd78be4f7f15e260c0e2700a36dc7d3e5"
url "https://downloads.sourceforge.net/project/boost/boost/1.59.0/boost_1_59_0.tar.bz2"
sha256 "727a932322d94287b62abb1bd2d41723eec4356a7728909e38adb65ca25241ca"


head "https://github.com/boostorg/boost.git"

Expand Down
21 changes: 10 additions & 11 deletions Library/Formula/boost-python.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
class BoostPython < Formula
desc "C++ library for C++/Python interoperability"
homepage "http://www.boost.org"
url "https://downloads.sourceforge.net/project/boost/boost/1.58.0/boost_1_58_0.tar.bz2"
sha256 "fdfc204fc33ec79c99b9a74944c3e54bd78be4f7f15e260c0e2700a36dc7d3e5"
url "https://downloads.sourceforge.net/project/boost/boost/1.59.0/boost_1_59_0.tar.bz2"
sha256 "727a932322d94287b62abb1bd2d41723eec4356a7728909e38adb65ca25241ca"
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 "aa56ab952ef93ad52672b86cc8b8371fe79cb907d6eed88a316ed2808a264cd2" => :el_capitan
Expand Down Expand Up @@ -42,6 +33,14 @@ class BoostPython < Formula
def install
ENV.universal_binary if build.universal?

if stable?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be build.stable? or?

# fix make_setter regression
# https://github.com/boostorg/python/pull/40
inreplace "boost/python/data_members.hpp",
"# if BOOST_WORKAROUND(__EDG_VERSION__, <= 238)",
"# if !BOOST_WORKAROUND(__EDG_VERSION__, <= 238)"
end

# "layout" should be synchronized with boost
args = ["--prefix=#{prefix}",
"--libdir=#{lib}",
Expand Down
15 changes: 13 additions & 2 deletions Library/Formula/boost.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Boost < Formula
desc "Collection of portable C++ source libraries"
homepage "http://www.boost.org"
url "https://downloads.sourceforge.net/project/boost/boost/1.58.0/boost_1_58_0.tar.bz2"
sha256 "fdfc204fc33ec79c99b9a74944c3e54bd78be4f7f15e260c0e2700a36dc7d3e5"
url "https://downloads.sourceforge.net/project/boost/boost/1.59.0/boost_1_59_0.tar.bz2"
sha256 "727a932322d94287b62abb1bd2d41723eec4356a7728909e38adb65ca25241ca"

head "https://github.com/boostorg/boost.git"

Expand Down Expand Up @@ -33,6 +33,17 @@ class Boost < Formula
depends_on :mpi => [:cc, :cxx, :optional]
end

stable do
# Fixed compilation of operator<< into a record ostream, when
# the operator right hand argument is not directly supported by
# formatting_ostream. Fixed https://svn.boost.org/trac/boost/ticket/11549
# from https://github.com/boostorg/log/commit/7da193f.patch
patch do
url "https://gist.githubusercontent.com/tdsmith/bc76ddea1e2bdb2a3a18/raw/03d125b12a4b03c28ee011a2d6d42a8137061a3b/boost-log.patch"
sha256 "a49fd7461d9f3b478d2bddac19adca93fe0fabab71ee67e8f140cbd7d42d6870"
end
end

fails_with :llvm do
build 2335
cause "Dropped arguments to functions when linking with boost"
Expand Down
3 changes: 2 additions & 1 deletion Library/Formula/cvc4.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
class Cvc4 < Formula
desc "Open-source automatic theorem prover for SMT "
homepage "https://cvc4.cs.nyu.edu/"
url "https://cvc4.cs.nyu.edu/builds/src/cvc4-1.4.tar.gz"
url "http://cvc4.cs.nyu.edu/builds/src/cvc4-1.4.tar.gz"
sha256 "76fe4ff9eb9ad7d65589efb47d41aae95f3191bd0d0c3940698a7cb2df3f7024"
revision 1

bottle do
cellar :any
Expand Down
2 changes: 1 addition & 1 deletion Library/Formula/dspdfviewer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ class Dspdfviewer < Formula
homepage "http://dspdfviewer.danny-edel.de"
url "https://github.com/dannyedel/dspdfviewer/archive/v1.13.1.tar.gz"
sha256 "333588de0316cfdb5821b8484ee55690dfa3c7431b67c126bfdbe9c9cc3e1ed4"

head "https://github.com/dannyedel/dspdfviewer.git"
revision 1

bottle do
sha256 "8d6696c179bad40c541e4d32107b66ee64a83fd0b6619e1af80f04ddeb3fffa1" => :el_capitan
Expand Down
2 changes: 1 addition & 1 deletion Library/Formula/freeling.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Freeling < Formula
url "http://devel.cpl.upc.edu/freeling/downloads/32"
version "3.1"
sha256 "e98471ceb3f58afbe70369584d8d316323d13fcc51d09b2fd7f431a3220982ba"
revision 4
revision 5

bottle do
cellar :any
Expand Down
1 change: 1 addition & 0 deletions Library/Formula/innoextract.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class Innoextract < Formula
url "https://constexpr.org/innoextract/files/innoextract-1.5.tar.gz"
sha256 "f2594e992ccf2859455475794803b29a67393fadb69d4df1eec34c451ffa48cf"
head "https://github.com/dscharrer/innoextract.git"
revision 1

bottle do
cellar :any
Expand Down
2 changes: 2 additions & 0 deletions Library/Formula/libcdr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class Libcdr < Formula

def install
ENV.cxx11
# Needed for Boost 1.59.0 compatibility.
ENV["LDFLAGS"] = "-lboost_system-mt"
system "./configure", "--disable-werror",
"--without-docs",
"--prefix=#{prefix}"
Expand Down
2 changes: 2 additions & 0 deletions Library/Formula/libvisio.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ class Libvisio < Formula
depends_on "librevenge"

def install
# Needed for Boost 1.59.0 compatibility.
ENV["LDFLAGS"] = "-lboost_system-mt"
system "./configure", "--without-docs",
"-disable-dependency-tracking",
"--enable-static=no",
Expand Down
2 changes: 1 addition & 1 deletion Library/Formula/pdal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ class Pdal < Formula
homepage "http://www.pdal.io/"
url "https://github.com/PDAL/PDAL/archive/0.9.9.tar.gz"
sha256 "d4f91478ca55b6b775980c5c2e4c23f43b6bb4e1908ae739b1605a30b57b8a83"

head "https://github.com/PDAL/PDAL.git"
revision 1

bottle do
sha256 "415bd8c342d4a50803245555cafa1d3fd854135fcf7c585ce0b511e292416179" => :yosemite
Expand Down
2 changes: 1 addition & 1 deletion Library/Formula/points2grid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Points2grid < Formula
homepage "https://github.com/CRREL/points2grid"
url "https://github.com/CRREL/points2grid/archive/1.3.0.tar.gz"
sha256 "87acdfd336fac20d2c2a22926b045c7f3f0fc925769a87393aff28b8c351c62b"
revision 1
revision 2

bottle do
cellar :any
Expand Down
1 change: 1 addition & 0 deletions Library/Formula/uhd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class Uhd < Formula
url "https://github.com/EttusResearch/uhd/archive/release_003_009_001.tar.gz"
sha256 "e2059c34bea2aaca31eb8d3501ce7b535b559775d3050ed5c30946c34146a92e"
head "https://github.com/EttusResearch/uhd.git"
revision 1

bottle do
sha256 "e013a49457a34e404dc6a286b32eeca286f7f28eb68e3c052f5913472099a77d" => :el_capitan
Expand Down
5 changes: 3 additions & 2 deletions Library/Formula/vowpal-wabbit.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
class VowpalWabbit < Formula
desc "Online learning algorithm"
homepage "https://github.com/JohnLangford/vowpal_wabbit"
head "https://github.com/JohnLangford/vowpal_wabbit.git"
url "https://github.com/JohnLangford/vowpal_wabbit/archive/8.0.tar.gz"
sha256 "ebf7fea91eead6da3d9fd479b901a320d5ab3ed20b2b134b5ce86aec771b0a60"
head "https://github.com/JohnLangford/vowpal_wabbit.git"
revision 1

bottle do
cellar :any
Expand Down Expand Up @@ -39,7 +40,7 @@ def install
1 2 'second_house | price:.18 sqft:.15 age:.35 1976
0 1 0.5 'third_house | price:.53 sqft:.32 age:.87 1924
EOS
system bin/"vw", "house_dataset", "-l", "10", "-c", "--passes", "25", "--holdout_off", "--audit", "-f", "house.model", "--nn", "5"
system bin/"vw", "house_dataset", "-l", "10", "-c", "--passes", "25", "--holdout_off", "--audit", "-f", "house.model", "--nn", "5"
system bin/"vw", "-t", "-i", "house.model", "-d", "house_dataset", "-p", "house.predict"

(testpath/"csoaa.dat").write <<-EOS.undent
Expand Down