# $Header: /magellan-cvs/smage/elfutils/elfutils-0.131-r2.smage2,v 1.1 2008/04/20 23:59:08 niro Exp $ PNAME="elfutils" PVER="0.137" PBUILD="r1" PCATEGORIE="dev-libs" STATE="unstable" DESCRIPTION="Utils and libs to handle elf objects." HOMEPAGE="https://fedorahosted.org/elfutils/" DEPEND=">= sys-dev/binutils-2.19 >= sys-dev/gcc-4.3" SDEPEND=">= sys-apps/sed-4 >= sys-dev/gettext-0.17" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild SRC_URI=( https://fedorahosted.org/releases/${PNAME:0:1}/${PNAME:1:1}/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-portability.patch mirror://${PNAME}/${PNAME}-${PVER}-robustify.patch mirror://${PNAME}/${PNAME}-${PVER}-fixes.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 # -alignment fixes, segment table botch fix # -fix libdwfl regression mpatch ${PNAME}-${PVER}-fixes.patch || die # fixes prelink compile issues: # configure: error: libelf does not properly convert Elf64_Sxword quantities. sed -i 's:\:__off64_t:g' libelf/libelf.h || 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 }