summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeri Harris <keri@gentoo.org>2006-04-07 20:56:23 +0000
committerKeri Harris <keri@gentoo.org>2006-04-07 20:56:23 +0000
commit22a3a0ff9ff3b9a5065f079aef2e664629c6f433 (patch)
tree8334a848f00933e2bc9717618d40e5ec34db7b8d /dev-lang
parentVersion bump. (diff)
downloadgentoo-2-22a3a0ff9ff3b9a5065f079aef2e664629c6f433.tar.gz
gentoo-2-22a3a0ff9ff3b9a5065f079aef2e664629c6f433.tar.bz2
gentoo-2-22a3a0ff9ff3b9a5065f079aef2e664629c6f433.zip
Version bump.
(Portage version: 2.1_pre7-r4)
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/qu-prolog/ChangeLog9
-rw-r--r--dev-lang/qu-prolog/Manifest15
-rw-r--r--dev-lang/qu-prolog/files/digest-qu-prolog-7.23
-rw-r--r--dev-lang/qu-prolog/files/qu-prolog-7.2-CXXFLAGS.patch13
-rw-r--r--dev-lang/qu-prolog/files/qu-prolog-7.2-gcc4.patch69
-rw-r--r--dev-lang/qu-prolog/files/qu-prolog-7.2-portage.patch206
-rw-r--r--dev-lang/qu-prolog/qu-prolog-7.2.ebuild78
7 files changed, 392 insertions, 1 deletions
diff --git a/dev-lang/qu-prolog/ChangeLog b/dev-lang/qu-prolog/ChangeLog
index ff7d8142dcbd..e7c3474564c1 100644
--- a/dev-lang/qu-prolog/ChangeLog
+++ b/dev-lang/qu-prolog/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-lang/qu-prolog
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/qu-prolog/ChangeLog,v 1.4 2006/04/01 05:07:04 keri Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/qu-prolog/ChangeLog,v 1.5 2006/04/07 20:56:23 keri Exp $
+
+*qu-prolog-7.2 (07 Apr 2006)
+
+ 07 Apr 2006; Keri Harris <keri@gentoo.org>
+ +files/qu-prolog-7.2-CXXFLAGS.patch, +files/qu-prolog-7.2-gcc4.patch,
+ +files/qu-prolog-7.2-portage.patch, +qu-prolog-7.2.ebuild:
+ Version bump.
01 Apr 2006; Keri Harris <keri@gentoo.org> qu-prolog-7.1.ebuild:
QT support is handled by configure.
diff --git a/dev-lang/qu-prolog/Manifest b/dev-lang/qu-prolog/Manifest
index f4c94e6f9b1e..16841a190cc7 100644
--- a/dev-lang/qu-prolog/Manifest
+++ b/dev-lang/qu-prolog/Manifest
@@ -4,6 +4,9 @@ SHA256 1d8da0201293e85d75e5b44898e90a2c28237188a323e9820f5a611dc22a2f9d ChangeLo
MD5 05a4225ab8e0f8aa21af3fe4cdb0c96a files/digest-qu-prolog-7.1 220
RMD160 39dcab7028e8943388af721d0af5817c81f86389 files/digest-qu-prolog-7.1 220
SHA256 de55cf44cf2fb373bfb2820ec506998c4f596d3b82841abf5f2fef90456e69c9 files/digest-qu-prolog-7.1 220
+MD5 e31aa744ae84c71d73817369c173db21 files/digest-qu-prolog-7.2 220
+RMD160 8339fea44e54a0f86d02d71244d527069b776f8f files/digest-qu-prolog-7.2 220
+SHA256 4bb5e3a2a13062e2baac92791d74495507361b6dcde31f344932cf6c538c5446 files/digest-qu-prolog-7.2 220
MD5 be56d881282df2bd90fc7468e1478996 files/qu-prolog-7.1-CXXFLAGS.patch 572
RMD160 ccd8ac7d2cbfa98a83649ad8c837192b95711a48 files/qu-prolog-7.1-CXXFLAGS.patch 572
SHA256 1a45b93b41f40ac8225aec3251941afe3730b76f37c91ffc4766cd9f15436548 files/qu-prolog-7.1-CXXFLAGS.patch 572
@@ -13,9 +16,21 @@ SHA256 da7c3b17f389fde4bdf92ea67102214c5f2d13b4cacbea33f55976c0bf5d19e1 files/qu
MD5 513758ac5d92f151b90a9de3c1850d7a files/qu-prolog-7.1-portage.patch 5627
RMD160 4e2ecc7b39e9961c8a35f53d9e34886f837f4972 files/qu-prolog-7.1-portage.patch 5627
SHA256 60e05453e77db7427e8745bbe201ad6b725bc486e825fcbdfdb90b3fcb3052c8 files/qu-prolog-7.1-portage.patch 5627
+MD5 151e06fea606335d5579458e988a3282 files/qu-prolog-7.2-CXXFLAGS.patch 699
+RMD160 a21cfa84337e98e33e324d3b2dc0dfa3fb6a0629 files/qu-prolog-7.2-CXXFLAGS.patch 699
+SHA256 3255939159796dac97a5cc080c94b3eb19afd85a797ca9680fea4a151dff2d79 files/qu-prolog-7.2-CXXFLAGS.patch 699
+MD5 d959ab1b31bd1ab282db3eddb9e9f1c2 files/qu-prolog-7.2-gcc4.patch 1638
+RMD160 b9ae0b8442714849a4ec83c7616ee65e4a0d25b4 files/qu-prolog-7.2-gcc4.patch 1638
+SHA256 b33e5d1d7e25d5373479222ac6ad76f89f2e89015e9e9821bcd054dc42335332 files/qu-prolog-7.2-gcc4.patch 1638
+MD5 2c7050954544a3bc078d29a5afba886c files/qu-prolog-7.2-portage.patch 5627
+RMD160 7c84fc584a5c745335d90c4f7905cdad9a58aa1f files/qu-prolog-7.2-portage.patch 5627
+SHA256 5a186a8e245ab777ce9d0cbc4ddb7bec3ddd12219a0b9fb3af54cae3d60a5714 files/qu-prolog-7.2-portage.patch 5627
MD5 9187f53634e60ab7eb2ac7e98b0b19f7 metadata.xml 159
RMD160 38d27fd1c5faabedefa5507dfd83cb4c952fbc8c metadata.xml 159
SHA256 851bf218a4283a1d8ea6ef98af0119a40eaa78bfaaec49c2f3440437f52889ba metadata.xml 159
MD5 74f250a0d6b0668cdc71d9290a83523a qu-prolog-7.1.ebuild 1749
RMD160 b749e293ba913462c02f55b94418d346784beb8e qu-prolog-7.1.ebuild 1749
SHA256 fc12751c6f107c7f0b3cb4314ec1be34cd0e35307fe40bec5c4a516b7b434066 qu-prolog-7.1.ebuild 1749
+MD5 023569061b25a22b05745c76ee84c2f3 qu-prolog-7.2.ebuild 1684
+RMD160 2c9e974cb7e9b5156dbbf3ca7d07216cca284087 qu-prolog-7.2.ebuild 1684
+SHA256 74bc041b39cb514401967281fc03e6df4dd75d67dd1e1fa7b6da58081b1ff111 qu-prolog-7.2.ebuild 1684
diff --git a/dev-lang/qu-prolog/files/digest-qu-prolog-7.2 b/dev-lang/qu-prolog/files/digest-qu-prolog-7.2
new file mode 100644
index 000000000000..7b4a6420b286
--- /dev/null
+++ b/dev-lang/qu-prolog/files/digest-qu-prolog-7.2
@@ -0,0 +1,3 @@
+MD5 09f3480df9e2c955c188a7d9ff759b51 qp7.2.tar.gz 1278184
+RMD160 aa4c902b2804d727b1886e9d3da405e0fffbe819 qp7.2.tar.gz 1278184
+SHA256 49fdd81fb6aa31c29038671a347cfae9de0371ba8663e2d978cb7c8d1fc21aa9 qp7.2.tar.gz 1278184
diff --git a/dev-lang/qu-prolog/files/qu-prolog-7.2-CXXFLAGS.patch b/dev-lang/qu-prolog/files/qu-prolog-7.2-CXXFLAGS.patch
new file mode 100644
index 000000000000..39fae828d656
--- /dev/null
+++ b/dev-lang/qu-prolog/files/qu-prolog-7.2-CXXFLAGS.patch
@@ -0,0 +1,13 @@
+--- qp7.2.orig/src/Makefile.in 2006-04-06 14:14:37.000000000 +1200
++++ qp7.2/src/Makefile.in 2006-04-08 08:00:50.000000000 +1200
+@@ -40,8 +40,8 @@
+
+ #export DEBUGGING=
+
+-export CXXFLAGS = @GCC_ALIAS_FLAG@ -Wall -D_GNU_SOURCE=1 $(OPTIMISATION) @DEBUGGING@ -I@ICMHOME@/include @GCCINCLUDES@ -Wno-uninitialized
+-export QACXXFLAGS = -Wall -D_GNU_SOURCE=1 @DEBUGGING@ -I@ICMHOME@/include @GCCINCLUDES@ -Wno-uninitialized
++export QPCXXFLAGS = @GCC_ALIAS_FLAG@ -Wall -D_GNU_SOURCE=1 $(OPTIMISATION) $(DEBUGGING) -I@ICMHOME@/include @GCCINCLUDES@ -Wno-uninitialized
++export QACXXFLAGS = -Wall -D_GNU_SOURCE=1 $(DEBUGGING) -I@ICMHOME@/include @GCCINCLUDES@ -Wno-uninitialized
+
+ .PHONY: all
+ all: commands
diff --git a/dev-lang/qu-prolog/files/qu-prolog-7.2-gcc4.patch b/dev-lang/qu-prolog/files/qu-prolog-7.2-gcc4.patch
new file mode 100644
index 000000000000..94481f56db18
--- /dev/null
+++ b/dev-lang/qu-prolog/files/qu-prolog-7.2-gcc4.patch
@@ -0,0 +1,69 @@
+--- qp7.2.orig/src/bind.h 2005-11-27 12:43:57.000000000 +1300
++++ qp7.2/src/bind.h 2006-02-04 13:34:58.000000000 +1300
+@@ -113,7 +113,7 @@
+ //
+ // Update and trail an implicit parameter entry
+ //
+-inline void Thread::updateAndTrailIP(heapobject* ptr, Object* value,
++inline void updateAndTrailIP(heapobject* ptr, Object* value,
+ u_int offset = 0)
+ {
+ assert(ptr != NULL);
+--- qp7.2.orig/src/trace_qp.h 2006-04-06 14:14:02.000000000 +1200
++++ qp7.2/src/trace_qp.h 2006-04-08 08:47:31.000000000 +1200
+@@ -107,8 +107,8 @@
+ void TraceConst2(AtomTable& atoms, Heap& heap, const char *s, Object* c,
+ const int32 x, const int32 y);
+
+- void Trace::TraceInt0(const char *s, const int32 n);
+- void Trace::TraceInt1(const char *s, const int32 n, const int32 x);
++ void TraceInt0(const char *s, const int32 n);
++ void TraceInt1(const char *s, const int32 n, const int32 x);
+
+ void TraceString1(const char *s, const char *t);
+ void TraceString2(const char *s, const char *t, const int32 x);
+--- qp7.2.orig/src/unify.h 2005-11-27 12:43:58.000000000 +1300
++++ qp7.2/src/unify.h 2006-02-04 13:35:22.000000000 +1300
+@@ -180,7 +180,7 @@
+ //
+ // Unify object variables.
+ //
+-bool Thread::unifyObjectVariables(PrologValue& objectVariable1,
++bool unifyObjectVariables(PrologValue& objectVariable1,
+ PrologValue& objectVariable2);
+
+ //
+--- qp7.2.orig/src/xqp/interact.h 2004-05-16 16:27:54.000000000 +1200
++++ qp7.2/src/xqp/interact.h 2006-02-04 19:33:22.000000000 +1300
+@@ -23,7 +23,7 @@
+ #include <qwidget.h>
+ #include <qtextedit.h>
+ #include <qstring.h>
+-#include <fstream.h>
++#include <fstream>
+ #include <qaccel.h>
+ #include <qregexp.h>
+ #include <qsocketnotifier.h>
+--- qp7.2.orig/src/xqp/main.cc 2004-05-25 14:14:30.000000000 +1200
++++ qp7.2/src/xqp/main.cc 2006-02-04 19:45:03.000000000 +1300
+@@ -19,9 +19,9 @@
+
+ #include <stdlib.h>
+ #include <stdio.h>
+-#include <iostream.h>
++#include <iostream>
+ #include <unistd.h>
+-#include <fstream.h>
++#include <fstream>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
+@@ -31,6 +31,8 @@
+ #include "xqp.h"
+
+
++using namespace std;
++
+ // Create 2 sockets for unidirectional communication to and from qp
+ int socket_main_to_qp[2], socket_qp_to_main[2];
+
diff --git a/dev-lang/qu-prolog/files/qu-prolog-7.2-portage.patch b/dev-lang/qu-prolog/files/qu-prolog-7.2-portage.patch
new file mode 100644
index 000000000000..c059849c1e8e
--- /dev/null
+++ b/dev-lang/qu-prolog/files/qu-prolog-7.2-portage.patch
@@ -0,0 +1,206 @@
+--- qp7.2.orig/Makefile.in 2006-02-20 16:22:53.000000000 +1300
++++ qp7.2/Makefile.in 2006-03-24 23:22:43.000000000 +1200
+@@ -14,6 +14,7 @@
+ # objects.
+ #
+
++export QPHOME = @prefix@/lib/qu-prolog
+ export QPBIN = @QPHOME@/bin
+
+
+@@ -34,7 +35,6 @@
+ objects:
+ @$(MAKE) -C @QPHOME@/bin $(PARALLEL) all
+ @$(MAKE) -C @QPHOME@/src $(PARALLEL) all
+- @$(MAKE) -C @QPHOME@/src $(PARALLEL) install
+ @$(MAKE) -C @QPHOME@/prolog $(PARALLEL) all
+
+
+--- qp7.2.orig/bin/qc.in 2003-02-07 10:21:21.000000000 +1300
++++ qp7.2/bin/qc.in 2006-03-25 13:56:42.000000000 +1200
+@@ -52,24 +52,25 @@
+ #
+ # location of Qu-Prolog project
+ #
+-PATH=@QPHOME@/bin:$PATH
++QPHOME=@prefix@/lib/qu-prolog
++PATH=$QPHOME/bin:$PATH
+
+ #
+ # names of Qu-Prolog binaries
+ #
+-preprocess=@QPHOME@/bin/qppp
++preprocess=qppp
+ expand=qg
+ compile=qc1
+ compversion=qup
+ assemble=qa
+ link=ql
+-execute=@QPHOME@/bin/qem
++execute=qem
+
+ #
+ # Use the line below when dynamic search for libraries is implemented.
+ #
+ # libqofiles=""
+-libqofiles="@QPHOME@/prolog/compiler/*.qo @QPHOME@/prolog/library/*.qo"
++libqofiles="$QPHOME/compiler/*.qo $QPHOME/library/*.qo"
+
+ qlfiles=""
+ qlefiles=""
+@@ -332,18 +333,7 @@
+ absexecfile=$execfile
+ ;;
+ *)
+- currdir=`pwd`
+- case $currdir in
+- /u*)
+- abspath=`echo $currdir | sed "s,/u./$HOSTNAME/,/homes/,"`
+- ;;
+- /tmp_mnt/*)
+- abspath=`echo $currdir | sed 's,/tmp_mnt/homes/[^/]*/,/homes/,'`
+- ;;
+- *)
+- abspath=$currdir
+- ;;
+- esac
++ abspath=`pwd`
+ absexecfile=$abspath/$execfile
+ ;;
+ esac
+@@ -359,5 +349,8 @@
+
+ # make executable file
+
+-echo "exec $execute $Eoptions $lflag -Q '$savefile' \$* $*" >$execfile
++echo "QPPATH=@prefix@/bin:$QPHOME/bin" >$execfile
++echo "QPLIBPATH=$QPHOME/compiler:$QPHOME/library" >>$execfile
++echo "export QPPATH QPLIBPATH" >>$execfile
++echo "exec $execute $Eoptions $lflag -Q '$savefile' \$* $*" >>$execfile
+ chmod a+x $execfile
+--- qp7.2.orig/prolog/compiler/Makefile.in 2006-02-20 16:22:58.000000000 +1300
++++ qp7.2/prolog/compiler/Makefile.in 2006-03-24 22:54:57.000000000 +1200
+@@ -29,5 +29,5 @@
+
+
+ %.qo: %.qs
+- $(COMPILE.qc) -c -o $@ $<
++ @QPHOME@/src/qa -i $< -o $@
+
+--- qp7.2.orig/prolog/library/Makefile.in 2006-02-20 16:22:58.000000000 +1300
++++ qp7.2/prolog/library/Makefile.in 2006-03-24 23:00:08.000000000 +1200
+@@ -100,4 +100,4 @@
+
+
+ %.qo: %.qs
+- $(COMPILE.qc) -c -o $@ $<
++ @QPHOME@/src/qa -i $< -o $@
+--- qp7.2.orig/prolog/qc1/Makefile.in 2006-02-20 16:22:58.000000000 +1300
++++ qp7.2/prolog/qc1/Makefile.in 2006-03-24 23:28:45.000000000 +1200
+@@ -1,8 +1,8 @@
+ #
+ # Makefile for "qc1.qup"
+ #
+-PROGRAM = @QPHOME@/bin/qc1.qup
+-
++PROGRAM = @QPHOME@/bin/qc1
++SAVEFILE = qc1.qx
+ SOURCES = qc1.ql
+
+ BASES = $(basename $(SOURCES))
+@@ -13,8 +13,12 @@
+ all: $(PROGRAM)
+
+ $(PROGRAM): $(OBJECTS)
+- $(COMPILE.qc) -L -o $(PROGRAM) $(OBJECTS)
++ @QPHOME@/src/ql -o $(SAVEFILE) @QPHOME@/prolog/compiler/*.qo @QPHOME@/prolog/library/*.qo $(OBJECTS)
++ @echo "QPPATH=@prefix@/bin:$(QPHOME)/bin" >$(PROGRAM)
++ @echo "QPLIBPATH=$(QPHOME)/compiler:$(QPHOME)/library" >>$(PROGRAM)
++ @echo "export QPPATH QPLIBPATH" >>$(PROGRAM)
++ @echo -e "exec qem -L -Q $(QPHOME)/bin/$(SAVEFILE) \044\052" >>$(PROGRAM)
+
+ %.qo: %.qs
+- $(COMPILE.qc) -c -o $@ $<
++ @QPHOME@/src/qa -i $< -o $@
+
+--- qp7.2.orig/prolog/qecat/Makefile.in 2006-02-20 16:22:58.000000000 +1300
++++ qp7.2/prolog/qecat/Makefile.in 2006-03-25 10:49:45.000000000 +1200
+@@ -3,7 +3,7 @@
+ #
+
+ PROGRAM = $(QPBIN)/qecat
+-
++SAVEFILE = qecat.qx
+ SOURCES = qecat.ql
+
+ BASES = $(basename $(SOURCES))
+@@ -14,9 +14,13 @@
+ all: $(PROGRAM)
+
+ $(PROGRAM): $(OBJECTS)
+- $(COMPILE.qc) -L -o $(PROGRAM) $(OBJECTS)
++ @QPHOME@/src/ql -o $(SAVEFILE) @QPHOME@/prolog/compiler/*.qo @QPHOME@/prolog/library/*.qo $(OBJECTS)
++ @echo "QPPATH=@prefix@/bin:$(QPHOME)/bin" >$(PROGRAM)
++ @echo "QPLIBPATH=$(QPHOME)/compiler:$(QPHOME)/library" >>$(PROGRAM)
++ @echo "export QPPATH QPLIBPATH" >>$(PROGRAM)
++ @echo -e "exec qem -L -Q $(QPHOME)/bin/$(SAVEFILE) \044\052" >>$(PROGRAM)
+
+
+ %.qo: %.qs
+- $(COMPILE.qc) -c -o $@ $<
++ @QPHOME@/src/qa -i $< -o $@
+
+--- qp7.2.orig/prolog/qg/Makefile.in 2006-02-20 16:22:58.000000000 +1300
++++ qp7.2/prolog/qg/Makefile.in 2006-03-25 10:43:32.000000000 +1200
+@@ -3,7 +3,7 @@
+ #
+
+ PROGRAM = @QPHOME@/bin/qg
+-
++SAVEFILE = qg.qx
+ SOURCES = qg.ql
+
+ BASES = $(basename $(SOURCES))
+@@ -14,9 +14,13 @@
+ all: $(PROGRAM)
+
+ $(PROGRAM): $(OBJECTS)
+- $(COMPILE.qc) -L -o $(PROGRAM) $(OBJECTS)
++ @QPHOME@/src/ql -o $(SAVEFILE) @QPHOME@/prolog/compiler/*.qo @QPHOME@/prolog/library/*.qo $(OBJECTS)
++ @echo "QPPATH=@prefix@/bin:$(QPHOME)/bin" >$(PROGRAM)
++ @echo "QPLIBPATH=$(QPHOME)/compiler:$(QPHOME)/library" >>$(PROGRAM)
++ @echo "export QPPATH QPLIBPATH" >>$(PROGRAM)
++ @echo -e "exec qem -L -Q $(QPHOME)/bin/$(SAVEFILE) \044\052" >>$(PROGRAM)
+
+
+ %.qo: %.qs
+- $(COMPILE.qc) -c -o $@ $<
++ @QPHOME@/src/qa -i $< -o $@
+
+--- qp7.2.orig/prolog/qp/Makefile.in 2006-02-20 16:22:58.000000000 +1300
++++ qp7.2/prolog/qp/Makefile.in 2006-03-25 10:47:17.000000000 +1200
+@@ -2,7 +2,7 @@
+ # Makefile for "qp"
+ #
+ PROGRAM = @QPHOME@/bin/qp
+-
++SAVEFILE = qp.qx
+ SOURCES = qp.ql
+
+ BASES = $(basename $(SOURCES))
+@@ -13,9 +13,13 @@
+ all: $(PROGRAM)
+
+ $(PROGRAM): $(OBJECTS)
+- $(COMPILE.qc) -o $(PROGRAM) $(OBJECTS)
++ @QPHOME@/src/ql -o $(SAVEFILE) @QPHOME@/prolog/compiler/*.qo @QPHOME@/prolog/library/*.qo $(OBJECTS)
++ @echo "QPPATH=@prefix@/bin:$(QPHOME)/bin" >$(PROGRAM)
++ @echo "QPLIBPATH=$(QPHOME)/compiler:$(QPHOME)/library" >>$(PROGRAM)
++ @echo "export QPPATH QPLIBPATH" >>$(PROGRAM)
++ @echo -e "exec qem -Q $(QPHOME)/bin/$(SAVEFILE) \044\052" >>$(PROGRAM)
+
+
+ %.qo: %.qs
+- $(COMPILE.qc) -c -o $@ $<
++ @QPHOME@/src/qa -i $< -o $@
+
diff --git a/dev-lang/qu-prolog/qu-prolog-7.2.ebuild b/dev-lang/qu-prolog/qu-prolog-7.2.ebuild
new file mode 100644
index 000000000000..af65b8f476bb
--- /dev/null
+++ b/dev-lang/qu-prolog/qu-prolog-7.2.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/qu-prolog/qu-prolog-7.2.ebuild,v 1.1 2006/04/07 20:56:23 keri Exp $
+
+inherit eutils flag-o-matic
+
+MY_P=qp${PV}
+
+DESCRIPTION="Qu-Prolog is an extended Prolog supporting quantifiers, object-variables and substitutions"
+HOMEPAGE="http://www.itee.uq.edu.au/~pjr/HomePages/QuPrologHome.html"
+SRC_URI="http://www.itee.uq.edu.au/~pjr/HomePages/QPFiles/${MY_P}.tar.gz"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~ppc ~x86"
+IUSE="doc qt threads"
+
+DEPEND="qt? ( =x11-libs/qt-3* )"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-portage.patch
+ epatch "${FILESDIR}"/${P}-CXXFLAGS.patch
+ epatch "${FILESDIR}"/${P}-gcc4.patch
+
+ sed -i -e "s:head -1:head -n 1:" configure
+}
+
+src_compile() {
+ append-flags -fno-strict-aliasing
+
+ econf \
+ $(use_enable threads multiple-threads) \
+ || die "econf failed"
+ emake || die "emake failed"
+
+ if use qt ; then
+ cd "${S}"/src/xqp
+ "${QTDIR}"/bin/qmake || die "qmake xqp failed"
+ emake || die "emake xqp failed"
+ fi
+}
+
+src_install() {
+ exeinto /usr/bin
+ doexe src/qa src/qdeal src/qem src/ql
+ doexe bin/qc bin/qecat bin/qp bin/qppp
+
+ use qt && doexe src/xqp/xqp
+
+ insinto /usr/lib/${PN}/bin
+ doins prolog/qc1/qc1.qx \
+ prolog/qecat/qecat.qx \
+ prolog/qg/qg.qx \
+ prolog/qp/qp.qx
+
+ insinto /usr/lib/${PN}/library
+ doins prolog/library/*.qo
+
+ insinto /usr/lib/${PN}/compiler
+ doins prolog/compiler/*.qo
+
+ doman doc/man/man1/*.1
+
+ dodoc INSTALL README
+
+ if use doc ; then
+ docinto reference-manual
+ dodoc doc/manual/*.html
+ docinto user-guide
+ dodoc doc/user/main.ps
+ docinto examples
+ dodoc examples/*.ql examples/README
+ fi
+}