Ticket #40057: patch-databases-mysqlxx-3.2.0-variants.diff

File patch-databases-mysqlxx-3.2.0-variants.diff, 4.6 KB (added by pixilla (Bradley Giesbrecht), 11 years ago)
  • opt/local/var/macports/sources/svn.macports.org/trunk/dports/databases/mysqlxx/Portfile

     
     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
    12# $Id$
    23
    34PortSystem 1.0
     
    34
    45name            mysqlxx
    5 version         3.0.8
     6version         3.2.0
    67categories      databases
    78maintainers     genetikayos.com:kayos
     
    1415homepage        http://tangentsoft.net/mysql++/
    1516master_sites    http://tangentsoft.net/mysql++/releases/
    1617distname        mysql++-${version}
    17 checksums       md5 b977bbf671df08661c15cde051db1513 \
    18                 sha1 060d81dcf284732a4dc3f74b305f48ec8d12150f \
    19                 rmd160 686fc71773c3d828ed01374ba383e2d58ea5f370
    2018
     19checksums           rmd160  308142c8462f801cdf219a63a07de63e717d51a6 \
     20                    sha256  4d65caa4185801402ca62ffb37fa9c03216a32bea34ef77952fee8fe8f38718b
     21
    2122depends_lib     port:gettext \
    2223                port:zlib
    2324
    24 variant mysql4 conflicts mysql5 description {Build with MySQL 4 support} {
    25         depends_lib-append      port:mysql4
    26         configure.args          --with-mysql=${prefix}
     25variant mysql4 \
     26    conflicts mysql5 mysql51 mysql55 mysql56 mariadb percona \
     27    description {Build with mysql4 port} {
     28
     29    depends_lib-append      port:mysql4
     30    configure.args-append   --with-mysql=${prefix}
    2731}
    2832
    29 variant mysql5 conflicts mysql4 description {Build with MySQL 5 support} {
    30         depends_lib-append      path:bin/mysql_config5:mysql5
    31         configure.args          --with-mysql-lib=${prefix}/lib/mysql5/mysql \
    32                                 --with-mysql-include=${prefix}/include/mysql5/mysql
     33variant mysql5 \
     34    conflicts mysql4 mysql51 mysql55 mysql56 mariadb percona \
     35    description {Build with mysql5 port} {
     36
     37    depends_lib-append      port:mysql5
     38    configure.args-append   --with-mysql-lib=${prefix}/lib/mysql5/mysql \
     39                            --with-mysql-include=${prefix}/include/mysql5/mysql
    3340}
    3441
    35 if {![variant_isset mysql4]} {
    36         default_variants +mysql5
     42variant mysql51 \
     43    conflicts mysql4 mysql5 mysql55 mysql56 mariadb percona \
     44    description {Build with mysql51 port} {
     45
     46    depends_lib-append      port:mysql51
     47    configure.args-append   --with-mysql-lib=${prefix}/lib/mysql51/mysql \
     48                            --with-mysql-include=${prefix}/include/mysql51/mysql
    3749}
    3850
     51variant mysql55 \
     52    conflicts mysql4 mysql5 mysql51 mysql56 mariadb percona \
     53    description {Build with mysql55 port} {
     54
     55    depends_lib-append      port:mysql55
     56    configure.args-append   --with-mysql-lib=${prefix}/lib/mysql55/mysql \
     57                            --with-mysql-include=${prefix}/include/mysql55/mysql
     58}
     59
     60variant mysql56 \
     61    conflicts mysql4 mysql5 mysql51 mysql55 mariadb percona \
     62    description {Build with mysql56 port} {
     63
     64    depends_lib-append      port:mysql56
     65    configure.args-append   --with-mysql-lib=${prefix}/lib/mysql56/mysql \
     66                            --with-mysql-include=${prefix}/include/mysql56/mysql
     67}
     68
     69variant mariadb \
     70    conflicts mysql4 mysql5 mysql51 mysql55 mysql56 percona \
     71    description {Build with mariadb port} {
     72
     73    depends_lib-append      port:mariadb
     74    configure.args-append   --with-mysql-lib=${prefix}/lib/mariadb/mysql \
     75                            --with-mysql-include=${prefix}/include/mariadb/mysql
     76}
     77
     78variant percona \
     79    conflicts mysql4 mysql5 mysql51 mysql55 mysql56 mariadb \
     80    description {Build with percona port} {
     81
     82    depends_lib-append      port:percona
     83    configure.args-append   --with-mysql-lib=${prefix}/lib/percona/mysql \
     84                            --with-mysql-include=${prefix}/include/percona/mysql
     85}
     86
     87if {
     88
     89    ![variant_isset mysql4]
     90    && ![variant_isset mysql5]
     91    && ![variant_isset mysql51]
     92    && ![variant_isset mysql55]
     93    && ![variant_isset mysql56]
     94    && ![variant_isset mariadb]
     95    && ![variant_isset percona]
     96} {
     97    default_variants    +mariadb
     98}
     99pre-fetch {
     100    if {
     101
     102        ![variant_isset mysql4]
     103        && ![variant_isset mysql5]
     104        && ![variant_isset mysql51]
     105        && ![variant_isset mysql55]
     106        && ![variant_isset mysql56]
     107        && ![variant_isset mariadb]
     108        && ![variant_isset percona]
     109    } {
     110
     111        return -code error "${name} requires one of these variants: +mysql4, +mysql5, +mysql51, +mysql55, +mysql56, +mariadb or +percona"
     112    }
     113}
     114
    39115livecheck.type  regex
    40116livecheck.url   [lindex ${master_sites} 0]?C=M&O=D
    41117livecheck.regex mysql\\+\\+-(\[0-9.\]+)\\.tar