# $Id$ PNAME="libgadu" PVER="1.12.0" PBUILD="r2" PCAT="net-libs" DESCRIPTION="A Gadu-gadu protocol compatible communications library." HOMEPAGE="http://toxygen.net/libgadu/" DEPEND=">= app-crypt/gnutls-3.3" SDEPEND=">= virtual/sed" if mqueryfeature "check" then SDEPEND+=" >= dev-libs/expat-2.1 >= net-misc/curl-7 >= dev-libs/libxml2-2.9" fi SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild SRC_URI=( http://github.com/wojtekka/${PNAME}/releases/download/${PVER}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-tests.patch ) # exclude rc versions UP2EXCLUDE="-rc" UP2DATE="updatecmd ${HOMEPAGE} | highesttarball gz" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix broken test mpatch ${PNAME}-${PVER}-tests.patch || die } src_compile() { cd ${SRCDIR} mconfigure --enable-shared --with-pthread --with-gnutls --without-openssl || die mmake || die }