--- /dev/null
+# ChangeLog for dev-lang/swi-prolog-lite-5.0.10
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/swi-prolog-lite/ChangeLog,v 1.1 2002/11/02 01:09:38 vapier Exp $
+
+*swi-prolog-lite-5.0.10 (01 Nov 2002)
+
+ 01 Nov 2002; Mike Frysinger <vapier@gentoo.org> :
+ Initial import. Ebuild submitted by me.
--- /dev/null
+--- src/Makefile.in 2002-11-01 19:27:25.000000000 -0500
++++ src/Makefile.in.old 2002-11-01 19:26:49.000000000 -0500
+@@ -37,7 +37,8 @@
+
+ PL=@PL@@RT@
+ PLV=@PL@@RT@-@PLVERSION@
++DESTDIR=
++prefix=$(DESTDIR)@prefix@
+-prefix=@prefix@
+ exec_prefix=@exec_prefix@
+ srcdir=@srcdir@
+ @VPATH@ @srcdir@
+@@ -45,7 +46,7 @@
+ PLBASE=$(prefix)/lib/@PL@-$(PLVERSION)
+ # NOTE: Also defined in config.h!
+ BOOTFILE=@BOOTFILE@
++mandir=$(DESTDIR)@mandir@
+-mandir=@mandir@
+ mansec=1
+ lmansec=3
+ smandir=$(mandir)/man$(mansec)
--- /dev/null
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# 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.0.10.ebuild,v 1.1 2002/11/02 01:09:38 vapier Exp $
+
+DESCRIPTION="free, small, and standard compliant a Prolog compiler"
+HOMEPAGE="http://www.swi-prolog.org/"
+SRC_URI="http://www.swi.psy.uva.nl/cgi-bin/nph-download/SWI-Prolog/pl-lite-${PV}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc ~sparc64 ~alpha"
+IUSE="readline static"
+
+DEPEND="readline? ( sys-libs/readline )
+ sys-libs/ncurses
+ virtual/glibc
+ 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}
+ 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
+}