[69974] trunk/dports/devel/boost

adfernandes at macports.org adfernandes at macports.org
Sat Jul 24 10:48:40 PDT 2010


Revision: 69974
          http://trac.macports.org/changeset/69974
Author:   adfernandes at macports.org
Date:     2010-07-24 10:48:36 -0700 (Sat, 24 Jul 2010)
Log Message:
-----------
boost: adfernandes taking maintainership, fixing and closing #24851, #23667, and #21444

Modified Paths:
--------------
    trunk/dports/devel/boost/Portfile

Removed Paths:
-------------
    trunk/dports/devel/boost/files/libs-random-build-Jamfile.v2
    trunk/dports/devel/boost/files/patch-libs-random-random_device.cpp.diff

Modified: trunk/dports/devel/boost/Portfile
===================================================================
--- trunk/dports/devel/boost/Portfile	2010-07-24 14:31:02 UTC (rev 69973)
+++ trunk/dports/devel/boost/Portfile	2010-07-24 17:48:36 UTC (rev 69974)
@@ -4,7 +4,7 @@
 PortSystem      1.0
 
 name            boost
-version         1.42.0
+version         1.43.0
 license         Boost-1.0
 categories      devel
 platforms       darwin
@@ -18,20 +18,14 @@
 
 homepage        http://www.boost.org
 master_sites    sourceforge
-distname        ${name}_[join [split ${version} .] _]
+set distver     [join [split ${version} .] _]
+distname        ${name}_${distver}
 use_bzip2       yes
 
-checksums       md5     7bf3b4eb841b62ffb0ade2b82218ebe6 \
-                sha1    3ce3bb1a1bed504635287017f9e628597b409e7b \
-                rmd160  90cea6aaa35f22b97e6eb3f5879ca9fe21098349
+checksums       md5     dd49767bfb726b0c774f7db0cef91ed1 \
+                sha1    b8257b7da2a7222739314f8d1e07e217debe71d6 \
+                rmd160  950fe7c50ed8644ceffd8e494a8e0636037adacd
 
-patchfiles      patch-libs-random-random_device.cpp.diff
-
-post-extract {
-    file mkdir ${worksrcpath}/libs/random/build
-    copy ${filespath}/libs-random-build-Jamfile.v2 ${worksrcpath}/libs/random/build/Jamfile.v2
-}
-
 depends_build   path:bin/bjam:boost-jam
 
 depends_lib     port:zlib \
@@ -60,7 +54,7 @@
                 -sZLIB_INCLUDE=${prefix}/include \
                 -sZLIB_LIBPATH=${prefix}/lib \
                 threading=single,multi \
-                variant=debug,release
+                variant=release
 
 use_parallel_build  no
 
@@ -89,7 +83,7 @@
     }
 }
 
-set pythons_suffixes {24 25 26}
+set pythons_suffixes {24 25 26 27 31}
 
 set pythons_ports {}
 foreach s ${pythons_suffixes} {
@@ -120,7 +114,9 @@
     set i [lsearch -exact ${pythons_ports} ${p}]
     set c [lreplace ${pythons_ports} ${i} ${i}]
     eval [subst {
-        variant ${p} description "Build Boost.Python for Python ${v}" conflicts ${c} {
+        variant ${p} description "Build Boost.Python for Python ${v}" conflicts ${c} debug {
+            # Cannot build debug variants with openmpi and python variants as per the following:
+            # <http://trac.macports.org/ticket/23667> and <https://svn.boost.org/trac/boost/ticket/4461>
             patchfiles-append   patch-tools-build-v2-tools-python.jam.diff
 
             post-patch {
@@ -131,18 +127,25 @@
             build.args-delete   --without-python
 
             post-configure {
-                write_jam "using python : : ${prefix}/bin/python${v} ;"
+                write_jam "using python : : ${prefix}/bin/python${v} : : ${prefix}/lib ;"
             }
         }
     }]
 }
 
+variant debug description {Builds debug versions of the libraries as well} conflicts openmpi {
+    build.args-delete   variant=release
+    build.args-append   variant=debug,release
+}
+
 variant icu description {Enable Unicode support in Boost.Regex through ICU} {
     depends_lib-append  port:icu
     build.args-append   -sICU_PATH=${prefix}
 }
 
-variant openmpi description {Build Boost.MPI} {
+variant openmpi description {Build Boost.MPI} conflicts debug {
+    # Cannot build debug variants with openmpi and python variants as per the following:
+    # <http://trac.macports.org/ticket/23667> and <https://svn.boost.org/trac/boost/ticket/4461>
     depends_lib-append  port:openmpi
     build.args-delete   --without-mpi
 
@@ -171,7 +174,7 @@
     notes \
         You enabled +regex_match_extra variant, see the following page for an \
         exhaustive list of the consequences of this feature:\n\t \
-        http://www.boost.org/doc/libs/1_41_0/libs/regex/doc/html/boost_regex/ref/sub_match.html
+        http://www.boost.org/doc/libs/${distver}/libs/regex/doc/html/boost_regex/ref/sub_match.html
 
     post-patch {
         reinplace {/#define BOOST_REGEX_MATCH_EXTRA/s:^// ::} \

Deleted: trunk/dports/devel/boost/files/libs-random-build-Jamfile.v2
===================================================================
--- trunk/dports/devel/boost/files/libs-random-build-Jamfile.v2	2010-07-24 14:31:02 UTC (rev 69973)
+++ trunk/dports/devel/boost/files/libs-random-build-Jamfile.v2	2010-07-24 17:48:36 UTC (rev 69974)
@@ -1,15 +0,0 @@
-# Copyright (c) 2006 Tiziano Mueller
-#
-# Use, modification and distribution of the file is subject to the
-# Boost Software License, Version 1.0.
-# (See at http://www.boost.org/LICENSE_1_0.txt)
-
-
-project boost/random
-	: source-location ../ ;
-
-SOURCES = random_device ;
-
-lib boost_random
-	: $(SOURCES).cpp 
-	: <link>shared:<define>BOOST_RANDOM_DYN_LINK=1 ;

Deleted: trunk/dports/devel/boost/files/patch-libs-random-random_device.cpp.diff
===================================================================
--- trunk/dports/devel/boost/files/patch-libs-random-random_device.cpp.diff	2010-07-24 14:31:02 UTC (rev 69973)
+++ trunk/dports/devel/boost/files/patch-libs-random-random_device.cpp.diff	2010-07-24 17:48:36 UTC (rev 69974)
@@ -1,11 +0,0 @@
---- libs/random/random_device.cpp.orig	2009-06-11 15:27:21.000000000 +0200
-+++ libs/random/random_device.cpp	2009-06-11 15:28:01.000000000 +0200
-@@ -22,7 +22,7 @@
- #endif
- 
- 
--#if defined(__linux__) || defined (__FreeBSD__)
-+#if defined(__linux__) || defined (__FreeBSD__) || defined(__APPLE__)
- 
- // the default is the unlimited capacity device, using some secure hash
- // try "/dev/random" for blocking when the entropy pool has drained
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100724/981791a9/attachment.html>


More information about the macports-changes mailing list