# $Id$ PNAME="elfutils" PVER="0.152" PBUILD="r2" PCATEGORIE="dev-libs" STATE="unstable" DESCRIPTION="Utils and libs to handle elf objects." HOMEPAGE="https://fedorahosted.org/elfutils/" DEPEND=">= sys-dev/binutils-2.21 >= sys-dev/gcc-4.6" SDEPEND=">= sys-apps/sed-4 >= sys-dev/gettext-0.18" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild SRC_URI=( https://fedorahosted.org/releases/${PNAME:0:1}/${PNAME:1:1}/${PNAME}/${PVER}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-portability.patch mirror://${PNAME}/${PNAME}-${PVER}-robustify.patch ) UP2DATE="updatecmd https://fedorahosted.org/releases/${PNAME:0:1}/${PNAME:1:1}/${PNAME}/ | lasttarball gz" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # redhat patches: mpatch ${PNAME}-${PVER}-portability.patch || die mpatch ${PNAME}-${PVER}-robustify.patch || die autoreconf --verbose --install --force || die # fix some noisiness (taken from gentoo ebuild) find . -name Makefile.in -print0 | xargs -0 sed -i -e 's:-W\(error\|extra\)::g' } src_compile() { cd ${SRCDIR} mconfigure \ --program-prefix="eu-" \ --enable-shared \ --enable-nls \ || die mmake || die }