On 2009-6-25 04:54, David Evans wrote:
> 
>> I was thinking that if I move the check for boost +python25 from
>> pre-configure to an earlier phase,
>> say pre-fetch, then the check can be done before dependencies are
>> checked and I can restore the
>> dependency.
>>
>> Will this work?  In particular, will a pre-fetch phase be executed even
>> if the distribution file has already
>> been fetched by a previous port invocation?
>>
>> Dave
> No, it doesn't work.  The pre-fetch phase is always executed but in the
> case where
> boost is not installed already and a dependency on boost exists, then
> port attempts to
> build the dependency (without +python25, of course) before executing the
> pre-fetch phase.
> 
> So in this case, its either build boost twice (several hours each time)
> or not have a
> dependency on boost recorded in the registry.

How about the attached patch for a slightly better dodgy hack?

- Josh
Index: Portfile
===================================================================
--- Portfile    (revision 52860)
+++ Portfile    (working copy)
@@ -25,6 +25,7 @@
        port:py25-setuptools
 
 depends_lib-append     \
+       port:boost \
        port:dbus-python25 \
        port:gettext \
        port:librsvg \
@@ -60,9 +61,9 @@
                 ui_error "
 ****
 **** Deluge requires port boost installed with variant +python25.
-**** Please do the following then try installing deluge again:
+**** Please install deluge with +python25 so that it will be applied to boost:
 ****
-****     sudo port install boost +python25
+****     sudo port install deluge +python25
 ****
 
 "
@@ -72,6 +73,12 @@
        }
 }
 
+variant python25 {}
+
+if {![variant_isset python25] && ![file exists 
${prefix}/lib/libboost_python-mt.dylib]} {
+       depends_lib-delete port:boost
+}
+
 livecheck.check regex
 livecheck.url   http://download.deluge-torrent.org/source/
 livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to