[87364] trunk/dports/devel/pficommon

Ryan Schmidt ryandesign at macports.org
Mon Nov 21 01:22:48 PST 2011


On Nov 18, 2011, at 06:31, hum at macports.org wrote:

> Revision: 87364
>          http://trac.macports.org/changeset/87364
> Author:   hum at macports.org
> Date:     2011-11-18 04:31:33 -0800 (Fri, 18 Nov 2011)
> Log Message:
> -----------
> pficommon: add variants to use MacPorts versions of database libraries; see http://lists.macosforge.org/pipermail/macports-dev/2011-November/016783.html.

> Modified: trunk/dports/devel/pficommon/Portfile

> -variant mysql description {Enable mysql} {
> -    depends_lib-append    lib:mysql_config:mysql5
> +variant mysql description {Enable MySQL} {
> +    depends_lib-append    port:mysql5
>     configure.args-delete --disable-mysql
> }
> 
> -variant postgresql description {Enable postgresql} {
> -    depends_lib-append    lib:libpq:postgresql91
> +variant mysql5 description {Enable MySQL 5} {
> +    depends_lib-append    port:mysql5
> +    configure.args-delete --disable-mysql
> +}
> +
> +variant postgresql description {Enable PostgreSQL} {
> +    depends_lib-append    port:postgresql91
>     configure.args-delete --disable-postgresql
> }
> 
> -variant fcgi description {Enable fcgi} {
> +variant postgresql91 description {Enable PostgreSQL 9.1} {
> +    depends_lib-append    port:postgresql91
> +    configure.args-delete --disable-postgresql
> +}
> +
> +variant postgresql90 description {Enable PostgreSQL 9.0} {
> +    depends_lib-append    port:postgresql90
> +    set pg_version        90
> +    configure.args-delete --disable-postgresql
> +}
> +
> +variant postgresql84 description {Enable PostgreSQL 8.4} {
> +    depends_lib-append    port:postgresql84
> +    set pg_version        84
> +    configure.args-delete --disable-postgresql
> +}

The various postgresql variants should be marked as conflicting with one another.

The postgresql and mysql variants should be deprecated and turned into stubs, e.g.:

variant mysql requires mysql5 description {Obsolete compatibility variant} {}

These old variants can then be removed at some point several months in the future after everyone can be assumed to have upgraded.




More information about the macports-dev mailing list