[40328] trunk/dports/textproc/sphinx/Portfile

Ryan Schmidt ryandesign at macports.org
Mon Sep 29 23:16:58 PDT 2008


On Sep 29, 2008, at 11:19 AM, brett at macports.org wrote:

> Revision: 40328
>           http://trac.macports.org/changeset/40328
> Author:   brett at macports.org
> Date:     2008-09-29 09:19:58 -0700 (Mon, 29 Sep 2008)
> Log Message:
> -----------
> add postgresql83 option for sphinx
>
> Modified Paths:
> --------------
>     trunk/dports/textproc/sphinx/Portfile
>
> Modified: trunk/dports/textproc/sphinx/Portfile
> ===================================================================
> --- trunk/dports/textproc/sphinx/Portfile	2008-09-29 16:19:35 UTC  
> (rev 40327)
> +++ trunk/dports/textproc/sphinx/Portfile	2008-09-29 16:19:58 UTC  
> (rev 40328)
> @@ -20,6 +20,7 @@
>  distfiles		sphinx-${version}.tar.gz
>  checksums       	sha1 0f82e56a9181b3aeaeef65e9ba82fbf6fbe632d6
>
> +depends_lib-append	port:mysql5
>  configure.args  --mandir=${prefix}/share/man \
>                  --datadir=${prefix}/share/doc \
>  		--with-mysql-includes=${prefix}/include/mysql5/mysql \
> @@ -27,9 +28,17 @@
>
>  test.run         yes
>
> -variant postgres description {Enable PostgeSQL support} {
> +variant postgres description {Enable PostgreSQL support for old  
> PgSQL 8.2} {
>      depends_lib-append      port:postgresql82
>      configure.args-append   --with-pgsql
>      configure.args-append   --with-pgsql-includes=${prefix}/ 
> include/postgresql82
>      configure.args-append   --with-pgsql-libs=${prefix}/lib/ 
> postgresql82
>  }
> +
> +variant postgresql83 description {Enable PostgreSQL support for  
> newer PgSQL v8.3} {
> +    depends_lib-append      port:postgresql83
> +    configure.args-append   --with-pgsql
> +    configure.args-append   --with-pgsql-includes=${prefix}/ 
> include/postgresql83
> +    configure.args-append   --with-pgsql-libs=${prefix}/lib/ 
> postgresql83
> +    configure.args-delete   --with-mysql-includes
> +}

Is this correct?

You added a global mysql5 dependency which seems to match with the  
global --with-mysql-includes configure argument. But in the  
postgresql83 variant you delete the configure argument but don't  
delete the dependency? And in the postgres variant you don't delete  
either of them.




More information about the macports-dev mailing list