# 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" # Problems with parallel builds (#34029), so I'm taking the safer route MAKEOPTS="${MAKEOPTS} -j1" # depend on version of slib that let implementations do the installation DEPEND=">=sys-libs/ncurses-5.1 >=sys-libs/readline-4.1 slib? (>=dev-scheme/slib-3.1.4)" # 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. # # So I'm slotting this as 12 beacuse of the library major version SLOT="12" MAJOR="1.6" src_unpack() { unpack ${A} cd ${S} if [ "${ARCH}" = "amd64" ]; then epatch ${FILESDIR}/guile-amd64.patch fi if [ "${ARCH}" = "ppc" ]; then replace-flags -O3 -O2 fi # fix for putenv on Darwin epatch ${FILESDIR}/guile-1.6.7-posix.patch # fixes sleep/usleep errors on Darwin epatch ${FILESDIR}/guile-1.6.7-scmsigs.patch } 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 econf \ --with-threads \ --with-modules \ --enable-deprecation=no || die # Please keep --enable-deprecation=no in future bumps. # Danny van Dyk ${D}/etc/env.d/50guile # install a symlink to slib; probably not worth it to test for slib use flag dosym ${ROOT}/usr/lib/slib/ ${ROOT}/usr/share/guile/slib } 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)" "/"