1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: Portfile 58433 2009-09-28 18:18:09Z snc@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name sphinx |
---|
7 | version 0.9.9 |
---|
8 | categories textproc net |
---|
9 | maintainers brett openmaintainer |
---|
10 | |
---|
11 | platforms darwin |
---|
12 | description Sphinx is a full-text search engine |
---|
13 | long_description Sphinx is a full-text search engine, meant to provide \ |
---|
14 | fast, size-efficient and relevant fulltext search \ |
---|
15 | functions to other applications. Sphinx was specially \ |
---|
16 | designed to integrate well with SQL databases and \ |
---|
17 | scripting languages. Currently built-in data sources \ |
---|
18 | support fetching data either via direct connection to \ |
---|
19 | MySQL, or from an XML pipe. |
---|
20 | |
---|
21 | homepage http://www.sphinxsearch.com |
---|
22 | master_sites ${homepage}/downloads/ |
---|
23 | checksums sha1 8c739b96d756a50972c27c7004488b55d7458015 |
---|
24 | |
---|
25 | depends_lib path:bin/mysql_config5:mysql5 |
---|
26 | configure.args --mandir=${prefix}/share/man \ |
---|
27 | --datadir=${prefix}/share/doc \ |
---|
28 | --sysconfdir=${prefix}/etc/sphinx \ |
---|
29 | --with-mysql-includes=${prefix}/include/mysql5/mysql \ |
---|
30 | --with-mysql-libs=${prefix}/lib/mysql5/mysql |
---|
31 | |
---|
32 | test.run yes |
---|
33 | |
---|
34 | variant postgres conflicts postgresql83 postgresql84 description {Enable PostgreSQL support for old PgSQL 8.2} { |
---|
35 | depends_lib-append port:postgresql82 |
---|
36 | depends_lib-delete path:bin/mysql_config5:mysql5 |
---|
37 | configure.args-append --with-pgsql |
---|
38 | configure.args-append --with-pgsql-includes=${prefix}/include/postgresql82 |
---|
39 | configure.args-append --with-pgsql-libs=${prefix}/lib/postgresql82 |
---|
40 | configure.args-delete --with-mysql-includes |
---|
41 | } |
---|
42 | |
---|
43 | variant postgresql83 conflicts postgres postgresql84 description {Enable PostgreSQL support for newer PgSQL v8.3} { |
---|
44 | depends_lib-append port:postgresql83 |
---|
45 | depends_lib-delete path:bin/mysql_config5:mysql5 |
---|
46 | configure.args-append --with-pgsql |
---|
47 | configure.args-append --with-pgsql-includes=${prefix}/include/postgresql83 |
---|
48 | configure.args-append --with-pgsql-libs=${prefix}/lib/postgresql83 |
---|
49 | configure.args-delete --with-mysql-includes |
---|
50 | } |
---|
51 | |
---|
52 | variant postgresql84 conflicts postgres postgresql83 description {Enable PostgreSQL support for newer PgSQL v8.4} { |
---|
53 | depends_lib-append port:postgresql84 |
---|
54 | depends_lib-delete path:bin/mysql_config5:mysql5 |
---|
55 | configure.args-append --with-pgsql |
---|
56 | configure.args-append --with-pgsql-includes=${prefix}/include/postgresql84 |
---|
57 | configure.args-append --with-pgsql-libs=${prefix}/lib/postgresql84 |
---|
58 | configure.args-delete --with-mysql-includes |
---|
59 | } |
---|