source: trunk/dports/devel/libmemcached/Portfile

Last change on this file was 129387, checked in by stromnov@…, 3 years ago

libmemcached: add livecheck

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 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 129387 2014-12-12 13:03:03Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           conflicts_build 1.0
6
7name                libmemcached
8if {[file exists ${prefix}/bin/MemParse]} {
9    conflicts-append xercesc3
10}
11version             1.0.10
12set branch          [join [lrange [split ${version} .] 0 1] .]
13revision            0
14categories          devel
15platforms           darwin
16maintainers         nomaintainer
17license             BSD
18
19description         libmemcached is a C and C++ client library to the memcached server
20
21long_description    libmemcached is a C and C++ client library for memcached. \
22                    It has been designed to be light on memory usage, thread safe, \
23                    and provide full access to server side methods.
24
25homepage            http://libmemcached.org/
26master_sites        http://launchpad.net/${name}/${branch}/${version}/+download/
27
28checksums           rmd160  483402a449762ce68633582696d32c1e2ef0aea5 \
29                    sha256  0bbb5e310b3d175dfbde99a463ba4474aa22b4ad88ffea2afe76c868d6e1290b
30
31patchfiles          patch-Makefile.in.diff
32
33depends_build       bin:pod2man:perl5 \
34                    port:cyrus-sasl2
35
36depends_lib         port:memcached
37
38# Although "./configure --help" says umem support is off by default, and although we
39# specify "--disable-umem", configure nevertheless looks for and finds umem if installed,
40# and then fails to build.
41conflicts_build     umem
42
43configure.args      --disable-silent-rules \
44                    --disable-umem \
45                    --disable-dtrace \
46                    --disable-hsieh_hash
47
48variant dtrace description {enable dtrace probes } {
49    configure.args-append  --enable-dtrace
50}
51
52variant hsieh description {include support for hsieh hashing } {
53    configure.args-append  --enable-hsieh_hash
54}
55
56platform darwin 8 {
57    patchfiles-append   no_memslap.diff
58    configure.compiler  macports-gcc-4.6
59    universal_variant   no
60}
61
62platform darwin 9 {
63    configure.compiler  macports-gcc-4.6
64    universal_variant   no
65}
66
67platform darwin {
68    if {${os.major} >= 13} {
69        post-patch {
70            reinplace "s:tr1/::" ${worksrcpath}/libmemcached-1.0/memcached.h
71        }
72    }
73}
74
75livecheck.type      regex
76livecheck.url       https://launchpad.net/libmemcached/+download
77livecheck.regex     {libmemcached-(\d+(?:\.\d+)*)\.[tz]}
Note: See TracBrowser for help on using the repository browser.