1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit multilib-minimal libtool
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 ~arm64 ~hppa ~ia64 ~mips ~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"
20 >=dev-libs/libatomic_ops-7.4[${MULTILIB_USEDEP}]
23 S="${WORKDIR}/${MY_P}"
30 multilib_src_configure() {
33 $(use_enable cxx cplusplus)
34 $(use_enable static-libs static)
35 $(use threads || echo --disable-threads)
38 ECONF_SOURCE=${S} econf "${config[@]}"
41 multilib_src_install_all() {
42 local HTML_DOCS=( doc/*.html )
44 dodoc doc/README{.environment,.linux,.macros}
46 rm -r "${ED%/}"/usr/share/gc || die
48 # package provides .pc files
49 find "${D}" -name '*.la' -delete || die
51 newman doc/gc.man GC_malloc.1