source: trunk/dports/textproc/sphinx/Portfile @ 99044

Last change on this file since 99044 was 99044, checked in by ryandesign@…, 8 years ago

sphinx: fix postgresql92 variant; ensure we don't opportunistically link with unixodbc

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 6.1 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 99044 2012-10-25 01:26:49Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                sphinx
7version             2.0.6
8revision            1
9categories          textproc net
10license             GPL-2
11platforms           darwin
12maintainers         nomaintainer
13
14description         Sphinx is a full-text search engine
15
16long_description    Sphinx is a full-text search engine, meant to provide \
17                    fast, size-efficient and relevant fulltext search \
18                    functions to other applications. Sphinx was specially \
19                    designed to integrate well with SQL databases and \
20                    scripting languages. Currently built-in data sources \
21                    support fetching data either via direct connection to \
22                    MySQL or PostgreSQL, or from an XML pipe.
23
24homepage            http://sphinxsearch.com/
25master_sites        ${homepage}files/
26distname            ${name}-${version}-release
27
28checksums           rmd160  6fd53230457e62a6aabcb5321265abd8ea324cf6 \
29                    sha256  de943c397efda706661b3a12e12e9f8cc8a03bf6c02c5a6ba967a06384feede2
30
31depends_lib         port:expat \
32                    port:libiconv
33
34patchfiles          endian.patch
35
36configure.args      --datadir=${prefix}/share/doc \
37                    --sysconfdir=${prefix}/etc/sphinx \
38                    --without-mysql \
39                    --without-unixodbc
40
41test.run            yes
42
43variant postgres requires postgresql82 description {Legacy compatibility variant} {}
44
45variant postgresql82 conflicts postgresql83 postgresql84 postgresql90 postgresql91 postgresql92 description {Enable PostgreSQL 8.2 support} {
46    depends_lib-append      port:postgresql82
47    configure.args-append   --with-pgsql \
48                            --with-pgsql-includes=${prefix}/include/postgresql82 \
49                            --with-pgsql-libs=${prefix}/lib/postgresql82
50}
51
52variant postgresql83 conflicts postgresql82 postgresql84 postgresql90 postgresql91 postgresql92 description {Enable PostgreSQL 8.3 support} {
53    depends_lib-append      port:postgresql83
54    configure.args-append   --with-pgsql \
55                            --with-pgsql-includes=${prefix}/include/postgresql83 \
56                            --with-pgsql-libs=${prefix}/lib/postgresql83
57}
58
59variant postgresql84 conflicts postgresql82 postgresql83 postgresql90 postgresql91 postgresql92 description {Enable PostgreSQL 8.4 support} {
60    depends_lib-append      port:postgresql84
61    configure.args-append   --with-pgsql \
62                            --with-pgsql-includes=${prefix}/include/postgresql84 \
63                            --with-pgsql-libs=${prefix}/lib/postgresql84
64}
65
66variant postgresql90 conflicts postgresql82 postgresql83 postgresql84 postgresql91 postgresql92 description {Enable PostgreSQL 9.0 support} {
67    depends_lib-append      port:postgresql90
68    configure.args-append   --with-pgsql \
69                            --with-pgsql-includes=${prefix}/include/postgresql90 \
70                            --with-pgsql-libs=${prefix}/lib/postgresql90
71}
72
73variant postgresql91 conflicts postgresql82 postgresql83 postgresql84 postgresql90 postgresql92 description {Enable PostgreSQL 9.1 support} {
74    depends_lib-append      port:postgresql91
75    configure.args-append   --with-pgsql \
76                            --with-pgsql-includes=${prefix}/include/postgresql91 \
77                            --with-pgsql-libs=${prefix}/lib/postgresql91
78}
79
80variant postgresql92 conflicts postgresql82 postgresql83 postgresql84 postgresql90 postgresql91 description {Enable PostgreSQL 9.2 support} {
81    depends_lib-append      port:postgresql92
82    configure.args-append   --with-pgsql \
83                            --with-pgsql-includes=${prefix}/include/postgresql92 \
84                            --with-pgsql-libs=${prefix}/lib/postgresql92
85}
86
87variant mysql5 conflicts mysql51 mysql55 mariadb percona description {Enable MySQL 5 support} {
88    depends_lib-append      path:bin/mysql_config5:mysql5
89    configure.args-delete   --without-mysql
90    configure.args-append   --with-mysql-includes=${prefix}/include/mysql5/mysql \
91                            --with-mysql-libs=${prefix}/lib/mysql5/mysql
92}
93
94variant mysql51 conflicts mysql5 mysql55 mariadb percona description {Enable MySQL 5.1 support} {
95    depends_lib-append      port:mysql51
96    configure.args-delete   --without-mysql
97    configure.args-append   --with-mysql-includes=${prefix}/include/mysql51/mysql \
98                            --with-mysql-libs=${prefix}/lib/mysql51/mysql
99}
100
101variant mysql55 conflicts mysql5 mysql51 mariadb percona description {Enable MySQL 5.5 support} {
102    depends_lib-append      port:mysql55
103    configure.args-delete   --without-mysql
104    configure.args-append   --with-mysql-includes=${prefix}/include/mysql55/mysql \
105                            --with-mysql-libs=${prefix}/lib/mysql55/mysql
106}
107
108variant mariadb conflicts mysql5 mysql51 mysql55 percona description {Enable MariaDB support} {
109    depends_lib-append      port:mariadb
110    configure.args-delete   --without-mysql
111    configure.args-append   --with-mysql-includes=${prefix}/include/mariadb/mysql \
112                            --with-mysql-libs=${prefix}/lib/mariadb/mysql
113}
114
115variant percona conflicts mysql5 mysql51 mysql55 mariadb description {Enable Percona support} {
116    depends_lib-append      port:percona
117    configure.args-delete   --without-mysql
118    configure.args-append   --with-mysql-includes=${prefix}/include/percona/mysql \
119                            --with-mysql-libs=${prefix}/lib/percona/mysql
120}
121
122if {![variant_isset postgresql82] && ![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset postgresql90] && ![variant_isset postgresql91] && ![variant_isset postgresql92] && ![variant_isset mysql5] && ![variant_isset mysql51] && ![variant_isset mysql55] && ![variant_isset mariadb] && ![variant_isset percona]} {
123    default_variants +mysql5
124}
125
126livecheck.type      regex
127livecheck.url       ${homepage}downloads/release/
128livecheck.regex     ${name}-(\[0-9.\]+)-release${extract.suffix}
Note: See TracBrowser for help on using the repository browser.