source: trunk/dports/databases/dbslayer/Portfile

Last change on this file was 119234, checked in by pixilla@…, 3 years ago

databases/dbslayer:

  • Remove mysql5 variant making mysql56 the new default.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.6 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 119234 2014-04-21 06:17:54Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                dbslayer
7version             beta-12
8revision            1
9categories          databases lang www
10maintainers         pixilla openmaintainer
11platforms           darwin
12license             Apache-2
13
14description         The DBacesslayer aka DBSlayer is a lightweight database abstraction layer \
15                    suitable for high-load websites where you need the scalable advantages of \
16                    connection pooling.
17long_description    ${description} Written in C for speed, DBSlayer talks to clients via JSON over \
18                    HTTP, meaning it's simple to monitor and can swiftly interoperate with any web \
19                    framework you choose.
20
21homepage            http://code.nytimes.com/projects/dbslayer/wiki
22master_sites        http://code.nytimes.com/downloads/
23
24patchfiles          patch-configure.ac.diff
25
26checksums           sha1    fbf1c5563a6ee45783e31f6b49612e64fc141186 \
27                    rmd160  439414996072ce36c7361d1188ebe115c70e0151
28
29worksrcdir          ${name}
30
31depends_lib-append  port:apr-util
32
33extract.suffix      .tgz
34
35post-extract {
36    foreach svn_dirs [glob -nocomplain -path ${worksrcpath}/ -type d .svn */.svn */*/.svn ] {
37        delete $svn_dirs
38    }
39}
40use_autoreconf      yes
41
42configure.args      --with-apr-1-config=${prefix}/bin/apr-1-config \
43                    --with-apu-1-config=${prefix}/bin/apu-1-config
44
45post-destroot {
46    xinstall -d ${destroot}${prefix}/share/${name}
47    copy ${worksrcpath}/htdocs \
48            ${destroot}${prefix}/share/${name}
49    copy ${worksrcpath}/test \
50            ${destroot}${prefix}/share/${name}
51}
52
53variant mysql51 \
54    conflicts mysql55 mysql56 mariadb percona \
55    description {build with mysql51 port} {
56
57    depends_lib-append      port:mysql51
58    configure.args-append   --with-mysql-config=${prefix}/lib/mysql51/bin/mysql_config
59}
60
61variant mysql55 \
62    conflicts mysql51 mysql56 mariadb percona \
63    description {build with mysql55 port} {
64
65    depends_lib-append      port:mysql55
66    configure.args-append   --with-mysql-config=${prefix}/lib/mysql55/bin/mysql_config
67}
68
69variant mysql56 \
70    conflicts mysql51 mysql55 mariadb percona \
71    description {build with mysql56 port} {
72
73    depends_lib-append      port:mysql56
74    configure.args-append   --with-mysql-config=${prefix}/lib/mysql56/bin/mysql_config
75}
76
77variant mariadb \
78    conflicts mysql51 mysql55 mysql56 percona \
79    description {build with mariadb port} {
80
81    depends_lib-append      port:mariadb
82    configure.args-append   --with-mysql-config=${prefix}/lib/mariadb/bin/mysql_config
83}
84
85variant percona \
86    conflicts mysql51 mysql55 mysql56 mariadb \
87    description {build with percona port} {
88
89    depends_lib-append      port:percona
90    configure.args-append   --with-mysql-config=${prefix}/lib/percona/bin/mysql_config
91}
92
93if {
94
95    ![variant_isset mysql51]
96    && ![variant_isset mysql55]
97    && ![variant_isset mysql56]
98    && ![variant_isset mariadb]
99    && ![variant_isset percona]
100} {
101    default_variants    +mysql56
102}
103pre-fetch {
104    if {
105
106        ![variant_isset mysql51]
107        && ![variant_isset mysql55]
108        && ![variant_isset mysql56]
109        && ![variant_isset mariadb]
110        && ![variant_isset percona]
111    } {
112
113        ui_error "${name} requires one of these variants: +mysql51, +mysql55, +mysql56, +mariadb or +percona"
114    }
115}
116
117livecheck.url       ${master_sites}
118livecheck.type      regex
119livecheck.regex     ">${name}-((?!\${extract.suffix}).*)${extract.suffix}<"
Note: See TracBrowser for help on using the repository browser.