1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="GNU Ubiquitous Intelligent Language for Extensions"
9 HOMEPAGE="https://www.gnu.org/software/guile/"
10 SRC_URI="mirror://gnu/guile/${P}.tar.gz"
11 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
13 IUSE="debug debug-malloc +deprecated networking nls +regex static-libs +threads"
15 # emacs useflag removal not working
18 >=dev-libs/boehm-gc-7.0[threads?]
32 DOCS=( GUILE-VERSION HACKING README )
36 filter-flags -ftree-vectorize
38 # will fail for me if posix is disabled or without modules -- hkBst
40 --disable-error-on-warning \
44 $(use_enable debug guile-debug) \
45 $(use_enable debug-malloc) \
46 $(use_enable deprecated) \
47 $(use_enable networking) \
57 # https://bugzilla.novell.com/show_bug.cgi?id=874028#c0
58 dodir /usr/share/gdb/auto-load/$(get_libdir)
59 mv "${D}"/usr/$(get_libdir)/libguile-*-gdb.scm "${D}"/usr/share/gdb/auto-load/$(get_libdir) || die
61 # texmacs needs this, closing bug #23493
63 echo "GUILE_LOAD_PATH=\"${EPREFIX}/usr/share/guile/${MAJOR}\"" > "${ED}"/etc/env.d/50guile || die
65 # necessary for registering slib, see bug 206896
66 keepdir /usr/share/guile/site
68 # Dark magic necessary for some deps
69 dosym /usr/$(get_libdir)/libguile-2.0.so /usr/$(get_libdir)/libguile.so
73 [[ "${EROOT}" == "/" ]] && pkg_config
77 if has_version '>dev-scheme/slib-3.2.4'; then
78 einfo "Registering slib with guile"
79 install_slib_for_guile