[114326] trunk/dports/gis

Ryan Schmidt ryandesign at macports.org
Thu Dec 5 02:25:47 PST 2013


On Dec 5, 2013, at 04:01, vince at macports.org wrote:

> Revision
> 114326
> Author
> vince at macports.org
> Date
> 2013-12-05 02:01:03 -0800 (Thu, 05 Dec 2013)
> Log Message
> 
> Initial commit of v.2


> Added: trunk/dports/gis/pgrouting/Portfile (0 => 114326)


> +github.setup        pgRouting pgrouting 2.0.0 v
> +name                pgrouting

The name line can be removed because github.setup sets it for you.


> +# Variants
> +variant postgresql92 description {Use postgresql92} {
> +    depends_lib-append      port:postgresql92
> +    configure.args-append   -DPOSTGRESQL_PG_CONFIG=${prefix}/lib/postgresql92/bin/pg_config
> +    configure.args-append   -DPOSTGRESQL_EXECUTABLE=${prefix}/lib/postgresql92/bin/postgres
> +}
> +
> +variant postgresql93 description {Use postgresql93} {
> +    depends_lib-append      port:postgresql93
> +    configure.args-append   -DPOSTGRESQL_PG_CONFIG=${prefix}/lib/postgresql93/bin/pg_config
> +    configure.args-append   -DPOSTGRESQL_EXECUTABLE=${prefix}/lib/postgresql93/bin/postgres
> +}

These two variants cannot be used at the same time, so they should be marked as conflicting with one another.


> +variant doc description {install documentation} {
> +    depends_lib-append      port:sphinx
> +    configure.args-append   -DWITH_DOC=YES
> +}
> +
> +default_variants    +postgresql92

The latest stable version (postgresql93) should probably be the default, but remember to first check if the user has already requested a different variant.

https://trac.macports.org/wiki/PortfileRecipes#default_variants




More information about the macports-dev mailing list