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

devans at macports.org devans at macports.org
Wed Jun 24 09:43:04 PDT 2009


Revision: 52855
          http://trac.macports.org/changeset/52855
Author:   devans at macports.org
Date:     2009-06-24 09:43:03 -0700 (Wed, 24 Jun 2009)
Log Message:
-----------
deluge: 

Remove the dependency on boost but error out in preconfigure check if boost +python25
is not installed with instructions to the user to install/reinstall the port manually
with the proper variant. This avoids the obnoxious and user unfriendly behavior of
installing boost without python25 support and then telling the user to dectivate it
and install boost +python25. Error message is made more prominent and hopefully easier
to understand for the naive user.

Partially addresses issues expressed in #126, #20057.

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

Modified: trunk/dports/net/deluge/Portfile
===================================================================
--- trunk/dports/net/deluge/Portfile	2009-06-24 16:37:35 UTC (rev 52854)
+++ trunk/dports/net/deluge/Portfile	2009-06-24 16:43:03 UTC (rev 52855)
@@ -31,8 +31,7 @@
 	port:py25-chardet \
         port:py25-gtk \
 	port:py25-setuptools \
-	port:py25-xdg \
-	port:boost
+	port:py25-xdg
 
 #patchfiles  patch-setup.py.diff
 
@@ -46,8 +45,30 @@
 
 pre-configure {
 	if { ![file exists ${prefix}/lib/libboost_python-mt.dylib] } {
-		ui_error "You must build boost with the python25 variant"
-		error "You must build boost with the python25 variant"
+	    if { [file exists ${prefix}/lib/libboost_system-mt.dylib] } {
+                ui_error "
+****
+**** Deluge requires port boost installed with variant +python25.
+**** Please do the following then try installing deluge again:
+****
+****     sudo port deactivate boost
+****     sudo port install boost +python25
+****
+
+"
+	    } else {
+                ui_error "
+****
+**** Deluge requires port boost installed with variant +python25.
+**** Please do the following then try installing deluge again:
+****
+****     sudo port install boost +python25
+****
+
+"
+            }
+            
+            error "Deluge requires boost +python25"
 	}
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090624/1160cfac/attachment.html>


More information about the macports-changes mailing list