summaryrefslogtreecommitdiff
blob: 108c0a1de893f8d146f5ad601da0a6141fa1e616 (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/librep/librep-0.15.2-r1.ebuild,v 1.7 2002/12/09 04:21:04 manson Exp $

IUSE="readline"

S=${WORKDIR}/${P}
DESCRIPTION="Shared library implementing a Lisp dialect"
SRC_URI="http://download.sourceforge.net/librep/${P}.tar.gz"
HOMEPAGE="http://librep.sourceforge.net/"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 sparc "

DEPEND=">=sys-libs/gdbm-1.8.0
	>=dev-libs/gmp-3.1.1
	readline? ( >=sys-libs/readline-4.1
		>=sys-libs/ncurses-5.2 )
	sys-apps/texinfo"

src_unpack() {
	unpack ${A}

	cd ${S}
	#patch buggy makefile for newer libtool
	patch -p1 <${FILESDIR}/librep-${PV}-exec.patch || die

	#update libtool to fix "relink" bug
	libtoolize --copy --force
	aclocal
}

src_compile() {
	local myconf

	use readline \
		&& myconf="--with-readline" \
		|| myconf="--without-readline"

	econf --libexecdir=/usr/lib  || die
	emake || die
}

src_install() {
	make DESTDIR=${D} install || die

	insinto /usr/include
	doins src/rep_config.h
	dodoc AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO DOC
	docinto doc
	dodoc doc/*
}