[63309] trunk/dports/devel/boost/Portfile

nox at macports.org nox at macports.org
Mon Feb 1 08:24:07 PST 2010


Revision: 63309
          http://trac.macports.org/changeset/63309
Author:   nox at macports.org
Date:     2010-02-01 08:24:06 -0800 (Mon, 01 Feb 2010)
Log Message:
-----------
Move some boost variants into the default build

Variants `doc`, `st` and `debug` are now always used.

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

Modified: trunk/dports/devel/boost/Portfile
===================================================================
--- trunk/dports/devel/boost/Portfile	2010-02-01 15:54:51 UTC (rev 63308)
+++ trunk/dports/devel/boost/Portfile	2010-02-01 16:24:06 UTC (rev 63309)
@@ -5,7 +5,7 @@
 
 name            boost
 version         1.41.0
-revision        1
+revision        2
 categories      devel
 platforms       darwin
 maintainers     nox openmaintainer
@@ -13,7 +13,7 @@
 
 long_description \
     Boost provides free portable peer-reviewed C++ \
-    libraries. The emphasis is on portable libraries \
+    libraries. The emphasgis is on portable libraries \
     which work well with the C++ Standard Library.
 
 homepage        http://www.boost.org
@@ -21,9 +21,9 @@
 distname        ${name}_[join [split ${version} .] _]
 use_bzip2       yes
 
-checksums           md5     8bb65e133907db727a2a825c5400d0a6 \
-                    sha1    31134e28866b90c39ca4a903c263e036bb25550c \
-                    rmd160  a604ef5a6f6f5bf50be59206c8534258ab431aea
+checksums       md5     8bb65e133907db727a2a825c5400d0a6 \
+                sha1    31134e28866b90c39ca4a903c263e036bb25550c \
+                rmd160  a604ef5a6f6f5bf50be59206c8534258ab431aea
 
 patchfiles      patch-boost-iostreams-device-mapped_file.hpp.diff \
                 patch-libs-random-random_device.cpp.diff
@@ -33,10 +33,11 @@
     copy ${filespath}/libs-random-build-Jamfile.v2 ${worksrcpath}/libs/random/build/Jamfile.v2
 }
 
-depends_build       path:bin/bjam:boost-jam
+depends_build   path:bin/bjam:boost-jam
 
-depends_lib         port:zlib \
-                    port:bzip2
+depends_lib     port:zlib \
+                port:expat \
+                port:bzip2
 
 configure {
     reinplace -E "s|-install_name \"|&${prefix}/lib/|" \
@@ -55,8 +56,12 @@
                 --without-mpi \
                 -sBZIP2_INCLUDE=${prefix}/include \
                 -sBZIP2_LIBPATH=${prefix}/lib \
+                -sEXPAT_INCLUDE=${prefix}/include \
+                -sEXPAT_LIBPATH=${prefix}/lib \
                 -sZLIB_INCLUDE=${prefix}/include \
-                -sZLIB_LIBPATH=${prefix}/lib
+                -sZLIB_LIBPATH=${prefix}/lib \
+                threading=single,multi \
+                variant=debug,release
 
 use_parallel_build  yes
 
@@ -78,6 +83,24 @@
     eval destroot.args  ${build.args}
 }
 
+post-destroot {
+    set docdir ${prefix}/share/doc/${name}
+    xinstall -d ${destroot}${docdir}
+    set l [expr [string length ${worksrcpath}] + 1]
+    fs-traverse f [glob -directory ${worksrcpath} *] {
+        set dest ${destroot}${docdir}/[string range ${f} ${l} end]
+        if {[file isdirectory ${f}]} {
+            if {[file tail ${f}] eq "example"} {
+                copy ${f} ${dest}
+                continue
+            }
+            xinstall -d ${dest}
+        } elseif {[lsearch -exact {css htm html png svg} [string range [file extension ${f}] 1 end]] != -1} {
+            xinstall -m 644 ${f} ${dest}
+        }
+    }
+}
+
 set pythons_suffixes {24 25 26}
 
 set pythons_ports {}
@@ -131,12 +154,6 @@
     build.args-append   -sICU_PATH=${prefix}
 }
 
-variant graphml description {Enable GraphML support in Boost.Graph} {
-    depends_lib-append  port:expat
-    build.args-append   -sEXPAT_INCLUDE=${prefix}/include \
-                -sEXPAT_LIBPATH=${prefix}/lib
-}
-
 variant openmpi description {Build Boost.MPI} {
     depends_lib-append  port:openmpi
     build.args-delete   --without-mpi
@@ -163,34 +180,6 @@
     }
 }
 
-variant debug description {Build debug libraries} {
-    build.args-append   variant=debug,release
-}
-
-variant doc description {Install documentation} {
-    post-destroot {
-        set docdir ${prefix}/share/doc/${name}-${version}
-        xinstall -d ${destroot}${docdir}
-        set l [expr [string length ${worksrcpath}] + 1]
-        fs-traverse f [glob -directory ${worksrcpath} *] {
-            set dest ${destroot}${docdir}/[string range ${f} ${l} end]
-            if {[file isdirectory ${f}]} {
-                if {[file tail ${f}] eq "example"} {
-                    copy ${f} ${dest}
-                    continue
-                }
-                xinstall -d ${dest}
-            } elseif {[lsearch -exact {css htm html png svg} [string range [file extension ${f}] 1 end]] != -1} {
-                xinstall -m 644 ${f} ${dest}
-            }
-        }
-    }
-}
-
-variant st description {Build single-threaded libraries} {
-    build.args-append   threading=single,multi
-}
-
 variant universal {
     build.args-append   pch=off
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100201/00ad48b9/attachment.html>


More information about the macports-changes mailing list