source: trunk/dports/databases/dbslayer/Portfile @ 79080

Last change on this file since 79080 was 79080, checked in by pixilla@…, 6 years ago

databases/dbslayer: New port dbslayer

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 79080 2011-06-01 16:31:44Z pixilla@macports.org $
3
4PortSystem          1.0
5
6set version_mysql   5
7name                dbslayer
8version             beta-12
9categories          databases lang www
10maintainers         pixilla
11platforms           darwin
12license             Apache-2.0
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                    path:${prefix}/lib/mysql${version_mysql}/bin/mysql_config:mysql${version_mysql}
33
34extract.suffix      .tgz
35
36post-extract {
37    foreach svn_dirs [glob -nocomplain -path ${worksrcpath}/ -type d .svn */.svn */*/.svn ] {
38        delete $svn_dirs
39    }
40}
41use_autoreconf      yes
42
43# configure.optflags-append \
44#                     -undefined dynamic_lookup
45#                     -I/opt/local/include/mysql5/mysql
46
47configure.args      --with-mysql-config=${prefix}/bin/mysql_config${version_mysql} \
48                    --with-apr-1-config=${prefix}/bin/apr-1-config \
49                    --with-apu-1-config=${prefix}/bin/apu-1-config
50
51post-destroot {
52    xinstall -d ${destroot}${prefix}/share/${name}
53    copy ${worksrcpath}/htdocs \
54            ${destroot}${prefix}/share/${name}
55    copy ${worksrcpath}/test \
56            ${destroot}${prefix}/share/${name}
57}
58
59
60livecheck.url       ${master_sites}
61livecheck.type      regex
62livecheck.regex     ">${name}-((?!\${extract.suffix}).*)${extract.suffix}<"
Note: See TracBrowser for help on using the repository browser.