-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathlibrep.ebuild.in
56 lines (42 loc) · 1.42 KB
/
librep.ebuild.in
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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# This is *not* an official ebuild of any distributions.
# After the configure script is run, required package versions are
# filled in. But other than that, there's no guarantee this is a
# correct ebuild.
inherit eutils libtool toolchain-funcs multilib autotools
DESCRIPTION="Shared library implementing a Lisp dialect"
HOMEPAGE="http://librep.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 ia64 ppc sparc x86 ppc64"
IUSE="readline gmp libffi emacs"
RDEPEND=">=sys-libs/gdbm-1.8.3
readline? ( sys-libs/readline )
gmp? ( dev-libs/gmp )
libffi? ( virtual/libffi )"
DEPEND="${RDEPEND}
sys-apps/texinfo"
src_compile() {
local myconf="$(use_with readline)"
use ppc && myconf="${myconf} --with-stack-direction=1"
# It seems that stack-direction=-1 for gcc-3.x and 1 for gcc-4.x on ia64
if use ia64 && [[ $(gcc-major-version) -ge 4 ]]; then
myconf="${myconf} --with-stack-direction=1"
fi
econf \
--prefix=/usr \
$(use_with gmp) \
$(use_with libffi ffi) \
$(use_with readline) \
${myconf} || die "configure failed"
emake || die "make failed"
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
dodoc AUTHORS BUGS ChangeLog COPYING HACKING INSTALL MAINTAINERS README THANKS TODO TREE
docinto doc
dodoc doc/*
}