summaryrefslogtreecommitdiff
blob: 9712e4c2f24ce3686bb1bdaefb47281b2a0913d6 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/guile/guile-1.4.1.ebuild,v 1.8 2003/02/13 11:55:57 vapier Exp $

inherit flag-o-matic || die "I lost my inheritance."

S=${WORKDIR}/${P}
DESCRIPTION="Guile is an interpreter for Scheme"
SRC_URI="mirror://gnu/guile/${P}.tar.gz"
HOMEPAGE="http://www.gnu.org/software/guile/"

SLOT="1.4.1"
LICENSE="GPL-2"
KEYWORDS="x86 alpha ~ppc"

DEPEND=">=sys-libs/ncurses-5.1
	>=sys-libs/readline-4.1"

if [ "${ARCH}" == "ppc" ]
then
	# guile-config breaks with -O3
	replace-flags -O3 -O2
fi

src_unpack() {
	unpack ${A}
	cd ${S}
	cp  ${FILESDIR}/net_db.c libguile/
}

src_compile() {

	econf \
		--with-threads \
		--with-modules || die "Configuration failed"

	make || die "Compilation failed"
}

src_install() {
	einstall || die "Installation failed"

	dodoc ANON-CVS AUTHORS COPYING ChangeLog HACKING NEWS README
	dodoc SNAPSHOTS THANKS
}