summaryrefslogtreecommitdiff
blob: 7d73da05abed5b21574cda34d5dd17161c79fff8 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/gprolog/gprolog-1.2.16.ebuild,v 1.3 2003/09/06 22:27:51 msterret Exp $

IUSE=""

DEPEND="virtual/glibc"

DESCRIPTION="GNU Prolog is a native Prolog compiler with constraint solving over finite domains (FD)"
HOMEPAGE="http://pauillac.inria.fr/~diaz/gnu-prolog/"
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
S=${WORKDIR}/${P}/src

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

src_unpack() {
	unpack ${A}
	cd ${S}

	mv Makefile.in Makefile.in.orig
	sed -e "s/TXT_FILES /#TXT_FILES/" Makefile.in.orig > Makefile.in
}

src_compile() {
	econf || die "./configure failed"
	emake || die "make failed"
}

src_install() {
	dodir /usr/bin
	make INSTALL_DIR=${D}/usr \
		LINKS_DIR="" \
		DOC_DIR=/${D}/usr/share/doc/${P} \
		HTML_DIR=${D}/usr/share/doc/${P}/html \
		EXAMPLES_DIR=${D}/usr/share/${P}/examples install || die "install failed"
	cd ${S}/..
	dodoc ChangeLog COPYING INSTALL NEWS PROBLEMS README VERSION
}