# $Id$ PNAME="libzip" PVER="0.11.2" PBUILD="r1" PCAT="dev-libs" DESCRIPTION="C library for reading, creating and modifying zip archives." HOMEPAGE="http://www.nih.at/libzip/" DEPEND=">= sys-libs/zlib-1.2" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild msetfeature "!check" SRC_URI=( http://www.nih.at/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-0.10-missing-headers.patch ) UP2DATE="updatecmd ${HOMEPAGE} | lasttarball xz" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix missing headers mpatch ${PNAME}-0.10-missing-headers.patch || die mautoreconf || die }