2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-06-04 18:21:19 +00:00
|
|
|
|
|
|
|
class Boost <Formula
|
2009-11-25 20:06:59 +00:00
|
|
|
@homepage='http://www.boost.org'
|
|
|
|
@url='http://downloads.sourceforge.net/project/boost/boost/1.41.0/boost_1_41_0.tar.bz2'
|
|
|
|
@md5='8bb65e133907db727a2a825c5400d0a6'
|
2009-12-01 15:54:11 +00:00
|
|
|
|
|
|
|
def patches
|
|
|
|
{ :p2 => DATA }
|
|
|
|
end
|
2009-06-04 18:21:19 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
# we specify libdir too because the script is apparently broken
|
|
|
|
system "./bootstrap.sh --prefix='#{prefix}' --libdir='#{lib}'"
|
2009-09-08 08:37:00 +00:00
|
|
|
system "./bjam --layout=tagged --prefix='#{prefix}' --libdir='#{lib}' threading=multi install"
|
2009-06-04 18:21:19 +00:00
|
|
|
end
|
2009-12-01 15:54:11 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
__END__
|
|
|
|
https://svn.boost.org/trac/boost/changeset/56467
|
|
|
|
Index: /trunk/boost/test/impl/framework.ipp
|
|
|
|
===================================================================
|
|
|
|
--- /trunk/boost/test/impl/framework.ipp (revision 53665)
|
|
|
|
+++ /trunk/boost/test/impl/framework.ipp (revision 56467)
|
|
|
|
@@ -125,11 +125,12 @@
|
|
|
|
{
|
|
|
|
while( !m_test_units.empty() ) {
|
|
|
|
- test_unit_store::value_type const& tu = *m_test_units.begin();
|
|
|
|
+ test_unit_store::value_type const& tu = *m_test_units.begin();
|
|
|
|
+ test_unit* tu_ptr = tu.second;
|
|
|
|
|
|
|
|
// the delete will erase this element from map
|
|
|
|
if( ut_detail::test_id_2_unit_type( tu.second->p_id ) == tut_suite )
|
|
|
|
- delete static_cast<test_suite const*>(tu.second);
|
|
|
|
+ delete (test_suite const*)tu_ptr;
|
|
|
|
else
|
|
|
|
- delete static_cast<test_case const*>(tu.second);
|
|
|
|
+ delete (test_case const*)tu_ptr;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|