[52855] trunk/dports/net/deluge/Portfile
nox
n.oxyde at gmail.com
Wed Jun 24 09:50:35 PDT 2009
A better fix would be to add a dummy python25 variant to Deluge, which
would ALWAYS be enabled through variant_set.
Le 24 juin 09 à 18:43, devans at macports.org a écrit :
> Revision52855Authordevans at macports.orgDate2009-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
> Diff
> Modified: trunk/dports/net/deluge/Portfile (52854 => 52855)
>
> --- 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"
> }
> }
>
> _______________________________________________
> macports-changes mailing list
> macports-changes at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-changes
More information about the macports-dev
mailing list