diff options
author | Keri Harris <keri@gentoo.org> | 2006-03-25 02:04:10 +0000 |
---|---|---|
committer | Keri Harris <keri@gentoo.org> | 2006-03-25 02:04:10 +0000 |
commit | 43d5e2e8e11789cdac9c72bf1a1116e1b0496f98 (patch) | |
tree | 2b174f6fd693ffb67588c9277aacd38c9e2ade36 /dev-lang/qu-prolog/files | |
parent | Mark 3.4.3 stable on ia64 (diff) | |
download | gentoo-2-43d5e2e8e11789cdac9c72bf1a1116e1b0496f98.tar.gz gentoo-2-43d5e2e8e11789cdac9c72bf1a1116e1b0496f98.tar.bz2 gentoo-2-43d5e2e8e11789cdac9c72bf1a1116e1b0496f98.zip |
Initial import.
(Portage version: 2.1_pre6-r5)
Diffstat (limited to 'dev-lang/qu-prolog/files')
-rw-r--r-- | dev-lang/qu-prolog/files/digest-qu-prolog-7.1 | 3 | ||||
-rw-r--r-- | dev-lang/qu-prolog/files/qu-prolog-7.1-CXXFLAGS.patch | 11 | ||||
-rw-r--r-- | dev-lang/qu-prolog/files/qu-prolog-7.1-gcc4.patch | 56 | ||||
-rw-r--r-- | dev-lang/qu-prolog/files/qu-prolog-7.1-portage.patch | 206 |
4 files changed, 276 insertions, 0 deletions
diff --git a/dev-lang/qu-prolog/files/digest-qu-prolog-7.1 b/dev-lang/qu-prolog/files/digest-qu-prolog-7.1 new file mode 100644 index 000000000000..a0aafce8dadd --- /dev/null +++ b/dev-lang/qu-prolog/files/digest-qu-prolog-7.1 @@ -0,0 +1,3 @@ +MD5 aa2309432d08385af6a39a457c30bc63 qp7.1.tar.gz 1275135 +RMD160 7fe112ea31f9d7675dcffd67219a4fad7a2bf82a qp7.1.tar.gz 1275135 +SHA256 9fee14ca3284f466c502437f4050f3def1390304644a020c1fe12bf809c523cb qp7.1.tar.gz 1275135 diff --git a/dev-lang/qu-prolog/files/qu-prolog-7.1-CXXFLAGS.patch b/dev-lang/qu-prolog/files/qu-prolog-7.1-CXXFLAGS.patch new file mode 100644 index 000000000000..fe7bf29dab63 --- /dev/null +++ b/dev-lang/qu-prolog/files/qu-prolog-7.1-CXXFLAGS.patch @@ -0,0 +1,11 @@ +--- qp7.0.orig/src/Makefile.in 2005-11-27 12:44:23.000000000 +1300 ++++ qp7.0/src/Makefile.in 2006-01-30 22:10:21.000000000 +1300 +@@ -40,7 +40,7 @@ + + export DEBUGGING= + +-export CXXFLAGS = @GCC_ALIAS_FLAG@ -Wall -D_GNU_SOURCE=1 $(OPTIMISATION) $(DEBUGGING) -I@ICMHOME@/include @GCCINCLUDES@ -Wno-uninitialized ++export QPCXXFLAGS = @GCC_ALIAS_FLAG@ -Wall -D_GNU_SOURCE=1 $(CXXFLAGS) $(DEBUGGING) -I@ICMHOME@/include @GCCINCLUDES@ -Wno-uninitialized + export QACXXFLAGS = -Wall -D_GNU_SOURCE=1 $(DEBUGGING) -I@ICMHOME@/include @GCCINCLUDES@ -Wno-uninitialized + + .PHONY: all diff --git a/dev-lang/qu-prolog/files/qu-prolog-7.1-gcc4.patch b/dev-lang/qu-prolog/files/qu-prolog-7.1-gcc4.patch new file mode 100644 index 000000000000..32eff67664a5 --- /dev/null +++ b/dev-lang/qu-prolog/files/qu-prolog-7.1-gcc4.patch @@ -0,0 +1,56 @@ +--- qp7.1.orig/src/bind.h 2005-11-27 12:43:57.000000000 +1300 ++++ qp7.1/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.1.orig/src/unify.h 2005-11-27 12:43:58.000000000 +1300 ++++ qp7.1/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.1.orig/src/xqp/interact.h 2004-05-16 16:27:54.000000000 +1200 ++++ qp7.1/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.1.orig/src/xqp/main.cc 2004-05-25 14:14:30.000000000 +1200 ++++ qp7.1/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.1-portage.patch b/dev-lang/qu-prolog/files/qu-prolog-7.1-portage.patch new file mode 100644 index 000000000000..c52fa9a7c047 --- /dev/null +++ b/dev-lang/qu-prolog/files/qu-prolog-7.1-portage.patch @@ -0,0 +1,206 @@ +--- qp7.1.orig/Makefile.in 2006-02-20 16:22:53.000000000 +1300 ++++ qp7.1/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.1.orig/bin/qc.in 2003-02-07 10:21:21.000000000 +1300 ++++ qp7.1/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.1.orig/prolog/compiler/Makefile.in 2006-02-20 16:22:58.000000000 +1300 ++++ qp7.1/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.1.orig/prolog/library/Makefile.in 2006-02-20 16:22:58.000000000 +1300 ++++ qp7.1/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.1.orig/prolog/qc1/Makefile.in 2006-02-20 16:22:58.000000000 +1300 ++++ qp7.1/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.1.orig/prolog/qecat/Makefile.in 2006-02-20 16:22:58.000000000 +1300 ++++ qp7.1/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.1.orig/prolog/qg/Makefile.in 2006-02-20 16:22:58.000000000 +1300 ++++ qp7.1/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.1.orig/prolog/qp/Makefile.in 2006-02-20 16:22:58.000000000 +1300 ++++ qp7.1/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 $@ + |