[52861] trunk/dports/net/deluge/Portfile

devans at macports.org devans at macports.org
Wed Jun 24 14:29:23 PDT 2009


Revision: 52861
          http://trac.macports.org/changeset/52861
Author:   devans at macports.org
Date:     2009-06-24 14:29:22 -0700 (Wed, 24 Jun 2009)
Log Message:
-----------
deluge: refine detection of boost python support so that a dependency on boost remains in the case where python support is available.

Modified Paths:
--------------
    trunk/dports/net/deluge/Portfile

Modified: trunk/dports/net/deluge/Portfile
===================================================================
--- trunk/dports/net/deluge/Portfile	2009-06-24 18:54:59 UTC (rev 52860)
+++ trunk/dports/net/deluge/Portfile	2009-06-24 21:29:22 UTC (rev 52861)
@@ -25,7 +25,8 @@
 	port:py25-setuptools
 
 depends_lib-append	\
-	port:dbus-python25 \
+	port:boost \
+        port:dbus-python25 \
 	port:gettext \
 	port:librsvg \
 	port:py25-chardet \
@@ -33,6 +34,10 @@
 	port:py25-setuptools \
 	port:py25-xdg
 
+if { ![file exists ${prefix}/lib/libboost_python-mt.dylib] } {
+	depends_lib-delete port:boost
+}
+
 #patchfiles  patch-setup.py.diff
 
 configure.cflags-append	-I${prefix}/include/boost
@@ -43,7 +48,7 @@
 	CFLAGS="-I${prefix}/include -I${prefix}/include/boost" \
         CC=${configure.cc} CXX=${configure.cxx} CPP=${configure.cpp}
 
-pre-configure {
+pre-fetch {
 	if { ![file exists ${prefix}/lib/libboost_python-mt.dylib] } {
 	    if { [file exists ${prefix}/lib/libboost_system-mt.dylib] } {
                 ui_error "
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090624/bb9c3a59/attachment-0001.html>


More information about the macports-changes mailing list