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

Last change on this file since 130129 was 130129, checked in by mojca@…, 5 years ago

p5-*: remove support for Perl versions 5.8-5.14 (#46322)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 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 130129 2014-12-27 11:23:11Z mojca@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7perl5.branches      5.16 5.18 5.20
8perl5.setup         DBD-mysql 4.029
9license             {Artistic-1 GPL}
10maintainers         nomaintainer
11description         Perl5 Database Interface to the MySQL database
12long_description    ${description}
13
14platforms           darwin
15
16checksums           rmd160  c176df648b441bdac36eb77c7cc2b62880956701 \
17                    sha256  a49d1c1bcfacc09cf2d1fa638ae653c2e6c58ebc08160930692282ab1873d50c
18
19if {${perl5.major} != ""} {
20
21    depends_lib-append          port:p${perl5.major}-dbi
22
23    variant mysql4 conflicts mysql5 mysql51 mysql55 mysql56 mariadb percona description {build with mysql4 port} {
24        depends_lib-append      port:mysql4
25    }
26
27    variant mysql5 conflicts mysql4 mysql51 mysql55 mysql56 mariadb percona description {build with mysql5 port} {
28        depends_lib-append      path:bin/mysql_config5:mysql5
29        configure.args-append   --mysql_config=${prefix}/bin/mysql_config5
30    }
31
32    variant mysql51 conflicts mysql4 mysql5 mysql55 mysql56 mariadb percona description {build with mysql51 port} {
33        depends_lib-append      port:mysql51
34        configure.args-append   --mysql_config=${prefix}/lib/mysql51/bin/mysql_config
35    }
36
37    variant mysql55 conflicts mysql4 mysql5 mysql51 mysql56 mariadb percona description {build with mysql55 port} {
38        depends_lib-append      port:mysql55
39        configure.args-append   --mysql_config=${prefix}/lib/mysql55/bin/mysql_config
40    }
41
42    variant mysql56 conflicts mysql4 mysql5 mysql51 mysql55 mariadb percona description {build with mysql56 port} {
43        depends_lib-append      port:mysql56
44        configure.args-append   --mysql_config=${prefix}/lib/mysql56/bin/mysql_config
45    }
46
47    variant mariadb conflicts mysql4 mysql5 mysql51 mysql55 mysql56 percona description {build with mariadb port} {
48        depends_lib-append      port:mariadb
49        configure.args-append   --mysql_config=${prefix}/lib/mariadb/bin/mysql_config
50    }
51
52    variant percona conflicts mysql4 mysql5 mysql51 mysql55 mysql56 mariadb description {build with percona port} {
53        depends_lib-append      port:percona
54        configure.args-append   --mysql_config=${prefix}/lib/percona/bin/mysql_config
55    }
56
57    if {   ![variant_isset mysql4]
58        && ![variant_isset mysql5]
59        && ![variant_isset mysql51]
60        && ![variant_isset mysql55]
61        && ![variant_isset mysql56]
62        && ![variant_isset mariadb]
63        && ![variant_isset percona]
64    } {
65        default_variants +mysql56
66    }
67}
Note: See TracBrowser for help on using the repository browser.