summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeri Harris <keri@gentoo.org>2011-11-18 21:00:02 +0000
committerKeri Harris <keri@gentoo.org>2011-11-18 21:00:02 +0000
commitd09a08a092c53c239917394716e824c798aef97d (patch)
tree9adf9e59342d9e965e21e4fe55f36c4e2e1dc917 /dev-lang/qu-prolog
parentAdded README explaining the deprecation of old hardened/arches profiles (diff)
downloadgentoo-2-d09a08a092c53c239917394716e824c798aef97d.tar.gz
gentoo-2-d09a08a092c53c239917394716e824c798aef97d.tar.bz2
gentoo-2-d09a08a092c53c239917394716e824c798aef97d.zip
Version bump
(Portage version: 2.1.10.11/cvs/Linux x86_64)
Diffstat (limited to 'dev-lang/qu-prolog')
-rw-r--r--dev-lang/qu-prolog/ChangeLog9
-rw-r--r--dev-lang/qu-prolog/files/qu-prolog-9.0-cerr-ptr.patch41
-rw-r--r--dev-lang/qu-prolog/files/qu-prolog-9.0-cflags.patch22
-rw-r--r--dev-lang/qu-prolog/files/qu-prolog-9.0-portage.patch32
-rw-r--r--dev-lang/qu-prolog/qu-prolog-9.0.ebuild101
5 files changed, 204 insertions, 1 deletions
diff --git a/dev-lang/qu-prolog/ChangeLog b/dev-lang/qu-prolog/ChangeLog
index 65786509d802..f53b13e5fbbe 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-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/qu-prolog/ChangeLog,v 1.81 2011/06/24 07:58:25 keri Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/qu-prolog/ChangeLog,v 1.82 2011/11/18 21:00:02 keri Exp $
+
+*qu-prolog-9.0 (18 Nov 2011)
+
+ 18 Nov 2011; <keri@gentoo.org> +qu-prolog-9.0.ebuild,
+ +files/qu-prolog-9.0-cerr-ptr.patch, +files/qu-prolog-9.0-cflags.patch,
+ +files/qu-prolog-9.0-portage.patch:
+ Version bump
24 Jun 2011; <keri@gentoo.org> -files/qu-prolog-8.11-portage.patch,
-files/qu-prolog-8.11-print-atom.patch:
diff --git a/dev-lang/qu-prolog/files/qu-prolog-9.0-cerr-ptr.patch b/dev-lang/qu-prolog/files/qu-prolog-9.0-cerr-ptr.patch
new file mode 100644
index 000000000000..9f552841686e
--- /dev/null
+++ b/dev-lang/qu-prolog/files/qu-prolog-9.0-cerr-ptr.patch
@@ -0,0 +1,41 @@
+diff -ur qp9.0.orig/src/gc.cc qp9.0/src/gc.cc
+--- qp9.0.orig/src/gc.cc 2011-07-14 14:48:03.000000000 +1200
++++ qp9.0/src/gc.cc 2011-11-19 09:55:20.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.0.orig/src/objects.h qp9.0/src/objects.h
+--- qp9.0.orig/src/objects.h 2011-07-14 14:48:03.000000000 +1200
++++ qp9.0/src/objects.h 2011-11-19 09:55:20.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
+Only in qp9.0/src: objects.h.orig
diff --git a/dev-lang/qu-prolog/files/qu-prolog-9.0-cflags.patch b/dev-lang/qu-prolog/files/qu-prolog-9.0-cflags.patch
new file mode 100644
index 000000000000..2f71d0da9f48
--- /dev/null
+++ b/dev-lang/qu-prolog/files/qu-prolog-9.0-cflags.patch
@@ -0,0 +1,22 @@
+diff -ur qp9.0.orig/src/Makefile.in qp9.0/src/Makefile.in
+--- qp9.0.orig/src/Makefile.in 2011-07-14 14:48:14.000000000 +1200
++++ qp9.0/src/Makefile.in 2011-11-19 09:51:48.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)
diff --git a/dev-lang/qu-prolog/files/qu-prolog-9.0-portage.patch b/dev-lang/qu-prolog/files/qu-prolog-9.0-portage.patch
new file mode 100644
index 000000000000..b32ad2400cf8
--- /dev/null
+++ b/dev-lang/qu-prolog/files/qu-prolog-9.0-portage.patch
@@ -0,0 +1,32 @@
+diff -ur qp9.0.orig/bin/qc.in qp9.0/bin/qc.in
+--- qp9.0.orig/bin/qc.in 2011-07-14 14:47:48.000000000 +1200
++++ qp9.0/bin/qc.in 2011-11-19 09:50:05.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.0.orig/prolog/Makefile.in qp9.0/prolog/Makefile.in
+--- qp9.0.orig/prolog/Makefile.in 2006-04-06 16:01:45.000000000 +1200
++++ qp9.0/prolog/Makefile.in 2011-11-19 09:50:05.000000000 +1300
+@@ -1,3 +1,5 @@
++PATH:=$(PATH):@QPHOME@/bin
++
+ .DEFAULT:
+ @$(MAKE) -C compiler $@
+ @$(MAKE) -C library $@
diff --git a/dev-lang/qu-prolog/qu-prolog-9.0.ebuild b/dev-lang/qu-prolog/qu-prolog-9.0.ebuild
new file mode 100644
index 000000000000..0f8eca94359d
--- /dev/null
+++ b/dev-lang/qu-prolog/qu-prolog-9.0.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/qu-prolog/qu-prolog-9.0.ebuild,v 1.1 2011/11/18 21:00:02 keri Exp $
+
+EAPI=2
+
+inherit eutils qt4-r2
+
+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="~amd64 ~ppc ~x86"
+IUSE="debug doc examples pedro qt4 readline threads"
+
+RDEPEND="!dev-util/mpatch
+ !dev-util/rej
+ qt4? ( x11-libs/qt-gui: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
+ epatch "${FILESDIR}"/${P}-cflags.patch
+ epatch "${FILESDIR}"/${P}-cerr-ptr.patch
+}
+
+src_configure() {
+ econf \
+ --libdir=/usr/$(get_libdir) \
+ $(use_enable debug) \
+ $(use_enable threads multiple-threads)
+
+ if use qt4; then
+ cd "${S}"/src/xqp
+ eqmake4 xqp.pro
+ fi
+}
+
+src_compile() {
+ emake || die "emake failed"
+
+ if use qt4; then
+ cd "${S}"/src/xqp
+ 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
+
+ exeinto /usr/bin
+ doexe bin/qa bin/qdeal bin/qem bin/ql || die
+ doexe bin/qc bin/qc1.qup bin/qecat bin/qg bin/qp bin/qppp || die
+ doexe bin/kq || die
+
+ if use qt4; then
+ doexe 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
+}