# 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="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86" IUSE="slib deprecated discouraged" # Problems with parallel builds (#34029), so I'm taking the safer route # MAKEOPTS="${MAKEOPTS} -j1" DEPEND="slib? (dev-scheme/slib) >=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" src_unpack() { unpack ${A} } src_compile() { # Fix for bug 26484: This package fails to build when built with # -g3, at least on some architectures. (19 Aug 2003 agriffis) # filter-flags -g3 # use userland_Darwin && append-flags -Dmacosx #will fail if posix is disabled econf \ --without-threads \ $(use_enable deprecated) \ $(use_enable discouraged) \ --disable-shared \ --disable-static \ --enable-posix \ --disable-networking \ --disable-regex || die "configure failed" 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 } pkg_postinst() { if use slib; then einfo "Installing slib for guile" guile -c "(use-modules (ice-9 slib)) (require 'new-catalog)" fi } # from slib ebuild # guile -c "(use-modules (ice-9 slib)) (require 'new-catalog)" "/"