blob: 9c3d8a02aeb1aabcb6590c9a0ab4acaaf30c6f9a (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/swi-prolog-lite/swi-prolog-lite-5.1.13.ebuild,v 1.7 2005/02/19 20:36:35 weeve Exp $
DESCRIPTION="free, small, and standards compliant Prolog compiler"
HOMEPAGE="http://www.swi-prolog.org/"
SRC_URI="http://www.swi.psy.uva.nl/cgi-bin/nph-download/SWI-Prolog/BETA/pl-${PV}.tar.gz"
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="x86"
IUSE="readline static"
DEPEND="readline? ( sys-libs/readline )
sys-libs/ncurses
virtual/libc
sys-apps/gawk
sys-apps/sed
sys-devel/binutils"
S="${WORKDIR}/pl-${PV}"
src_compile() {
# fix install destinations
patch -p0 < ${FILESDIR}/destdir.patch
local myconf="" # multithread is beta right now --enable-mt
use readline \
&& myconf="${myconf} --enable-readline" \
|| myconf="${myconf} --disable-readline"
use static && myconf="${myconf} --disable-shared"
econf ${myconf} --enable-mt || die "econf failed"
make || die "make failed" # emake doesnt work
}
src_install() {
make install DESTDIR=${D} || die "make install failed"
rm -rf ${D}/usr/share/man/man3/readline.3
dodoc ANNOUNCE ChangeLog INSTALL INSTALL.notes PORTING README VERSION
}
|