source: trunk/dports/www/serf1/Portfile @ 151786

Last change on this file since 151786 was 151786, checked in by blair@…, 3 years ago

serf1: use the homepage, master_sites and livecheck at apache.org; partially fixes #52073.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 151786 2016-08-22 00:52:23Z blair@macports.org $
2
3PortSystem 1.0
4
5name            serf1
6version         1.3.4
7revision        1
8categories      www
9maintainers     blair
10license         Apache-2
11description     C-based HTTP client library
12
13long_description \
14    The serf library is a C-based HTTP client library built upon the \
15    Apache Portable Runtime (APR) library.  It multiplexes \
16    connections, running the read/write communication asynchronously. \
17    Memory copies and transformations are kept to a minimum to provide \
18    high performance operation.
19
20homepage        https://serf.apache.org
21master_sites    https://archive.apache.org/dist/serf/
22distname        serf-${version}
23use_bzip2       yes
24checksums       sha1   eafc8317d7a9c77d4db9ce1e5c71a33822f57c3a \
25                sha256 db5dcf68be722156de67518231da17c451f6c5d16523ff03e4e37f28d06ee0cb
26
27patchfiles      patch-SConstruct.diff
28
29platforms       darwin
30
31depends_build   port:scons
32depends_lib     port:apr port:apr-util path:lib/libssl.dylib:openssl port:zlib
33
34use_configure   no
35
36variant universal {}
37
38build.cmd       ${prefix}/bin/scons
39
40build.args      CC=${configure.cc} \
41                CPPFLAGS="${configure.cppflags}" \
42                CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
43                LINKFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
44
45platform darwin {
46    # Workaround scons buggy lack of MACOSX_DEPLOYMENT_TARGET propagation:
47    build.args-append   CC="MACOSX_DEPLOYMENT_TARGET=${macosx_deployment_target} ${configure.cc}"
48}
49
50build.target    APR=${prefix} \
51                APU=${prefix} \
52                OPENSSL=${prefix} \
53                PREFIX=${prefix}
54
55destroot.cmd        ${build.cmd}
56destroot.args       --install-sandbox=${destroot}
57destroot.destdir   
58
59post-destroot {
60    set sharedir ${destroot}${prefix}/share
61    set docdir ${sharedir}/doc/${name}
62
63    xinstall -m 755 -d ${docdir}
64
65    foreach f {CHANGES LICENSE NOTICE README} {
66        file copy ${worksrcpath}/${f} ${docdir}
67    }
68}
69
70livecheck.url   [lindex ${master_sites} 0]
71livecheck.type  regex
72livecheck.regex serf-(\\d+(?:\\.\\d+)*)
Note: See TracBrowser for help on using the repository browser.