source: trunk/dports/www/neon/Portfile

Last change on this file was 146259, checked in by devans@…, 17 months ago

neon: update to version 0.30.1, rebuild with openssl 1.0.2g, symbol not found _SSLv2_server_method, referenced from /opt/local/lib/libneon.27.dylib.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 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 146259 2016-03-02 23:07:46Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            neon
7version         0.30.1
8categories      www
9maintainers     nomaintainer
10description     An HTTP and WebDAV client library with a C interface
11license         LGPL-2+
12
13platforms       darwin freebsd
14
15long_description \
16                neon is an HTTP and WebDAV client library with a C language API. \
17                It provides a high-level interface to HTTP and WebDAV methods and a \
18                low-level interface to HTTP request handling, easily allowing the \
19                implementation of new methods.
20
21homepage        http://www.webdav.org/neon/
22master_sites    ${homepage}
23
24depends_lib     port:expat \
25                port:gettext \
26                port:libiconv \
27                port:kerberos5 \
28                port:libcomerr \
29                port:libproxy \
30                path:lib/libssl.dylib:openssl \
31                port:zlib
32
33checksums       rmd160  db4645f8204870e4e11c4a3ee9c50412bbf00dae \
34                sha256  00c626c0dc18d094ab374dbd9a354915bfe4776433289386ed489c2ec0845cdd
35
36configure.args  --with-ssl \
37                --enable-shared \
38                --with-expat \
39                --with-libproxy
40
41pre-test {
42    set x {}
43
44    fs-traverse dir ${worksrcpath} {
45        if {[file tail ${dir}] == ".libs" && [file isdirectory ${dir}]} {
46            lappend x ${dir}
47            continue
48        }
49    }
50
51    test.env-append DYLD_LIBRARY_PATH=[join ${x} ":"]
52}
53
54post-configure {
55    if {[variant_isset universal]} {
56        system "cd ${worksrcpath} && ed - config.h < ${filespath}/config.h.ed && touch stamp-h1"
57    }
58}
59
60post-destroot {
61    if {[variant_isset universal]} {
62        if {${configure.universal_cppflags} != ""} {
63            reinplace "s|${configure.universal_cppflags}||g" \
64                ${destroot}${prefix}/bin/neon-config \
65                ${destroot}${prefix}/lib/pkgconfig/neon.pc
66        }
67        reinplace "s|${configure.universal_ldflags}||g" \
68            ${destroot}${prefix}/bin/neon-config \
69            ${destroot}${prefix}/lib/pkgconfig/neon.pc
70    }
71}
72
73test.run        yes
74test.target     check
75
76livecheck.type  regex
77livecheck.url   ${homepage}
78livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
Note: See TracBrowser for help on using the repository browser.