# -*- 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
# $Id: Portfile 66781 2010-04-22 21:39:57Z ryandesign@macports.org $

PortSystem          1.0

name                yajl
version             1.0.9
categories          devel
maintainers         gmail.com:benjaminlyu openmaintainer
description         Yet Another JSON Library.
long_description    YAJL is a small event-driven (SAX-style) JSON parser \
                    written in ANSI C, and a small validating JSON generator.
license             BSD
homepage            http://lloyd.github.com/yajl/
platforms           darwin
fetch.type          git
git.url             git://github.com/lloyd/yajl.git
git.branch          refs/tags/${version}

depends_build       port:cmake

use_parallel_build  no

post-destroot {
    system "install_name_tool -id ${prefix}/lib/libyajl.1.dylib ${destroot}${prefix}/lib/libyajl.1.dylib"
}

livecheck.type      regex
livecheck.url       http://github.com/lloyd/yajl
livecheck.regex     "\"/lloyd/yajl/tree/(.*)\">\\1"
