[106136] trunk/dports/net/libtorrent-rasterbar/Portfile

devans at macports.org devans at macports.org
Wed May 15 15:08:07 PDT 2013


Revision: 106136
          https://trac.macports.org/changeset/106136
Author:   devans at macports.org
Date:     2013-05-15 15:08:07 -0700 (Wed, 15 May 2013)
Log Message:
-----------
libtorrent-rasterbar: update to version 0.16.10, use active_variants port group.

Modified Paths:
--------------
    trunk/dports/net/libtorrent-rasterbar/Portfile

Modified: trunk/dports/net/libtorrent-rasterbar/Portfile
===================================================================
--- trunk/dports/net/libtorrent-rasterbar/Portfile	2013-05-15 21:37:12 UTC (rev 106135)
+++ trunk/dports/net/libtorrent-rasterbar/Portfile	2013-05-15 22:08:07 UTC (rev 106136)
@@ -2,10 +2,11 @@
 # $Id$
 
 PortSystem      1.0
+PortGroup       active_variants 1.1
 
 name            libtorrent-rasterbar
 conflicts       libtorrent-rasterbar-devel
-version         0.16.9
+version         0.16.10
 license         BSD
 categories      net
 maintainers     devans openmaintainer
@@ -20,9 +21,10 @@
     A C++ bittorrent library designed to run on anything from embedded systems to large scale \
     seed servers. It comes with python bindings and detailed documentation.
 
-checksums       sha256  7b7e1f68c75bd80c14a3b8ab937be0823363d60f32df1373fa6c76f9d7346f1d \
-                rmd160  33616f05063efff9832d8c058899c571c45c38f1
 
+checksums       rmd160  4e7a0fb60161ddf70169c5d59db3a432348ef531 \
+                sha256  4c0d78b28af8051ff8a19a3a3e10a5edfec50945b8f3c9a76612111c47d671bc
+
 depends_build   port:pkgconfig
 
 depends_lib     port:boost \
@@ -36,23 +38,6 @@
                     reinplace "s|__MP_BUILD_ARCH__|${build_arch}|" ${worksrcpath}/bindings/python/setup.py.in
                 }
 
-#
-# Make sure that boost is installed with the correct Python variant
-#
-
-pre-configure {
-    set boost_python_lib ${prefix}/lib/libboost_python-mt.dylib
-    set boost_python_version "0"
-    if {[file exists ${boost_python_lib}]} {
-        set boost_python_version [exec /usr/bin/otool -L ${boost_python_lib} | /usr/bin/grep Python | /usr/bin/sed -e "s|^.*Versions/||" -e "s|/.*||"]
-    }
-    if {${boost_python_version} != ${boost_python_required}} {
-            ui_error "This port requires 'boost ${boost_variant}'. Please install as follows:"
-            ui_error "    sudo port install boost ${boost_variant}"
-            return -code error
-    }
-}
-
 configure.args  --disable-silent-rules \
                 --enable-python-binding \
                 --enable-geoip \
@@ -61,6 +46,7 @@
                 --with-boost-python="boost_python-mt"
 
 variant python26 conflicts python27 description {Build bindings for Python 2.6} {
+        require_active_variants boost python26
         depends_lib-append port:python26
         configure.python ${prefix}/bin/python2.6
         configure.env-append \
@@ -68,6 +54,7 @@
 }
 
 variant python27 conflicts python26 description {Build bindings for Python 2.7} {
+        require_active_variants boost python27
         depends_lib-append port:python27
         configure.python ${prefix}/bin/python2.7
         configure.env-append \
@@ -75,15 +62,10 @@
 }
 
 variant error_logging description {Enable logging of errors to disk} {
-    configure.args-append --enable-logging=errors
+        configure.args-append --enable-logging=errors
 }
 
-if {[variant_isset python26]} {
-        set boost_python_required 2.6
-        set boost_variant         +python26
-} else {
-        set boost_python_required 2.7
-        set boost_variant         +python27
+if {![variant_isset python26]} {
         default_variants          +python27
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130515/7ecaa460/attachment.html>


More information about the macports-changes mailing list