# $Id: Portfile 80198 2011-07-06 18:39:33Z mww@macports.org $

PortSystem 1.0

name			uthash
version			1.9.4
categories		devel
platforms		darwin
maintainers		mww
license			BSD
description		easy-to-use hash implementation for C programmers.
long_description	${description}

homepage		http://uthash.sourceforge.net/
master_sites		sourceforge
checksums           md5     f8c2d5c560fe0f8d7b26148ea442ae93 \
                    sha1    8b257ffc5a2607f04d0b93457afb7ef1e573a13b \
                    rmd160  06c3ad4855eba2635f8cda2763c05c52921e6a62
use_bzip2		yes

use_configure		no

build			{}

destroot {
	xinstall -d ${destroot}${prefix}/include/uthash/
	xinstall -m 0444 -W ${worksrcpath}/src uthash.h utlist.h utarray.h utstring.h \
		${destroot}${prefix}/include/uthash/
	xinstall -d ${destroot}${prefix}/share/doc/
	copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
	delete ${destroot}${prefix}/share/doc/${name}/Makefile
}

livecheck.version	uthash-${version}

