Ticket #16727: Portfile-sphinx.diff

File Portfile-sphinx.diff, 2.5 KB (added by pete@…, 16 years ago)

Patch to sphinx 0.9.8 Portfile

  • Portfile

    old new  
    1313Sphinx is a full-text search engine, meant to provide fast, size-efficient and relevant \
    1414fulltext search functions to other applications. Sphinx was specially designed to integrate \
    1515well with SQL databases and scripting languages. Currently built-in data sources \
    16 support fetching data either via direct connection to MySQL, or from an XML pipe.
     16support fetching data either via direct connection to MySQL or PostgreSQL, or from an XML pipe.
    1717
    1818homepage                http://www.sphinxsearch.com
    1919master_sites            ${homepage}/downloads/
    2020distfiles               sphinx-${version}.tar.gz
    2121checksums               sha1 0f82e56a9181b3aeaeef65e9ba82fbf6fbe632d6
    2222
    23 depends_lib             port:mysql5
    2423configure.args  --mandir=${prefix}/share/man \
    2524                --datadir=${prefix}/share/doc \
    26                 --with-mysql-includes=${prefix}/include/mysql5/mysql \
    27                 --with-mysql-libs=${prefix}/lib/mysql5/mysql
     25                --without-mysql \
     26                --without-pgsql
     27
     28default_variants +mysql
    2829
    2930test.run         yes
    3031
    31 variant postgres description {Enable PostgreSQL support for old PgSQL 8.2} {
     32variant mysql description {Enable MySQL support} {
     33    depends_lib-append      port:mysql5
     34    configure.args-append   --with-mysql
     35        configure.args-append   --with-mysql-includes=${prefix}/include/mysql5/mysql
     36        configure.args-append   --with-mysql-libs=${prefix}/lib/mysql5/mysql
     37    configure.args-delete   --without-mysql
     38}
     39
     40variant postgresql82 description {Enable PostgreSQL 8.2 support} {
    3241    depends_lib-append      port:postgresql82
    33     depends_lib-delete      port:mysql5
    3442    configure.args-append   --with-pgsql
    3543    configure.args-append   --with-pgsql-includes=${prefix}/include/postgresql82
    3644    configure.args-append   --with-pgsql-libs=${prefix}/lib/postgresql82
    37     configure.args-delete   --with-mysql-includes
     45    configure.args-delete   --without-pgsql
    3846}
    3947
    40 variant postgresql83 description {Enable PostgreSQL support for newer PgSQL v8.3} {
     48variant postgresql83 description {Enable PostgreSQL 8.3 support} {
    4149    depends_lib-append      port:postgresql83
    42     depends_lib-delete      port:mysql5
    43     configure.args-append   --without-mysql
    4450    configure.args-append   --with-pgsql
    4551    configure.args-append   --with-pgsql-includes=${prefix}/include/postgresql83
    4652    configure.args-append   --with-pgsql-libs=${prefix}/lib/postgresql83
    47     configure.args-delete   --with-mysql-includes
    48     configure.args-delete   --with-mysql-libs
     53    configure.args-delete   --without-pgsql
    4954}