source: trunk/dports/devel/libzookeeper/Portfile

Last change on this file was 127173, checked in by hum@…, 3 years ago

libzookeeper: add patch-yosemite.diff to fix build on 10.10.

  • 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; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 127173 2014-10-22 10:31:00Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                libzookeeper
7version             3.4.6
8categories          devel
9maintainers         hum openmaintainer
10
11description         C bindings for ZooKeeper, the high-performance coordination service
12
13long_description    ZooKeeper is a distributed, open-source coordination service for \
14                    distributed applications. It exposes a simple set of primitives \
15                    that distributed applications can build upon to implement higher \
16                    level services for synchronization, configuration maintenance, \
17                    and groups and naming. It is designed to be easy to program to, \
18                    and uses a data model styled after the familiar directory tree \
19                    structure of file systems. This port contains the C bindings for \
20                    interacting with it.
21
22homepage            http://zookeeper.apache.org/
23platforms           darwin
24license             Apache-2
25
26distname            zookeeper-${version}
27dist_subdir         zookeeper
28master_sites        apache:zookeeper/stable
29checksums           rmd160  d9fadf07a40a85b8fd5a7e04e7200c74fd7393ce \
30                    sha256  01b3938547cd620dc4c93efe07c0360411f4a66962a70500b163b59014046994
31
32worksrcdir          ${distname}/src/c
33
34depends_build       port:apache-ant
35
36platform darwin {
37    # ZooKeeperZOOKEEPER-2049: Yosemite build failure: htonll conflict
38    # https://issues.apache.org/jira/browse/ZOOKEEPER-2049, modified for 3.4.6
39    if {${os.major} >= 14} {
40        patchfiles-append   patch-yosemite.diff
41        patch.pre_args      -p2
42    }
43}
44
45pre-configure {
46    system -W "${worksrcpath}/../.." "ant compile_jute"
47}
48
49variant universal   {}
50
51build.args          CFLAGS="${configure.cflags} [get_canonical_archflags]"
52
53post-destroot {
54    file mkdir ${destroot}${prefix}/share/doc/${name}
55    xinstall -m 644 -W ${worksrcpath} \
56        ChangeLog LICENSE README \
57        ${destroot}${prefix}/share/doc/${name}
58}
59
60livecheck.type      regex
61livecheck.url       http://www.apache.org/dist/zookeeper/stable/
62livecheck.regex     zookeeper-(\[0-9.\]+)\\.tar
Note: See TracBrowser for help on using the repository browser.