diff options
author | Keri Harris <keri@gentoo.org> | 2011-11-19 18:20:30 +0000 |
---|---|---|
committer | Keri Harris <keri@gentoo.org> | 2011-11-19 18:20:30 +0000 |
commit | 2f6163dcc958e39879ccfd5f14485aa09c04655f (patch) | |
tree | a569df4015337670020202949e4f78d601d109ea /dev-lang/qu-prolog | |
parent | needs python-2 (bug #390223) (diff) | |
download | gentoo-2-2f6163dcc958e39879ccfd5f14485aa09c04655f.tar.gz gentoo-2-2f6163dcc958e39879ccfd5f14485aa09c04655f.tar.bz2 gentoo-2-2f6163dcc958e39879ccfd5f14485aa09c04655f.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/ChangeLog | 9 | ||||
-rw-r--r-- | dev-lang/qu-prolog/files/qu-prolog-9.1-cerr-ptr.patch | 40 | ||||
-rw-r--r-- | dev-lang/qu-prolog/files/qu-prolog-9.1-cflags.patch | 21 | ||||
-rw-r--r-- | dev-lang/qu-prolog/files/qu-prolog-9.1-portage.patch | 32 | ||||
-rw-r--r-- | dev-lang/qu-prolog/qu-prolog-9.1.ebuild | 101 |
5 files changed, 202 insertions, 1 deletions
diff --git a/dev-lang/qu-prolog/ChangeLog b/dev-lang/qu-prolog/ChangeLog index f53b13e5fbbe..85060e303b42 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.82 2011/11/18 21:00:02 keri Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/qu-prolog/ChangeLog,v 1.83 2011/11/19 18:20:30 keri Exp $ + +*qu-prolog-9.1 (19 Nov 2011) + + 19 Nov 2011; <keri@gentoo.org> +qu-prolog-9.1.ebuild, + +files/qu-prolog-9.1-cerr-ptr.patch, +files/qu-prolog-9.1-cflags.patch, + +files/qu-prolog-9.1-portage.patch: + Version bump *qu-prolog-9.0 (18 Nov 2011) diff --git a/dev-lang/qu-prolog/files/qu-prolog-9.1-cerr-ptr.patch b/dev-lang/qu-prolog/files/qu-prolog-9.1-cerr-ptr.patch new file mode 100644 index 000000000000..1fde09843e66 --- /dev/null +++ b/dev-lang/qu-prolog/files/qu-prolog-9.1-cerr-ptr.patch @@ -0,0 +1,40 @@ +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 diff --git a/dev-lang/qu-prolog/files/qu-prolog-9.1-cflags.patch b/dev-lang/qu-prolog/files/qu-prolog-9.1-cflags.patch new file mode 100644 index 000000000000..606dbd9a6abb --- /dev/null +++ b/dev-lang/qu-prolog/files/qu-prolog-9.1-cflags.patch @@ -0,0 +1,21 @@ +--- qp9.1.orig/src/Makefile.in 2011-08-23 11:17:54.000000000 +1200 ++++ qp9.1/src/Makefile.in 2011-11-20 07:15:06.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.1-portage.patch b/dev-lang/qu-prolog/files/qu-prolog-9.1-portage.patch new file mode 100644 index 000000000000..4a1aa23607ac --- /dev/null +++ b/dev-lang/qu-prolog/files/qu-prolog-9.1-portage.patch @@ -0,0 +1,32 @@ +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 $@ diff --git a/dev-lang/qu-prolog/qu-prolog-9.1.ebuild b/dev-lang/qu-prolog/qu-prolog-9.1.ebuild new file mode 100644 index 000000000000..d99957809144 --- /dev/null +++ b/dev-lang/qu-prolog/qu-prolog-9.1.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.1.ebuild,v 1.1 2011/11/19 18:20:30 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 +} |