source: trunk/dports/www/neon/Portfile @ 87969

Last change on this file since 87969 was 80645, checked in by dluke@…, 8 years ago

neon: add license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 80645 2011-07-16 03:09:48Z dluke@macports.org $
2
3PortSystem      1.0
4
5name            neon
6version         0.29.6
7categories      www
8maintainers     geeklair.net:dluke
9description     An HTTP and WebDAV client library with a C interface
10license         LGPL-2+
11
12platforms       darwin freebsd
13
14long_description \
15        neon is an HTTP and WebDAV client library with a C language API. \
16        It provides a high-level interface to HTTP and WebDAV methods and a \
17        low-level interface to HTTP request handling, easily allowing the \
18        implementation of new methods.
19
20homepage        http://www.webdav.org/neon/
21master_sites    ${homepage}
22
23depends_lib     port:expat \
24                port:gettext \
25                port:libiconv \
26                port:openssl \
27                port:zlib
28
29checksums       md5     591e0c82e6979e7e615211b386b8f6bc \
30                sha1    ae1109923303f67ed3421157927bc4bc29c58961 \
31                rmd160  f2cd96ed659675812a97b99d1b54e3d8eb66e4ed
32
33use_parallel_build      yes
34
35configure.args  --with-ssl \
36                --enable-shared \
37                --with-expat \
38                --without-libproxy \
39                --mandir=${prefix}/share/man
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.