diff options
author | Keri Harris <keri@gentoo.org> | 2006-05-26 23:49:30 +0000 |
---|---|---|
committer | Keri Harris <keri@gentoo.org> | 2006-05-26 23:49:30 +0000 |
commit | f33068d89fbfe42fb0aec9257894249e04a76ca7 (patch) | |
tree | 456549aa533425b89b03ea5a75000f82fabc87c0 /dev-lang/qu-prolog | |
parent | stable on amd64 (diff) | |
download | historical-f33068d89fbfe42fb0aec9257894249e04a76ca7.tar.gz historical-f33068d89fbfe42fb0aec9257894249e04a76ca7.tar.bz2 historical-f33068d89fbfe42fb0aec9257894249e04a76ca7.zip |
Add debug support to prolog engine.
Package-Manager: portage-2.1_rc1-r3
Diffstat (limited to 'dev-lang/qu-prolog')
-rw-r--r-- | dev-lang/qu-prolog/ChangeLog | 8 | ||||
-rw-r--r-- | dev-lang/qu-prolog/Manifest | 19 | ||||
-rw-r--r-- | dev-lang/qu-prolog/files/digest-qu-prolog-7.2-r1 | 3 | ||||
-rw-r--r-- | dev-lang/qu-prolog/files/qu-prolog-7.2-debug.patch | 42 | ||||
-rw-r--r-- | dev-lang/qu-prolog/qu-prolog-7.2-r1.ebuild | 78 |
5 files changed, 145 insertions, 5 deletions
diff --git a/dev-lang/qu-prolog/ChangeLog b/dev-lang/qu-prolog/ChangeLog index 609fdec8e29a..e83fbe7bb2b5 100644 --- a/dev-lang/qu-prolog/ChangeLog +++ b/dev-lang/qu-prolog/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-lang/qu-prolog # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/qu-prolog/ChangeLog,v 1.6 2006/05/26 09:49:36 keri Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/qu-prolog/ChangeLog,v 1.7 2006/05/26 23:49:30 keri Exp $ + +*qu-prolog-7.2-r1 (26 May 2006) + + 26 May 2006; Keri Harris <keri@gentoo.org> + +files/qu-prolog-7.2-debug.patch, +qu-prolog-7.2-r1.ebuild: + Add debug support to prolog engine. 26 May 2006; Keri Harris <keri@gentoo.org> qu-prolog-7.1.ebuild, qu-prolog-7.2.ebuild: diff --git a/dev-lang/qu-prolog/Manifest b/dev-lang/qu-prolog/Manifest index afb41a77c5d1..cadf01fa3616 100644 --- a/dev-lang/qu-prolog/Manifest +++ b/dev-lang/qu-prolog/Manifest @@ -14,6 +14,10 @@ AUX qu-prolog-7.2-CXXFLAGS.patch 699 RMD160 a21cfa84337e98e33e324d3b2dc0dfa3fb6a MD5 151e06fea606335d5579458e988a3282 files/qu-prolog-7.2-CXXFLAGS.patch 699 RMD160 a21cfa84337e98e33e324d3b2dc0dfa3fb6a0629 files/qu-prolog-7.2-CXXFLAGS.patch 699 SHA256 3255939159796dac97a5cc080c94b3eb19afd85a797ca9680fea4a151dff2d79 files/qu-prolog-7.2-CXXFLAGS.patch 699 +AUX qu-prolog-7.2-debug.patch 1388 RMD160 fc0900bc6e494810ad4dbea6a1927c19941535ce SHA1 7976a89ae3cc54d6e5ee515e193efdc421a9e195 SHA256 65e51651c98cf797156d52a7eb751559776a322e681e554efa1627cf1279666d size 1388 +MD5 ea4a900dac8abd94aca541634a7e7bdd files/qu-prolog-7.2-debug.patch 1388 +RMD160 fc0900bc6e494810ad4dbea6a1927c19941535ce files/qu-prolog-7.2-debug.patch 1388 +SHA256 65e51651c98cf797156d52a7eb751559776a322e681e554efa1627cf1279666d files/qu-prolog-7.2-debug.patch 1388 AUX qu-prolog-7.2-gcc4.patch 2261 RMD160 e8d0d9436fad05e38cf55eb1d6d6a0c56d5e9589 SHA1 eefa944803210d6c6b403e39a3d9511b7ee08620 SHA256 545547ac55fc661574d9f17b951374f298c32f4e23e4eeddf5ecc0fe98e02a97 size 2261 MD5 19e844e7edce216141fa6b4237c1ec97 files/qu-prolog-7.2-gcc4.patch 2261 RMD160 e8d0d9436fad05e38cf55eb1d6d6a0c56d5e9589 files/qu-prolog-7.2-gcc4.patch 2261 @@ -28,14 +32,18 @@ EBUILD qu-prolog-7.1.ebuild 1741 RMD160 d624ee85f1ead566cdc595f57f6ef322edd6c7f5 MD5 9d1e33639ecb9cc5811e583a72afcd5f qu-prolog-7.1.ebuild 1741 RMD160 d624ee85f1ead566cdc595f57f6ef322edd6c7f5 qu-prolog-7.1.ebuild 1741 SHA256 487b4a63601e255b896dc2a54c14efde286a8654d230dd9f01e9b6ee80f5ed7d qu-prolog-7.1.ebuild 1741 +EBUILD qu-prolog-7.2-r1.ebuild 1853 RMD160 85bb4ab75ab8f881f8678cedc14236feec865db6 SHA1 0bf46a7be748fb3434616ba74021e98a92d6d5e4 SHA256 7a175326505cebde18503f5f398e03d72a9843344c6d8aad238d9b7ee9d86c33 size 1853 +MD5 a205bbec28d64948a1c07c593ec38780 qu-prolog-7.2-r1.ebuild 1853 +RMD160 85bb4ab75ab8f881f8678cedc14236feec865db6 qu-prolog-7.2-r1.ebuild 1853 +SHA256 7a175326505cebde18503f5f398e03d72a9843344c6d8aad238d9b7ee9d86c33 qu-prolog-7.2-r1.ebuild 1853 EBUILD qu-prolog-7.2.ebuild 1741 RMD160 c124eb42a6b3fd59bdc837f4bd6247815a320b29 SHA1 977c43db7698965886fbda7f37df9cf2bba56421 SHA256 3d6104125093316e9b75392adc6dfa92906f161908a9df607eefc51d5975ea65 size 1741 MD5 c04bbe70e85447bb575c14eba256d397 qu-prolog-7.2.ebuild 1741 RMD160 c124eb42a6b3fd59bdc837f4bd6247815a320b29 qu-prolog-7.2.ebuild 1741 SHA256 3d6104125093316e9b75392adc6dfa92906f161908a9df607eefc51d5975ea65 qu-prolog-7.2.ebuild 1741 -MISC ChangeLog 1079 RMD160 7e421e0444320669ff5c06635e5cfa821af561ad SHA1 61b40953b8e2f08454cd422d8a60404b2b2fafbc SHA256 829cee5442e8d71ed1545cd15be9ed3c08b5b09725d87dc76c9feb371cd16634 size 1079 -MD5 19a5855aa1a9fdaa6af828c988c88b62 ChangeLog 1079 -RMD160 7e421e0444320669ff5c06635e5cfa821af561ad ChangeLog 1079 -SHA256 829cee5442e8d71ed1545cd15be9ed3c08b5b09725d87dc76c9feb371cd16634 ChangeLog 1079 +MISC ChangeLog 1258 RMD160 67aa1dcee7a4e8e86ca0b6dcef23496367e2a554 SHA1 2de782bb988d68893d24e6247a1304ea09e4e2ba SHA256 ec12c75229d2a9ce0335c08b003d235732fcc9b6b12f55d901de5c957e5c3cd7 size 1258 +MD5 65e6cb80d464bdaef9d35e9d443de6e8 ChangeLog 1258 +RMD160 67aa1dcee7a4e8e86ca0b6dcef23496367e2a554 ChangeLog 1258 +SHA256 ec12c75229d2a9ce0335c08b003d235732fcc9b6b12f55d901de5c957e5c3cd7 ChangeLog 1258 MISC metadata.xml 159 RMD160 38d27fd1c5faabedefa5507dfd83cb4c952fbc8c SHA1 52b92682cf41e53e71bf432537a16215bd9546b1 SHA256 851bf218a4283a1d8ea6ef98af0119a40eaa78bfaaec49c2f3440437f52889ba size 159 MD5 9187f53634e60ab7eb2ac7e98b0b19f7 metadata.xml 159 RMD160 38d27fd1c5faabedefa5507dfd83cb4c952fbc8c metadata.xml 159 @@ -46,3 +54,6 @@ SHA256 de55cf44cf2fb373bfb2820ec506998c4f596d3b82841abf5f2fef90456e69c9 files/di MD5 e31aa744ae84c71d73817369c173db21 files/digest-qu-prolog-7.2 220 RMD160 8339fea44e54a0f86d02d71244d527069b776f8f files/digest-qu-prolog-7.2 220 SHA256 4bb5e3a2a13062e2baac92791d74495507361b6dcde31f344932cf6c538c5446 files/digest-qu-prolog-7.2 220 +MD5 e31aa744ae84c71d73817369c173db21 files/digest-qu-prolog-7.2-r1 220 +RMD160 8339fea44e54a0f86d02d71244d527069b776f8f files/digest-qu-prolog-7.2-r1 220 +SHA256 4bb5e3a2a13062e2baac92791d74495507361b6dcde31f344932cf6c538c5446 files/digest-qu-prolog-7.2-r1 220 diff --git a/dev-lang/qu-prolog/files/digest-qu-prolog-7.2-r1 b/dev-lang/qu-prolog/files/digest-qu-prolog-7.2-r1 new file mode 100644 index 000000000000..7b4a6420b286 --- /dev/null +++ b/dev-lang/qu-prolog/files/digest-qu-prolog-7.2-r1 @@ -0,0 +1,3 @@ +MD5 09f3480df9e2c955c188a7d9ff759b51 qp7.2.tar.gz 1278184 +RMD160 aa4c902b2804d727b1886e9d3da405e0fffbe819 qp7.2.tar.gz 1278184 +SHA256 49fdd81fb6aa31c29038671a347cfae9de0371ba8663e2d978cb7c8d1fc21aa9 qp7.2.tar.gz 1278184 diff --git a/dev-lang/qu-prolog/files/qu-prolog-7.2-debug.patch b/dev-lang/qu-prolog/files/qu-prolog-7.2-debug.patch new file mode 100644 index 000000000000..0b5ddc8c20d4 --- /dev/null +++ b/dev-lang/qu-prolog/files/qu-prolog-7.2-debug.patch @@ -0,0 +1,42 @@ +--- qp7.2.orig/src/io.cc 2006-04-06 14:14:01.000000000 +1200 ++++ qp7.2/src/io.cc 2006-05-27 11:33:54.000000000 +1200 +@@ -941,8 +941,7 @@ + } + + #ifdef DEBUG_IO +- cerr.form("%s result = %ld FD_ISSET(%ld, ...) = %ld\n", +- __FUNCTION__, result, fd, FD_ISSET(fd, &fds)); ++ cerr << __FUNCTION__ << " result = " << result << "FD_ISSET(" << fd << ", ...) = " << FD_ISSET(fd, &fds) << endl; + #endif + #ifdef WIN32 + if (result == 0 || result == 128) +--- qp7.2.orig/src/thread_escapes.cc 2006-04-06 14:14:02.000000000 +1200 ++++ qp7.2/src/thread_escapes.cc 2006-05-27 11:30:01.000000000 +1200 +@@ -220,8 +220,7 @@ + thread_table->IncLive(); + + #ifdef DEBUG_MT +- printf("%s Thread %ld, %ld now live\n", +- __FUNCTION__, thread->TInfo().ID(), thread_table->Live()); ++ cout << __FUNCTION__ << " Thread " << thread->TInfo().ID() << ", " << thread_table->Live() << " now live" << endl; + // heap.DisplayTerm(cerr, *atoms, argG); + #endif + +@@ -544,7 +543,7 @@ + Condition(EXITED); + + #ifdef DEBUG_MT +- cerr.form("%s %ld\n", __FUNCTION__, TInfo().ID()); ++ cerr << __FUNCTION__ << " " << TInfo().ID() << endl; + #endif + + if (TInfo().SymbolSet()) +@@ -962,7 +961,7 @@ + thread->Condition(EXITED); + + #ifdef DEBUG_MT +- cerr.form("%s %ld\n", __FUNCTION__, thread->TInfo().ID()); ++ cerr << __FUNCTION__ << " " << thread->TInfo().ID(); + #endif + + if (thread->TInfo().SymbolSet()) diff --git a/dev-lang/qu-prolog/qu-prolog-7.2-r1.ebuild b/dev-lang/qu-prolog/qu-prolog-7.2-r1.ebuild new file mode 100644 index 000000000000..05f046eef346 --- /dev/null +++ b/dev-lang/qu-prolog/qu-prolog-7.2-r1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/qu-prolog/qu-prolog-7.2-r1.ebuild,v 1.1 2006/05/26 23:49:30 keri Exp $ + +inherit eutils flag-o-matic + +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="~ppc ~x86" +IUSE="debug doc qt threads" + +DEPEND="qt? ( =x11-libs/qt-3* )" + +S="${WORKDIR}"/${MY_P} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-portage.patch + epatch "${FILESDIR}"/${P}-gcc4.patch + epatch "${FILESDIR}"/${P}-debug.patch + + sed -i -e "s:DEBUGGING=$:DEBUGGING=\"-DDEBUG_BLOCK -DDEBUG_IO -DDEBUG_MT -DDEBUG_RETRY -DDEBUG_SCHED -DDEBUG_TIMEOUT\":" \ + -e "s:head -1:head -n 1:" configure +} + +src_compile() { + econf \ + $(use_enable debug) \ + $(use_enable threads multiple-threads) \ + || die "econf failed" + emake || die "emake failed" + + if use qt ; then + cd "${S}"/src/xqp + "${QTDIR}"/bin/qmake || die "qmake xqp failed" + emake || die "emake xqp failed" + fi +} + +src_install() { + exeinto /usr/bin + doexe src/qa src/qdeal src/qem src/ql + doexe bin/qc bin/qecat bin/qp bin/qppp + + use qt && doexe src/xqp/xqp + + insinto /usr/lib/${PN}/bin + doins prolog/qc1/qc1.qx \ + prolog/qecat/qecat.qx \ + prolog/qg/qg.qx \ + prolog/qp/qp.qx + + insinto /usr/lib/${PN}/library + doins prolog/library/*.qo + + insinto /usr/lib/${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.ps + docinto examples + dodoc examples/*.ql examples/README + fi +} |