source: trunk/dports/perl/p5-dbd-mysql/Portfile

Last change on this file was 154393, checked in by mojca@…, 11 months ago

p5-*: remove subports for perl5.22 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.0 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 154393 2016-10-28 22:10:07Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7perl5.branches      5.24
8perl5.setup         DBD-mysql 4.038
9license             {Artistic-1 GPL}
10maintainers         nomaintainer
11description         Perl5 Database Interface to the MySQL database
12long_description    ${description}
13
14platforms           darwin
15
16checksums           rmd160  e0775af6d210794ce7b8cdbdae096fed508d204d \
17                    sha256  4174bb885a5ccb34d942fc10fafb8bfcbc6d4b4311681ed90727ae1d3bd122e8
18
19if {${perl5.major} != ""} {
20# use Time::HiRes 1.9739+ for Sierra compatibility
21    depends_build-append \
22                    port:p${perl5.major}-test-deep \
23                    port:p${perl5.major}-time-hires
24
25    depends_lib-append \
26                    port:p${perl5.major}-dbi
27
28    variant mysql4 conflicts mysql5 mysql51 mysql55 mysql56 mysql57 mariadb mariadb10_0 mariadb10_1 percona description {build with mysql4 port} {
29        depends_lib-append      port:mysql4
30    }
31
32    variant mysql5 conflicts mysql4 mysql51 mysql55 mysql56 mysql57 mariadb mariadb10_0 mariadb10_1 percona description {build with mysql5 port} {
33        depends_lib-append      path:bin/mysql_config5:mysql5
34        configure.args-append   --mysql_config=${prefix}/bin/mysql_config5
35    }
36
37    variant mysql51 conflicts mysql4 mysql5 mysql55 mysql56 mysql57 mariadb mariadb10_0 mariadb10_1 percona description {build with mysql51 port} {
38        depends_lib-append      port:mysql51
39        configure.args-append   --mysql_config=${prefix}/lib/mysql51/bin/mysql_config
40    }
41
42    variant mysql55 conflicts mysql4 mysql5 mysql51 mysql56 mysql57 mariadb mariadb10_0 mariadb10_1 percona description {build with mysql55 port} {
43        depends_lib-append      port:mysql55
44        configure.args-append   --mysql_config=${prefix}/lib/mysql55/bin/mysql_config
45    }
46
47    variant mysql56 conflicts mysql4 mysql5 mysql51 mysql55 mysql57 mariadb mariadb10_0 mariadb10_1 percona description {build with mysql56 port} {
48        depends_lib-append      port:mysql56
49        configure.args-append   --mysql_config=${prefix}/lib/mysql56/bin/mysql_config
50    }
51
52    variant mysql57 conflicts mysql4 mysql5 mysql51 mysql55 mysql56 mariadb mariadb10_0 mariadb10_1 percona description {build with mysql57 port} {
53        depends_lib-append      port:mysql57
54        configure.args-append   --mysql_config=${prefix}/lib/mysql57/bin/mysql_config
55    }
56
57    variant mariadb conflicts mysql4 mysql5 mysql51 mysql55 mysql56 mysql57 mariadb10_0 mariadb10_1 percona description {build with mariadb port} {
58        depends_lib-append      port:mariadb
59        configure.args-append   --mysql_config=${prefix}/lib/mariadb/bin/mysql_config
60    }
61
62    variant mariadb10_0 conflicts mysql4 mysql5 mysql51 mysql55 mysql56 mysql57 mariadb mariadb10_1 percona description {build with mariadb port} {
63        depends_lib-append      port:mariadb-10.0
64        configure.args-append   --mysql_config=${prefix}/lib/mariadb-10.0/bin/mysql_config
65    }
66
67    variant mariadb10_1 conflicts mysql4 mysql5 mysql51 mysql55 mysql56 mysql57 mariadb mariadb10_0 percona description {build with mariadb port} {
68        depends_lib-append      port:mariadb-10.1
69        configure.args-append   --mysql_config=${prefix}/lib/mariadb-10.1/bin/mysql_config
70    }
71
72    variant percona conflicts mysql4 mysql5 mysql51 mysql55 mysql56 mariadb description {build with percona port} {
73        depends_lib-append      port:percona
74        configure.args-append   --mysql_config=${prefix}/lib/percona/bin/mysql_config
75    }
76
77    if {   ![variant_isset mysql4]
78        && ![variant_isset mysql5]
79        && ![variant_isset mysql51]
80        && ![variant_isset mysql55]
81        && ![variant_isset mysql56]
82        && ![variant_isset mysql57]
83        && ![variant_isset mariadb]
84        && ![variant_isset mariadb10_0]
85        && ![variant_isset mariadb10_1]
86        && ![variant_isset percona]
87    } {
88        default_variants +mysql56
89    }
90}
Note: See TracBrowser for help on using the repository browser.