source: trunk/dports/lang/qore-mysql-module/Portfile

Last change on this file was 149454, checked in by raimue@…, 6 months ago

lang/qore-mysql-modules:
Fix error in variant naming, "Variant name mariadb-10.0 contains invalid characters".
Maintainer override as port was broken.

https://lists.macosforge.org/pipermail/macports-dev/2016-June/033120.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 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 149454 2016-06-21 15:09:26Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                qore-mysql-module
7version             2.0.2
8categories          lang
9license             LGPL-2.1
10maintainers         davidnichols
11description         MySQL module for Qore
12long_description    Module allowing communication with MySQL and MySQL-compatible DBs from the Qore Programming Language
13use_bzip2           yes
14homepage            http://qore.org
15platforms           darwin
16master_sites        https://github.com/qorelanguage/module-mysql/releases/download/v${version}
17
18checksums           md5 29800c39a41c90824ef530c551ae4a7e \
19                    sha1 5abf5c0ddea7719bee45dae0cbea76d8afe13dbe \
20                    rmd160 c3459e518186bfc4176cbb8b06adf5d68bcd4943
21
22variant mariadb conflicts mariadb100 mariadb101 mysql51 mysql55 mysql56 mysql57 percona description {use mariadb} {}
23variant mariadb100 conflicts mariadb mariadb101 mysql51 mysql55 mysql56 mysql57 percona description {use mariadb-10.0} {}
24variant mariadb101 conflicts mariadb mariadb100 mysql51 mysql55 mysql56 mysql57 percona description {use mariadb-10.1} {}
25variant mysql51 conflicts mariadb mariadb100 mariadb101 mysql55 mysql56 mysql57 percona description {use mysql 5.1} {}
26variant mysql55 conflicts mariadb mariadb100 mariadb101 mysql51 mysql56 mysql57 percona description {use mysql 5.5} {}
27variant mysql56 conflicts mariadb mariadb100 mariadb101 mysql51 mysql55 mysql57 percona description {use mysql 5.6} {}
28variant mysql57 conflicts mariadb mariadb100 mariadb101 mysql51 mysql55 mysql56 percona description {use mysql 5.7} {}
29variant percona conflicts mariadb mariadb100 mariadb101 mysql51 mysql55 mysql56 mysql57 description {use percona} {}
30
31if {![variant_isset mariadb] && ![variant_isset mariadb100] && ![variant_isset mariadb101] && ![variant_isset mysql51] && ![variant_isset mysql55] && ![variant_isset mysql56] && ![variant_isset mysql57] && ![variant_isset percona]} {
32    default_variants +mariadb
33}
34
35if {[variant_isset mariadb]} {
36    set mysql_port "mariadb"
37} elseif {[variant_isset mariadb100]} {
38    set mysql_port "mariadb-10.0"
39} elseif {[variant_isset mariadb101]} {
40    set mysql_port "mariadb-10.1"
41} elseif {[variant_isset mysql51]} {
42    set mysql_port "mysql51"
43} elseif {[variant_isset mysql55]} {
44    set mysql_port "mysql55"
45} elseif {[variant_isset mysql56]} {
46    set mysql_port "mysql56"
47} elseif {[variant_isset mysql57]} {
48    set mysql_port "mysql57"
49} elseif {[variant_isset percona]} {
50    set mysql_port "percona"
51}
52
53depends_lib         port:qore \
54                    port:${mysql_port}
55
56configure.args      --disable-debug \
57                    --with-mysql-libs=${prefix}/lib/${mysql_port} --with-mysql-includes=${prefix}/include/${mysql_port}
Note: See TracBrowser for help on using the repository browser.