# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit flag-o-matic eutils libtool DESCRIPTION="Scheme interpreter" HOMEPAGE="http://www.gnu.org/software/guile/" SRC_URI="mirror://gnu/guile/${P}.tar.gz" LICENSE="GPL-2" KEYWORDS="~amd64" DEPEND=">=dev-libs/gmp-4.1 >=sys-devel/libtool-1.5.6" #>=sys-libs/ncurses-5.1 # >=sys-libs/readline-4.1" # NOTE: in README-PACKAGERS, guile recommends different versions be installed # in parallel. They're talking about LIBRARY MAJOR versions and not # the actual guile version that was used in the past. # #didn't find that file -- Marijn # # So I'm slotting this as 17 beacuse of the library major version SLOT="17" MAJOR="1.8" IUSE="networking regex discouraged deprecated elisp nls threads" src_compile() { #will fail for me if posix is disabled -- hkBst econf \ --disable-static \ --enable-posix \ $(use_enable networking) \ $(use_enable regex) \ $(use_enable discouraged) \ $(use_enable deprecated) \ $(use_enable elisp) \ $(use_enable nls) \ --enable-rpath \ $(use_with threads) emake || die "make failed" } src_install() { einstall || die "install failed" dodoc AUTHORS ChangeLog GUILE-VERSION HACKING NEWS README SNAPSHOTS THANKS # texmacs needs this, closing bug #23493 dodir /etc/env.d # We don't slot the env.d entry because /usr/bin/guile-config is # there anyway, and will only match the last guile installed. # so the GUILE_LOAD_PATH will match the data available from guile-config. echo "GUILE_LOAD_PATH=\"/usr/share/guile/${MAJOR}\"" > ${D}/etc/env.d/50guile }