1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
9 DESCRIPTION="The Boehm-Demers-Weiser conservative garbage collector"
10 HOMEPAGE="http://www.hboehm.info/gc/"
11 SRC_URI="http://www.hboehm.info/gc/gc_source/${MY_P}.tar.gz"
15 KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
21 sed -i -e '/^SUBDIRS/s/doc//' Makefile.in || die
22 epatch "${FILESDIR}"/${PN}-6.5-gentoo.patch
23 epatch "${FILESDIR}"/gc6.6-builtin-backtrace-uclibc.patch
28 $(use_enable cxx cplusplus) \
29 $(use threads || echo --disable-threads)
34 make DESTDIR="${D}" install || die
36 rm -rf "${D}"/usr/share/gc || die
39 insinto /usr/include/gc
40 doins include/{cord.h,ec.h,javaxfc.h}
41 insinto /usr/include/gc/private
42 doins include/private/*.h
44 dodoc README.QUICK doc/README* doc/barrett_diagram
46 newman doc/gc.man GC_malloc.1