Skip to content

Instantly share code, notes, and snippets.

@blair
Created July 13, 2013 06:32
Show Gist options
  • Save blair/5989662 to your computer and use it in GitHub Desktop.
Save blair/5989662 to your computer and use it in GitHub Desktop.
Portfile for serf1
# $Id: Portfile 106686 2013-06-05 02:44:36Z blair@macports.org $
PortSystem 1.0
name serf1
version 1.2.1
revision 1
categories www
maintainers blair
license Apache-2
description C-based HTTP client library
long_description \
The serf library is a C-based HTTP client library built upon the \
Apache Portable Runtime (APR) library. It multiplexes \
connections, running the read/write communication asynchronously. \
Memory copies and transformations are kept to a minimum to provide \
high performance operation.
homepage http://code.google.com/p/serf/
master_sites http://serf.googlecode.com/files/
dist_subdir serf
#distname serf-${version}
#use_bzip2 yes
#checksums sha1 f65fbbd72926c8e7cf0dbd4ada03b0d226f461fd \
# sha256 6988d394b62c3494635b6f0760bc3079f9a0cd380baf0f6b075af1eb9fa5e700
fetch.type svn
svn.url http://serf.googlecode.com/svn/branches/1.3.x
svn.revision 2031
worksrcdir 1.3.x
platforms darwin
depends_build port:scons
depends_lib port:apr port:apr-util port:openssl
use_configure no
build.env ARCHFLAGS="[get_canonical_archflags]" \
CPPFLAGS="${configure.cppflags}" \
LDFLAGS="${configure.ldflags}"
build.cmd ${prefix}/bin/scons
build.target APR=${prefix} \
APU=${prefix} \
OPENSSL=${prefix} \
PREFIX=${prefix}
# TODO: this would be nice to have
build.args
#build.args --cc=${configure.cc} \
# --cxx=${configure.cxx}
eval destroot.env [option build.env]
destroot.args ${build.args}
destroot.destdir --prefix=${destroot}${prefix}
post-destroot {
set sharedir ${destroot}${prefix}/share
set docdir ${sharedir}/doc/${name}
xinstall -m 755 -d ${docdir}
foreach f {CHANGES LICENSE NOTICE README} {
file copy ${worksrcpath}/${f} ${docdir}
}
}
livecheck.url http://code.google.com/p/serf/downloads/list
livecheck.type regex
livecheck.regex serf-(\\d+(?:\\.\\d+)*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment