# $Header: /magellan-cvs/smage/boehm-gc/boehm-gc-7.0-r2.smage2,v 1.1 2008/04/03 18:43:37 niro Exp $ PNAME="boehm-gc" PVER="7.0" PBUILD="r2" PCATEGORIE="dev-libs" STATE="unstable" DESCRIPTION="A garbage collector for C and C++." HOMEPAGE="http://www.hpl.hp.com/personal/Hans_Boehm/gc/" DEPEND=">= virtual/glibc" SDEPEND=">= sys-apps/sed-4" SRCFILE="${PNAME/boehm-/}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME/boehm-/}-${PVER}" sminclude mtools SRC_URI=( http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # do not generate docs sed -i -e '/^SUBDIRS/s/doc//' Makefile.in || die } src_compile() { cd ${SRCDIR} mconfigure --enable-cplusplus --enable-threads=pthreads || die mmake || die } src_install() { cd ${SRCDIR} # needed directories minstalldir /usr/include/gc/private || die mmake DESTDIR=${BINDIR} install || die # missing headers minstallfile include/cord.h /usr/include/gc || die minstallfile include/ec.h /usr/include/gc || die minstallfile include/javaxfc.h /usr/include/gc || die minstallfile include/private/\*.h /usr/include/gc/private || die # html & docs minstallhtml doc/*.html || die minstalldocs README.QUICK doc/README* doc/barrett_diagram || die }