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

Last change on this file was 149454, checked in by raimue@…, 2 years 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
RevLine 
[45324]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 raimue@macports.org $
3
4PortSystem          1.0
5
6name                qore-mysql-module
[149320]7version             2.0.2
[45324]8categories          lang
[95210]9license             LGPL-2.1
[45324]10maintainers         davidnichols
[46018]11description         MySQL module for Qore
[120168]12long_description    Module allowing communication with MySQL and MySQL-compatible DBs from the Qore Programming Language
[99153]13use_bzip2           yes
[54178]14homepage            http://qore.org
[45324]15platforms           darwin
[149320]16master_sites        https://github.com/qorelanguage/module-mysql/releases/download/v${version}
[45324]17
[149320]18checksums           md5 29800c39a41c90824ef530c551ae4a7e \
19                    sha1 5abf5c0ddea7719bee45dae0cbea76d8afe13dbe \
20                    rmd160 c3459e518186bfc4176cbb8b06adf5d68bcd4943
[45324]21
[149454]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} {}
[45324]30
[149454]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]} {
[120168]32    default_variants +mariadb
[120162]33}
34
[120168]35if {[variant_isset mariadb]} {
36    set mysql_port "mariadb"
[149454]37} elseif {[variant_isset mariadb100]} {
[149320]38    set mysql_port "mariadb-10.0"
[149454]39} elseif {[variant_isset mariadb101]} {
[149320]40    set mysql_port "mariadb-10.1"
[120168]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"
[149320]47} elseif {[variant_isset mysql57]} {
48    set mysql_port "mysql57"
[120168]49} elseif {[variant_isset percona]} {
50    set mysql_port "percona"
[120162]51}
52
[120168]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.