# $Id$ PNAME="ldb" PVER="1.4.3" PBUILD="r1" PCAT="dev-db" DESCRIPTION="A schema-less, ldap like, API and database." HOMEPAGE="http://ldb.samba.org/" DEPEND=">= dev-libs/popt-1.16 >= dev-libs/talloc-2.1 >= dev-libs/tevent-0.9 >= dev-db/tdb-1.3 >= dev-db/lmdb-0.9" SDEPEND=">= dev-lang/python-2.7 >= dev-util/cmocka-1.1 >= app-text/docbook-xsl-stylesheets-1.76" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude multilib mbuild SRC_URI=( http://www.samba.org/ftp/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/0002-ldb-Run-at-least-some-tests-on-32-bit-machines.patch ) UP2DATE="updatecmd http://www.samba.org/ftp/${PNAME}/ | grep '/${PNAME}-' | highesttarball gz" src_prepare() { munpack ${SRCFILE} || die mpatch 0002-ldb-Run-at-least-some-tests-on-32-bit-machines.patch || die } src_compile() { local myconf if [[ ${ARCH} != x86_64 ]] then myconf+=" --without-ldb-lmdb" fi if [[ ${MULTILIB} = true ]] then myconf='$(MULTILIB_VERBOSE=false only-m32 echo "--without-ldb-lmdb")' fi mconfigure \ --disable-rpath \ --disable-rpath-install \ --bundled-libraries=NONE \ --builtin-libraries=replace \ --with-modulesdir=/usr/'$(mlibdir)'/ldb/modules \ --with-privatelibdir=/usr/'$(mlibdir)'/ldb \ ${myconf} \ || die mmake || die }