summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeri Harris <keri@gentoo.org>2010-12-04 00:10:01 +0000
committerKeri Harris <keri@gentoo.org>2010-12-04 00:10:01 +0000
commitfe1b51b36510122861a9b37096d4601c9c12952b (patch)
treedd1f1f49048ad5bd1c4d656e8a68500bbaa74e51 /dev-lang/qu-prolog
parentVersion bump with bugfixes and translation updates, make it work on systems w... (diff)
downloadgentoo-2-fe1b51b36510122861a9b37096d4601c9c12952b.tar.gz
gentoo-2-fe1b51b36510122861a9b37096d4601c9c12952b.tar.bz2
gentoo-2-fe1b51b36510122861a9b37096d4601c9c12952b.zip
Version bump
(Portage version: 2.1.9.24/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-8.12-cerr-ptr.patch38
-rw-r--r--dev-lang/qu-prolog/files/qu-prolog-8.12-cflags.patch21
-rw-r--r--dev-lang/qu-prolog/files/qu-prolog-8.12-portage.patch30
-rw-r--r--dev-lang/qu-prolog/qu-prolog-8.12.ebuild101
5 files changed, 198 insertions, 1 deletions
diff --git a/dev-lang/qu-prolog/ChangeLog b/dev-lang/qu-prolog/ChangeLog
index a3dbb4ef48a3..41d147a41a5d 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-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/qu-prolog/ChangeLog,v 1.74 2010/10/29 20:18:06 keri Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/qu-prolog/ChangeLog,v 1.75 2010/12/04 00:10:01 keri Exp $
+
+*qu-prolog-8.12 (04 Dec 2010)
+
+ 04 Dec 2010; <keri@gentoo.org> +qu-prolog-8.12.ebuild,
+ +files/qu-prolog-8.12-cerr-ptr.patch, +files/qu-prolog-8.12-cflags.patch,
+ +files/qu-prolog-8.12-portage.patch:
+ Version bump
29 Oct 2010; <keri@gentoo.org> qu-prolog-8.11.ebuild:
QA - add die to do... calls
diff --git a/dev-lang/qu-prolog/files/qu-prolog-8.12-cerr-ptr.patch b/dev-lang/qu-prolog/files/qu-prolog-8.12-cerr-ptr.patch
new file mode 100644
index 000000000000..c4ae00a073cd
--- /dev/null
+++ b/dev-lang/qu-prolog/files/qu-prolog-8.12-cerr-ptr.patch
@@ -0,0 +1,38 @@
+--- qp8.12.orig/src/gc.cc 2010-11-23 15:33:30.000000000 +1300
++++ qp8.12/src/gc.cc 2010-12-04 12:37:04.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;
+--- qp8.12.orig/src/objects.h 2010-11-23 15:33:30.000000000 +1300
++++ qp8.12/src/objects.h 2010-12-02 20:40:53.000000000 +1300
+@@ -1234,18 +1234,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
diff --git a/dev-lang/qu-prolog/files/qu-prolog-8.12-cflags.patch b/dev-lang/qu-prolog/files/qu-prolog-8.12-cflags.patch
new file mode 100644
index 000000000000..3cd2ce5536e4
--- /dev/null
+++ b/dev-lang/qu-prolog/files/qu-prolog-8.12-cflags.patch
@@ -0,0 +1,21 @@
+--- qp8.12.orig/src/Makefile.in 2010-11-23 15:33:42.000000000 +1300
++++ qp8.12/src/Makefile.in 2010-12-04 07:15:27.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-8.12-portage.patch b/dev-lang/qu-prolog/files/qu-prolog-8.12-portage.patch
new file mode 100644
index 000000000000..bb9d48f8c1b8
--- /dev/null
+++ b/dev-lang/qu-prolog/files/qu-prolog-8.12-portage.patch
@@ -0,0 +1,30 @@
+--- qp8.12.orig/bin/qc.in 2010-11-23 15:33:14.000000000 +1300
++++ qp8.12/bin/qc.in 2010-12-04 11:16:44.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"
+
+ ##############################
+--- qp8.12.orig/prolog/Makefile.in 2006-04-06 16:01:45.000000000 +1200
++++ qp8.12/prolog/Makefile.in 2010-12-04 10:57:09.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-8.12.ebuild b/dev-lang/qu-prolog/qu-prolog-8.12.ebuild
new file mode 100644
index 000000000000..77082972a3e0
--- /dev/null
+++ b/dev-lang/qu-prolog/qu-prolog-8.12.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/qu-prolog/qu-prolog-8.12.ebuild,v 1.1 2010/12/04 00:10:01 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 ~sparc ~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
+}