Ticket #45050: patch-textproc-sphinx.diff

File patch-textproc-sphinx.diff, 3.9 KB (added by pixilla (Bradley Giesbrecht), 10 years ago)
  • textproc/sphinx/Portfile

     
    3434patchfiles          endian.patch
    3535
    3636configure.args      --datadir=${prefix}/share/doc \
    37                     --sysconfdir=${prefix}/etc/sphinx \
     37                    --sysconfdir=${prefix}/etc/${name} \
     38                    --localstatedir=${prefix}/var/${name} \
    3839                    --without-mysql \
    3940                    --without-unixodbc
    4041
     42destroot.keepdirs   ${destroot}${prefix}/var/${name}/data
     43post-destroot {
     44    file mkdir ${destroot}${prefix}/var/${name}/data
     45}
     46
     47post-activate {
     48    if {![file exists ${prefix}/etc/${name}/${name}.conf]} {
     49        copy ${prefix}/etc/${name}/${name}.conf.dist \
     50            ${prefix}/etc/${name}/${name}.conf
     51    }
     52}
     53
    4154test.run            yes
    4255
    4356variant postgresql82 conflicts postgresql83 postgresql84 postgresql90 postgresql91 postgresql92 postgresql93 description {Enable PostgreSQL 8.2 support} {
     
    92105variant mysql5 conflicts mysql51 mysql55 mysql56 mariadb percona description {Enable MySQL 5 support} {
    93106    depends_lib-append      path:bin/mysql_config5:mysql5
    94107    configure.args-delete   --without-mysql
    95     configure.args-append   --with-mysql-includes=${prefix}/include/mysql5/mysql \
    96                             --with-mysql-libs=${prefix}/lib/mysql5/mysql
     108    configure.args-append   --with-mysql=${prefix}
    97109}
    98110
    99111variant mysql51 conflicts mysql5 mysql55 mysql56 mariadb percona description {Enable MySQL 5.1 support} {
    100112    depends_lib-append      port:mysql51
    101113    configure.args-delete   --without-mysql
    102     configure.args-append   --with-mysql-includes=${prefix}/include/mysql51/mysql \
    103                             --with-mysql-libs=${prefix}/lib/mysql51/mysql
     114    configure.args-append   --with-mysql=${prefix}/lib/mysql51
    104115}
    105116
    106117variant mysql55 conflicts mysql5 mysql51 mysql56 mariadb percona description {Enable MySQL 5.5 support} {
    107118    depends_lib-append      port:mysql55
    108119    configure.args-delete   --without-mysql
    109     configure.args-append   --with-mysql-includes=${prefix}/include/mysql55/mysql \
    110                             --with-mysql-libs=${prefix}/lib/mysql55/mysql
     120    configure.args-append   --with-mysql=${prefix}/lib/mysql55
    111121}
    112122
    113123variant mysql56 conflicts mysql5 mysql51 mysql55 mariadb percona description {Enable MySQL 5.6 support} {
    114124    depends_lib-append      port:mysql56
    115125    configure.args-delete   --without-mysql
    116     configure.args-append   --with-mysql-includes=${prefix}/include/mysql56/mysql \
    117                             --with-mysql-libs=${prefix}/lib/mysql56/mysql
     126    configure.args-append   --with-mysql=${prefix}/lib/mysql56
    118127}
    119128
    120129variant mariadb conflicts mysql5 mysql51 mysql55 percona description {Enable MariaDB support} {
    121130    depends_lib-append      port:mariadb
    122131    configure.args-delete   --without-mysql
    123     configure.args-append   --with-mysql-includes=${prefix}/include/mariadb/mysql \
    124                             --with-mysql-libs=${prefix}/lib/mariadb/mysql
     132    configure.args-append   --with-mysql=${prefix}/lib/mariadb
    125133}
    126134
    127135variant percona conflicts mysql5 mysql51 mysql55 mariadb description {Enable Percona support} {
    128136    depends_lib-append      port:percona
    129137    configure.args-delete   --without-mysql
    130     configure.args-append   --with-mysql-includes=${prefix}/include/percona/mysql \
    131                             --with-mysql-libs=${prefix}/lib/percona/mysql
     138    configure.args-append   --with-mysql=${prefix}/lib/percona
    132139}
    133140
    134141if {![variant_isset postgresql82] && ![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset postgresql90] && ![variant_isset postgresql91] && ![variant_isset postgresql92] && ![variant_isset postgresql93] && ![variant_isset mysql5] && ![variant_isset mysql51] && ![variant_isset mysql55] && ![variant_isset mysql56] && ![variant_isset mariadb] && ![variant_isset percona]} {