# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem 1.0

name			libutf8proc
version			1.1.3
categories		textproc
platforms		darwin
maintainers		mww
description		library for processing UTF-8 encoded Unicode strings
long_description	${description}

homepage		http://www.flexiguided.de/publications.utf8proc.en.html
master_sites	http://www.flexiguided.de/pub/
distname		utf8proc-v${version}
checksums           md5     6c7aef2cecfc7c38d5576f34a0ecb5a6 \
                    sha1    52b256f8834dc868d35eef6211ea5a7d6438b902 \
                    rmd160  4742b96c2920908a7e6f8c59ae7237da697a72b5

worksrcdir		utf8proc

use_configure	no

build.args		libdir="${prefix}/lib"
build.target	libutf8proc.a libutf8proc.dylib
build.args-append	CC=${configure.cc}

destroot {
	xinstall -m 755 -W ${worksrcpath} \
		libutf8proc.dylib libutf8proc.a \
		${destroot}${prefix}/lib/
	xinstall -m 644 ${worksrcpath}/utf8proc.h \
		${destroot}${prefix}/include
}

livecheck.type	regex
livecheck.url	${homepage}
livecheck.regex	utf8proc-v(\[0-9\.\]+).tar.gz

