blob: 01080817e4c3af9152beb52256bc7f4a17976392 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/guile/guile-1.6.7.ebuild,v 1.13 2005/07/12 03:56:37 geoman Exp $
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 ~ppc-macos s390 sparc x86"
IUSE=""
# Problems with parallel builds (#34029), so I'm taking the safer route
MAKEOPTS="${MAKEOPTS} -j1"
DEPEND=">=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.
#
# 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
if use ppc-macos ; then
elibtoolize
epatch ${FILESDIR}/guile-macos-posix.patch
epatch ${FILESDIR}/guile-macos-relink.patch
fi
# Fix for gcc-4.0
epatch ${FILESDIR}/${P}-gcc4.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 ppc-macos && append-flags -no-cpp-precomp -Dmacosx
econf \
--with-threads \
--with-modules \
--enable-deprecation=no || die
# Please keep --enable-deprecation=no in future bumps.
# Danny van Dyk <kugelfang@gentoo.org 2004/09/19
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
}
|