On Jan 29, 2012, at 09:50, [email protected] wrote:

> Revision: 89444
>          http://trac.macports.org/changeset/89444
> Author:   [email protected]
> Date:     2012-01-29 07:50:25 -0800 (Sun, 29 Jan 2012)
> Log Message:
> -----------
> version bump to 5.0.3, change tarball format to xz, change variant names to 
> current, make bdb the default variant, add postgresql91, too
> 
> Modified Paths:
> --------------
>    trunk/dports/databases/libgda5/Portfile

> +variant bdb  description {support for Berkeley DB} {
> +#
> +# prefer Berkeley DB 4.7 over 4.6
> +# and depend on it if 4.6 is not installed
> +# if both are installed configure will select 4.7
> +# otherwise look for 4.6
> +#
> +    if ([file exists ${prefix}/include/db52/db.h]) {
> +        depends_lib-append port:db52
> +    } elseif ([file exists ${prefix}/include/db46/db.h])  {
> +        depends_lib-append port:db46
> +    } elseif ([file exists ${prefix}/include/db47/db.h])  {
> +        depends_lib-append port:db47
> +    } elseif ([file exists ${prefix}/include/db48/db.h])  {
> +        depends_lib-append port:db48
> +    } elseif ([file exists ${prefix}/include/db51/db.h])  {
> +        depends_lib-append port:db51
> +    }
> +}

I'm still really not comfortable with this strategy. Any user selecting a 
variant should get the same result; it should not matter what existing versions 
of other ports they have installed.



_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to