# $Id$ PNAME="redland" PVER="1.0.11" PBUILD="r1" PCATEGORIE="dev-libs" DESCRIPTION="Redland is a set of free software libraries that provide support for the Resource Description Framework (RDF)." HOMEPAGE="http://librdf.org/" DEPEND=">= dev-libs/libxml2-2.7 >= dev-libs/openssl-1.0.0 >= dev-db/db-5.1 >= media-libs/raptor-2 >= dev-libs/rasqal-0.9.20" SDEPEND=">= sys-dev/autoconf-4 >= sys-dev/automake-3" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild SRC_URI=( http://download.librdf.org/source/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-1.0.10-librdf_storage_register_factory.patch ) #UP2DATE="updatecmd http://download.librdf.org/source/ | grep ${PNAME}-[0-9] | lasttarball gz" UP2DATE="updatecmd_sourceforge librdf ${PNAME}" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # upstream, fixes "undefined symbol: librdf_storage_register_factory" mpatch ${PNAME}-1.0.10-librdf_storage_register_factory.patch || die # we are using system libs so delete them rm -rf {raptor,rasqal} || die } src_compile() { cd ${SRCDIR} # disabled virtuoso support, or soprano fails with: # -- Found Redland storage: /usr/lib64/redland/librdf_storage_mysql.so;/usr/lib64/redland/librdf_storage_sqlite.so;/usr/lib64/redland/librdf_storage_virtuoso.so # -- /usr/lib64/redland/librdf_storage_virtuoso.so: undefined symbol: librdf_new_uri mconfigure \ --with-raptor=system \ --with-rasqal=system \ --without-threads \ --with-openssl-digests \ --with-bdb \ --with-bdb-lib=/usr/$(mlibdir) \ --without-virtuoso \ || die mmake || die }