dev-lang/qu-prolog: remove old versions

Package-Manager: Portage-2.3.8, Repoman-2.3.1
This commit is contained in:
Keri Harris
2017-10-29 18:35:55 +01:00
parent 63ae8b7be0
commit 4853a0a4bf
12 changed files with 0 additions and 679 deletions

View File

@@ -1,5 +1 @@
DIST qp10.0.tar.gz 1521469 SHA256 f3968e0ea5f9da80475b8298cbac0c70d3684fb8e68ddc0961a2d8c739aa9f07 SHA512 491ef9cc01f0d34163d47163b3103dcbd52cc5672f64057b898c2d234384ac2e3b64b4e59a1795765ff92de4c97ebdb11a82d394213685c387e4dd7d598c5c60 WHIRLPOOL 675a46d6ce428456e1055b8192c84e488ea1b6a3715f9f3e267d9df0637e304982f933e6078e5912c025eceb02dc79c08bd6744d181269b210ff3233ce69fa37
DIST qp9.1.tar.gz 1460679 SHA256 1f3052f2700d537b33207943a3ade48b2b3aa5cd01cafc0475bcf26c645bc9af SHA512 44590be9d1ecec97fa6c82b657e9ecc3778f833644055ee87c9a6a36996663d139ffd7b583d72f8ac317648e0f22ccbc2a1da9c3a5eabd23381c668e5d073cbb WHIRLPOOL 37ec4e25c2284b267f72c016b4ea1e542d735c9da5f6532d1f6b439af2b91422ddc251d31e1a17b6366ee6af0e754acdbf8a0c44ef03f46a2515f14b1259b732
DIST qp9.5.tar.gz 1537445 SHA256 7e4b9883fad00b16c919620033da48482b2eccc875b37f8170d674ce9f72aee2 SHA512 7a79090a6e3f0263e38cf5e5724a5c35c63c8cca2842fa8c07f9ff84011ef7ac9a22b195713aeb626a787c9391c612f3fea0ff38c084634a2f62258feb3eb6e2 WHIRLPOOL 3f589998f3480925fa3ad3c54f1f0ba4122cfa12c48d9bf1269e92a0fdf52d1823cd8dae8851e36d2c97ec2f869da10ff6ee7f2663b752d1d396e1b5a95ca982
DIST qp9.6.tar.gz 1539483 SHA256 631ab73af271279d583c5ecf19e5542dd8dff097179e3bb34ac2624aeb029f7a SHA512 a15d3f2254d9ed9a2032f7e2902363f2ed2dbf0a7ba67a89aae79202d38954a195e93725aa828d19d50d7a891d8cea4f0d23af66ffd55984738db9b612467cd8 WHIRLPOOL 3dcc746da3283044267abd7aa00795b1bff79bffd206c1bf227087281d94f2dc4a390a5ccd85933641aea150313b2f62e0e9fbe491ef4fafa73e4fdd9b35d7d1
DIST qp9.7.tar.gz 1539804 SHA256 9b77c97e0cb981669cf27df0f68875ba44958e67cc82ac71a4f5d2665b96708b SHA512 20a7a00eab2ec489489f95d78eb4dc8edf71d99fae2f23807158ca78d0bbd1b66d03460f0e06f91ac4ecafd9aab2bbdd109368ba8d3cc2c8452e17c634035c19 WHIRLPOOL 20a790902848790cfedefc6434eda01bb4b0ed2cfdf26c7d1a7914cef9916d161fcd397001a7f5a0aadf2d710112446bd99103f161ef22ad7b3567b45b33ac6d

View File

@@ -1,40 +0,0 @@
diff -ur qp9.1.orig/src/gc.cc qp9.1/src/gc.cc
--- qp9.1.orig/src/gc.cc 2011-08-23 11:17:44.000000000 +1200
+++ qp9.1/src/gc.cc 2011-11-20 07:14:14.000000000 +1300
@@ -152,7 +152,7 @@
{
cerr << size << endl;
heapobject* ptr = reinterpret_cast<heapobject*>(term);
- cerr << hex << (u_int)(ptr) << " : " << *ptr << " " << *(ptr+1) << dec << endl;
+ cerr << hex << (wordptr)(ptr) << " : " << *ptr << " " << *(ptr+1) << dec << endl;
return false;
}
return true;
diff -ur qp9.1.orig/src/objects.h qp9.1/src/objects.h
--- qp9.1.orig/src/objects.h 2011-08-23 11:17:44.000000000 +1200
+++ qp9.1/src/objects.h 2011-11-20 07:14:14.000000000 +1300
@@ -1242,18 +1242,12 @@
<< this->getName() << "\" ";
#ifndef WIN32
- switch (hasAssociatedItem())
- {
- case AssociatedNone:
- std::cerr << "(no info)";
- break;
- case AssociatedInteger:
- std::cerr << "int: " << getAssociatedInteger();
- break;
- case AssociatedAtom:
- std::cerr << "atom: [" << std::hex << (wordptr) getAssociatedAtom() << std::dec << "]";
- break;
- }
+ if (hasAssociatedInteger())
+ std::cerr << "int: " << getAssociatedInteger();
+ else if (hasAssociatedAtom())
+ std::cerr << "atom: [" << std::hex << (wordptr) getAssociatedAtom() << std::dec << "]";
+ else
+ std::cerr << "(no info)";
#endif
}
#endif

View File

@@ -1,34 +0,0 @@
diff -ur qp9.1.orig/Makefile.in qp9.1/Makefile.in
--- qp9.1.orig/Makefile.in 2011-08-23 11:17:54.000000000 +1200
+++ qp9.1/Makefile.in 2012-01-14 12:57:16.000000000 +1300
@@ -23,7 +23,7 @@
export PROLOG = prolog
-
+export CXX=@CXX@
.PHONY: all
all: objects
diff -ur qp9.1.orig/src/Makefile.in qp9.1/src/Makefile.in
--- qp9.1.orig/src/Makefile.in 2011-08-23 11:17:54.000000000 +1200
+++ qp9.1/src/Makefile.in 2012-01-14 12:48:33.000000000 +1300
@@ -40,7 +40,7 @@
#export DEBUGGING=
-export CXXFLAGS = @GCC_ALIAS_FLAG@ -Wall -D_GNU_SOURCE=1 $(OPTIMISATION) @DEBUGGING@ @GCCINCLUDES@ -Wno-uninitialized
+#export CXXFLAGS = @GCC_ALIAS_FLAG@ -Wall -D_GNU_SOURCE=1 $(OPTIMISATION) @DEBUGGING@ @GCCINCLUDES@ -Wno-uninitialized
export QACXXFLAGS = -Wall -D_GNU_SOURCE=1 @DEBUGGING@ @GCCINCLUDES@ -Wno-uninitialized
.PHONY: all
@@ -79,6 +79,9 @@
# Targets
+.cc.o:
+ $(CXX) $(CXXFLAGS) @GCC_ALIAS_FLAG@ -Wall -D_GNU_SOURCE=1 @DEBUGGING@ @GCCINCLUDES@ -Wno-uninitialized -c $<
+
.PHONY: commands
commands: $(GENERATED) $(LIBRARIES) $(BIG_LIBRARY)
@$(MAKE) $(ALL_COMMANDS)

View File

@@ -1,33 +0,0 @@
diff -ur qp9.1.orig/src/pile.h qp9.1/src/pile.h
--- qp9.1.orig/src/pile.h 2011-08-23 01:17:44.000000000 +0200
+++ qp9.1/src/pile.h 2013-01-09 12:07:44.000000000 +0100
@@ -75,7 +75,7 @@
//
// Push a StoredType onto the pile.
//
- void push(const StoredType s){ pushElement(s); }
+ void push(const StoredType s){ this->pushElement(s); }
//
// Pop a StoredType off the pile.
@@ -85,7 +85,7 @@
//
// Pop n entries of StoredType off the pile.
//
- void popNEntries(word32 n) { setTopOfStack(this->getTopOfStack() - n); }
+ void popNEntries(word32 n) { this->setTopOfStack(this->getTopOfStack() - n); }
//
// Check whether the pile is empty or not.
diff -ur qp9.1.orig/src/system_support.cc qp9.1/src/system_support.cc
--- qp9.1.orig/src/system_support.cc 2011-08-23 01:17:44.000000000 +0200
+++ qp9.1/src/system_support.cc 2013-01-09 12:07:16.000000000 +0100
@@ -61,6 +61,8 @@
#include <iostream>
#ifdef WIN32
#include <direct.h>
+#else
+#include <unistd.h>
#endif //WIN32
using namespace std;

View File

@@ -1,32 +0,0 @@
diff -ur qp9.1.orig/bin/qc.in qp9.1/bin/qc.in
--- qp9.1.orig/bin/qc.in 2011-08-23 11:17:28.000000000 +1200
+++ qp9.1/bin/qc.in 2011-11-20 07:16:18.000000000 +1300
@@ -27,13 +27,13 @@
##############################
-preprocess='@QPHOME@/bin/qppp'
-expand='@QPHOME@/bin/qg'
-qpcompile='@QPHOME@/bin/qc1'
+preprocess='qppp'
+expand='qg'
+qpcompile='qc1'
compversion='qup'
-assemble='@QPHOME@/bin/qa'
-link='@QPHOME@/bin/ql'
-execute='@QPHOME@/bin/qem'
+assemble='qa'
+link='ql'
+execute='qem'
libqofiles="@QPHOME@/prolog/compiler/*.qo @QPHOME@/prolog/library/*.qo"
##############################
diff -ur qp9.1.orig/prolog/Makefile.in qp9.1/prolog/Makefile.in
--- qp9.1.orig/prolog/Makefile.in 2006-04-06 16:01:45.000000000 +1200
+++ qp9.1/prolog/Makefile.in 2011-11-20 07:16:18.000000000 +1300
@@ -1,3 +1,5 @@
+PATH:=$(PATH):@QPHOME@/bin
+
.DEFAULT:
@$(MAKE) -C compiler $@
@$(MAKE) -C library $@

View File

@@ -1,34 +0,0 @@
diff -ur qp9.5.orig/Makefile.in qp9.5/Makefile.in
--- qp9.5.orig/Makefile.in 2014-11-17 06:46:22.000000000 +0100
+++ qp9.5/Makefile.in 2015-05-03 11:29:52.000000000 +0200
@@ -23,7 +23,7 @@
export PROLOG = prolog
-
+export CXX=@CXX@
.PHONY: all
all: objects
diff -ur qp9.5.orig/src/Makefile.in qp9.5/src/Makefile.in
--- qp9.5.orig/src/Makefile.in 2014-11-17 06:46:22.000000000 +0100
+++ qp9.5/src/Makefile.in 2015-05-03 11:29:52.000000000 +0200
@@ -40,7 +40,7 @@
#export DEBUGGING=
-export CXXFLAGS = @GCC_ALIAS_FLAG@ -Wall -D_GNU_SOURCE=1 $(OPTIMISATION) @DEBUGGING@ @GCCINCLUDES@ -Wno-uninitialized
+#export CXXFLAGS = @GCC_ALIAS_FLAG@ -Wall -D_GNU_SOURCE=1 $(OPTIMISATION) @DEBUGGING@ @GCCINCLUDES@ -Wno-uninitialized
export QACXXFLAGS = -Wall -D_GNU_SOURCE=1 @DEBUGGING@ @GCCINCLUDES@ -Wno-uninitialized
.PHONY: all
@@ -79,6 +79,9 @@
# Targets
+.cc.o:
+ $(CXX) $(CXXFLAGS) @GCC_ALIAS_FLAG@ -Wall -D_GNU_SOURCE=1 @DEBUGGING@ @GCCINCLUDES@ -Wno-uninitialized -c $<
+
.PHONY: commands
commands: $(GENERATED) $(LIBRARIES) $(BIG_LIBRARY)
@$(MAKE) $(ALL_COMMANDS)

View File

@@ -1,32 +0,0 @@
diff -ur qp9.5.orig/bin/qc.in qp9.5/bin/qc.in
--- qp9.5.orig/bin/qc.in 2014-11-17 06:45:59.000000000 +0100
+++ qp9.5/bin/qc.in 2015-05-03 11:31:54.000000000 +0200
@@ -27,13 +27,13 @@
##############################
-preprocess='@QPHOME@/bin/qppp'
-expand='@QPHOME@/bin/qg'
-qpcompile='@QPHOME@/bin/qc1'
+preprocess='qppp'
+expand='qg'
+qpcompile='qc1'
compversion='qup'
-assemble='@QPHOME@/bin/qa'
-link='@QPHOME@/bin/ql'
-execute='@QPHOME@/bin/qem'
+assemble='qa'
+link='ql'
+execute='qem'
libqofiles="@QPHOME@/prolog/compiler/*.qo @QPHOME@/prolog/library/*.qo"
##############################
diff -ur qp9.5.orig/prolog/Makefile.in qp9.5/prolog/Makefile.in
--- qp9.5.orig/prolog/Makefile.in 2006-04-06 06:01:45.000000000 +0200
+++ qp9.5/prolog/Makefile.in 2015-05-03 11:31:54.000000000 +0200
@@ -1,3 +1,5 @@
+PATH:=$(PATH):@QPHOME@/bin
+
.DEFAULT:
@$(MAKE) -C compiler $@
@$(MAKE) -C library $@

View File

@@ -1,95 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils multilib qmake-utils
MY_P=qp${PV}
DESCRIPTION="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="Qu-Prolog GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="debug doc examples pedro qt4 readline threads"
RDEPEND="
!dev-util/mpatch
!dev-util/rej
qt4? ( dev-qt/qtgui:4 )
pedro? ( net-misc/pedro )
readline? ( app-misc/rlwrap )"
DEPEND="${RDEPEND}
dev-lang/perl"
S="${WORKDIR}"/${MY_P}
src_prepare() {
epatch \
"${FILESDIR}"/${P}-portage.patch \
"${FILESDIR}"/${P}-cflags.patch \
"${FILESDIR}"/${P}-cerr-ptr.patch \
"${FILESDIR}"/${P}-gcc.patch
}
src_configure() {
econf \
--libdir=/usr/$(get_libdir) \
$(use_enable debug) \
$(use_enable threads multiple-threads)
if use qt4; then
cd "${S}"/src/xqp || die
eqmake4 xqp.pro
fi
}
src_compile() {
emake
if use qt4; then
cd "${S}"/src/xqp || die
emake
fi
}
src_install() {
sed \
-e "s|${S}|/usr/$(get_libdir)/qu-prolog|g" \
-i bin/qc bin/qc1.qup bin/qecat bin/qg bin/qp || die
dobin bin/{qa,qdeal,qem,ql,qc,qc1.qup,qecat,qg,qp,qppp,kq}
use qt4 && dobin src/xqp/xqp
insinto /usr/$(get_libdir)/${PN}/bin
doins bin/rl_commands
doins bin/{qc1.qup,qecat,qg,qp}.qx
insinto /usr/$(get_libdir)/${PN}/library
doins prolog/library/*.qo
insinto /usr/$(get_libdir)/${PN}/compiler
doins prolog/compiler/*.qo
doman doc/man/man1/*.1
dodoc README
if use doc ; then
docinto reference-manual
dodoc doc/manual/*.html
docinto user-guide
dodoc doc/user/main.pdf
fi
if use examples ; then
insinto /usr/share/doc/${PF}/examples
doins examples/*.ql
docinto examples
newdoc examples/README README.examples
fi
}

View File

@@ -1,102 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=2
inherit eutils multilib qmake-utils
MY_P=qp${PV}
DESCRIPTION="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="Qu-Prolog GPL-2+"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE="debug doc examples pedro qt4 readline threads"
RDEPEND="
!dev-util/mpatch
!dev-util/rej
qt4? ( dev-qt/qtgui:4 )
pedro? ( net-misc/pedro )
readline? ( app-misc/rlwrap )"
DEPEND="${RDEPEND}
dev-lang/perl"
S="${WORKDIR}"/${MY_P}
src_prepare() {
epatch \
"${FILESDIR}"/${P}-portage.patch \
"${FILESDIR}"/${P}-cflags.patch \
"${FILESDIR}"/${P}-cerr-ptr.patch \
"${FILESDIR}"/${P}-gcc.patch
}
src_configure() {
econf \
--libdir=/usr/$(get_libdir) \
$(use_enable debug) \
$(use_enable threads multiple-threads)
if use qt4; then
cd "${S}"/src/xqp || die
eqmake4 xqp.pro
fi
}
src_compile() {
emake || die "emake failed"
if use qt4; then
cd "${S}"/src/xqp || die
emake || die "emake xqp failed"
fi
}
src_install() {
sed -i -e "s|${S}|/usr/$(get_libdir)/qu-prolog|g" \
bin/qc bin/qc1.qup bin/qecat bin/qg bin/qp || die
dobin bin/qa bin/qdeal bin/qem bin/ql || die
dobin bin/qc bin/qc1.qup bin/qecat bin/qg bin/qp bin/qppp || die
dobin bin/kq || die
if use qt4; then
dobin src/xqp/xqp || die
fi
insinto /usr/$(get_libdir)/${PN}/bin
doins bin/rl_commands
doins bin/qc1.qup.qx \
bin/qecat.qx \
bin/qg.qx \
bin/qp.qx || die
insinto /usr/$(get_libdir)/${PN}/library
doins prolog/library/*.qo || die
insinto /usr/$(get_libdir)/${PN}/compiler
doins prolog/compiler/*.qo || die
doman doc/man/man1/*.1 || die
dodoc README || die
if use doc ; then
docinto reference-manual
dodoc doc/manual/*.html || die
docinto user-guide
dodoc doc/user/main.pdf || die
fi
if use examples ; then
insinto /usr/share/doc/${PF}/examples
doins examples/*.ql || die
docinto examples
dodoc examples/README || die
fi
}

View File

@@ -1,93 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils multilib qmake-utils
MY_P=qp${PV}
DESCRIPTION="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="Qu-Prolog GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="debug doc examples pedro qt4 readline threads"
RDEPEND="
!dev-util/mpatch
!dev-util/rej
qt4? ( dev-qt/qtgui:4 )
pedro? ( net-misc/pedro )
readline? ( app-misc/rlwrap )"
DEPEND="${RDEPEND}
dev-lang/perl"
S="${WORKDIR}"/${MY_P}
src_prepare() {
epatch \
"${FILESDIR}"/${P}-portage.patch \
"${FILESDIR}"/${P}-cflags.patch
}
src_configure() {
econf \
--libdir=/usr/$(get_libdir) \
$(use_enable debug) \
$(use_enable threads multiple-threads)
if use qt4; then
cd "${S}"/src/xqp || die
eqmake4 xqp.pro
fi
}
src_compile() {
emake
if use qt4; then
cd "${S}"/src/xqp || die
emake
fi
}
src_install() {
sed \
-e "s|${S}|/usr/$(get_libdir)/qu-prolog|g" \
-i bin/qc bin/qc1.qup bin/qecat bin/qg bin/qp || die
dobin bin/{qa,qdeal,qem,ql,qc,qc1.qup,qecat,qg,qp,qppp,kq}
use qt4 && dobin src/xqp/xqp
insinto /usr/$(get_libdir)/${PN}/bin
doins bin/rl_commands
doins bin/{qc1.qup,qecat,qg,qp}.qx
insinto /usr/$(get_libdir)/${PN}/library
doins prolog/library/*.qo
insinto /usr/$(get_libdir)/${PN}/compiler
doins prolog/compiler/*.qo
doman doc/man/man1/*.1
dodoc README
if use doc ; then
docinto reference-manual
dodoc doc/manual/*.html
docinto user-guide
dodoc doc/user/main.pdf
fi
if use examples ; then
insinto /usr/share/doc/${PF}/examples
doins examples/*.ql
docinto examples
newdoc examples/README README.examples
fi
}

View File

@@ -1,90 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils multilib qmake-utils
MY_P=qp${PV}
DESCRIPTION="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="Qu-Prolog GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="debug doc examples pedro qt4 readline threads"
RDEPEND="
!dev-util/mpatch
!dev-util/rej
qt4? ( dev-qt/qtgui:4 )
pedro? ( net-misc/pedro )
readline? ( app-misc/rlwrap )"
DEPEND="${RDEPEND}
dev-lang/perl"
S="${WORKDIR}"/${MY_P}
src_configure() {
econf \
--libdir=/usr/$(get_libdir) \
$(use_enable debug) \
$(use_enable threads multiple-threads)
if use qt4; then
cd "${S}"/src/xqp || die
eqmake4 xqp.pro
fi
}
src_compile() {
emake OPTIMISATION="${CXXFLAGS}"
if use qt4; then
cd "${S}"/src/xqp || die
emake
fi
}
src_install() {
sed \
-e "s|${S}|/usr/$(get_libdir)/qu-prolog|g" \
-i bin/qc bin/qc1.qup bin/qecat bin/qg bin/qp || die
dobin bin/{qc,qecat,qp,kq}
into /usr/$(get_libdir)/${PN}
dobin bin/{qa,qc1.qup,qdeal,qem,qg,ql,qppp}
use qt4 && dobin src/xqp/xqp
insinto /usr/$(get_libdir)/${PN}/bin
doins bin/rl_commands
doins bin/{qc1.qup,qecat,qg,qp}.qx
insinto /usr/$(get_libdir)/${PN}/library
doins prolog/library/*.qo
insinto /usr/$(get_libdir)/${PN}/compiler
doins prolog/compiler/*.qo
doman doc/man/man1/*.1
dodoc README
if use doc ; then
docinto reference-manual
dodoc doc/manual/*.html
docinto user-guide
dodoc doc/user/main.pdf
fi
if use examples ; then
insinto /usr/share/doc/${PF}/examples
doins examples/*.ql
docinto examples
newdoc examples/README README.examples
fi
}

View File

@@ -1,90 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils multilib qmake-utils
MY_P=qp${PV}
DESCRIPTION="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="Qu-Prolog GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="debug doc examples pedro qt4 readline threads"
RDEPEND="
!dev-util/mpatch
!dev-util/rej
qt4? ( dev-qt/qtgui:4 )
pedro? ( net-misc/pedro )
readline? ( app-misc/rlwrap )"
DEPEND="${RDEPEND}
dev-lang/perl"
S="${WORKDIR}"/${MY_P}
src_configure() {
econf \
--libdir=/usr/$(get_libdir) \
$(use_enable debug) \
$(use_enable threads multiple-threads)
if use qt4; then
cd "${S}"/src/xqp || die
eqmake4 xqp.pro
fi
}
src_compile() {
emake OPTIMISATION="${CXXFLAGS}"
if use qt4; then
cd "${S}"/src/xqp || die
emake
fi
}
src_install() {
sed \
-e "s|${S}|/usr/$(get_libdir)/qu-prolog|g" \
-i bin/qc bin/qc1.qup bin/qecat bin/qg bin/qp || die
dobin bin/{qc,qecat,qp,kq}
into /usr/$(get_libdir)/${PN}
dobin bin/{qa,qc1.qup,qdeal,qem,qg,ql,qppp}
use qt4 && dobin src/xqp/xqp
insinto /usr/$(get_libdir)/${PN}/bin
doins bin/rl_commands
doins bin/{qc1.qup,qecat,qg,qp}.qx
insinto /usr/$(get_libdir)/${PN}/library
doins prolog/library/*.qo
insinto /usr/$(get_libdir)/${PN}/compiler
doins prolog/compiler/*.qo
doman doc/man/man1/*.1
dodoc README
if use doc ; then
docinto reference-manual
dodoc doc/manual/*.html
docinto user-guide
dodoc doc/user/main.pdf
fi
if use examples ; then
insinto /usr/share/doc/${PF}/examples
doins examples/*.ql
docinto examples
newdoc examples/README README.examples
fi
}