1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools eutils
10 DESCRIPTION="The Boehm-Demers-Weiser conservative garbage collector"
11 HOMEPAGE="http://www.hboehm.info/gc/"
12 SRC_URI="http://www.hboehm.info/gc/gc_source/${MY_P}.tar.gz"
16 KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
17 IUSE="cxx static-libs threads"
19 DEPEND=">=dev-libs/libatomic_ops-7.2
22 S="${WORKDIR}/${MY_P/d}"
25 rm -r libatomic_ops || die
27 epatch "${FILESDIR}"/${P}-configure.patch
28 epatch "${FILESDIR}"/${P}-automake-1.13.patch
35 $(use_enable cxx cplusplus)
36 $(use_enable static-libs static)
37 $(use threads || echo --disable-threads)
45 rm -rf "${ED}"/usr/share/gc || die
48 insinto /usr/include/gc
49 doins include/{cord.h,ec.h,javaxfc.h}
50 insinto /usr/include/gc/private
51 doins include/private/*.h
53 dodoc README.QUICK doc/README{.environment,.linux,.macros} doc/barrett_diagram
55 newman doc/gc.man GC_malloc.1