source: trunk/dports/sysutils/gearmand/Portfile

Last change on this file was 144196, checked in by ryandesign@…, 21 months ago

gearmand: increase revision to rebuild after r144165 (#37636)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.2 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 144196 2016-01-04 16:39:49Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6# configure: error: unable to determine endian
7PortGroup           muniversal 1.0
8
9name                gearmand
10version             1.1.12
11revision            1
12set branch          1.2
13categories          sysutils net devel
14maintainers         nomaintainer
15platforms           darwin
16license             BSD
17
18description         Framework for distributed computation
19long_description    \
20        Gearman provides a generic application framework  to  farm  out  work \
21        to other machines or processes that are better suited to do the work. \
22        It allows you to do work in parallel,  to  load  balance  processing, \
23        and to call functions between languages.  It can be used in a variety \
24        of applications, from high-availability web sites to the transport of \
25        database replication events. In other words, it is the nervous system \
26        for how distributed processing communicates.
27
28homepage            http://gearman.org/
29master_sites        https://launchpad.net/gearmand/${branch}/${version}/+download/
30
31checksums           rmd160  a5be8f7d7f4ec3897f70b55c3f6acebe47af66fa \
32                    sha256  973d7a3523141a84c7b757c6f243febbc89a3631e919b532c056c814d8738acb
33
34depends_lib         port:boost \
35                    port:libevent
36
37patchfiles-append   patch-libgearman-byteorder.cc.diff
38patchfiles-append   patch-libgearman-client.cc.diff
39
40if {${configure.cxx_stdlib} eq "libstdc++"} {
41    patchfiles-append   patch-libgearman-1.0-gearman.h.diff
42}
43
44configure.args      --disable-silent-rules \
45                    --disable-libdrizzle \
46                    --disable-libpq \
47                    --disable-libmemcached \
48                    --disable-libtokyocabinet \
49                    --enable-jobserver=${build.jobs} \
50                    --without-mysql \
51                    --without-sqlite3
52
53# gearmand handles parallel building using the --enable-jobserver arg above.
54use_parallel_build  no
55
56merger_arch_compiler yes
57if {![variant_isset universal]} {
58    configure.cc-append " ${configure.cc_archflags}"
59    configure.cxx-append " ${configure.cxx_archflags}"
60}
61
62post-destroot {
63    set docdir ${prefix}/share/doc/${subport}
64    xinstall -d ${destroot}${docdir}
65    xinstall -m 644 -W ${worksrcpath} \
66        AUTHORS \
67        COPYING \
68        ChangeLog \
69        HACKING \
70        README \
71        THANKS \
72        ${destroot}${docdir}
73}
74
75platform darwin {
76    if {${os.major} >= 14} {
77        configure.cxxflags-append -DHAVE_HTONLL
78    }
79}
80
81variant dtrace description {Enable DTrace probes} {
82    configure.args-append   --enable-dtrace
83}
84
85variant sqlite description {Build with sqlite3 support} {
86    depends_lib-append      port:sqlite3
87    configure.args-delete   --without-sqlite3
88}
89default_variants +sqlite
90
91variant drizzle description {Build with libdrizzle support} {
92    depends_lib-append      port:libdrizzle
93    configure.args-delete   --disable-libdrizzle
94    configure.args-append   --enable-libdrizzle
95}
96
97variant postgres description {Build with postgresql support} {
98    depends_lib-append      port:libpqxx
99    configure.args-delete   --disable-libpq
100    configure.args-append   --enable-libpq
101}
102
103variant memcached description {Build with memcached support} {
104    depends_lib-append      port:libmemcached
105    configure.args-delete   --disable-libmemcached
106    configure.args-append   --enable-libmemcached
107}
108
109variant tokyocabinet description {Build with tokyocabinet support} {
110    depends_lib-append      port:tokyocabinet
111    configure.args-delete   --disable-libtokyocabinet
112    configure.args-append   --enable-libtokyocabinet
113}
114
115startupitem.create  yes
116startupitem.executable  ${prefix}/sbin/gearmand \
117                        --verbose=WARNING \
118                        --port=4730 \
119                        -u root \
120                        --pid-file=${prefix}/var/run/gearmand.pid \
121                        --log-file=${prefix}/var/log/gearmand.log
122
123livecheck.type      regexm
124livecheck.url       https://launchpad.net/${name}/+download
125livecheck.regex     (\[0-9.\]+) release</a>\\s+from the\\s+<a href="/gearmand/${branch}">${branch}</a> series
Note: See TracBrowser for help on using the repository browser.