diff options
author | Keri Harris <keri@gentoo.org> | 2007-11-21 06:25:29 +0000 |
---|---|---|
committer | Keri Harris <keri@gentoo.org> | 2007-11-21 06:25:29 +0000 |
commit | c179d300f31b9e86a5c76b0c8987c72c929c45ca (patch) | |
tree | 1a7dfe8b27daf3d04509d1d910149923aa836288 /dev-lang | |
parent | updated to latest upstream release, fixes bug 198954 (diff) | |
download | historical-c179d300f31b9e86a5c76b0c8987c72c929c45ca.tar.gz historical-c179d300f31b9e86a5c76b0c8987c72c929c45ca.tar.bz2 historical-c179d300f31b9e86a5c76b0c8987c72c929c45ca.zip |
Version bump
Package-Manager: portage-2.1.3.19
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/yap/ChangeLog | 12 | ||||
-rw-r--r-- | dev-lang/yap/Manifest | 52 | ||||
-rw-r--r-- | dev-lang/yap/files/digest-yap-5.1.2 | 3 | ||||
-rw-r--r-- | dev-lang/yap/files/yap-5.1.2-SONAME.patch | 11 | ||||
-rw-r--r-- | dev-lang/yap/files/yap-5.1.2-analyst.patch | 55 | ||||
-rw-r--r-- | dev-lang/yap/files/yap-5.1.2-chr.patch | 77 | ||||
-rw-r--r-- | dev-lang/yap/files/yap-5.1.2-configure.patch | 183 | ||||
-rw-r--r-- | dev-lang/yap/files/yap-5.1.2-jpl.patch | 47 | ||||
-rw-r--r-- | dev-lang/yap/files/yap-5.1.2-multilib.patch | 169 | ||||
-rw-r--r-- | dev-lang/yap/files/yap-5.1.2-parallel-make.patch | 77 | ||||
-rw-r--r-- | dev-lang/yap/files/yap-5.1.2-tabling.patch | 61 | ||||
-rw-r--r-- | dev-lang/yap/files/yap-5.1.2-tkyap.patch | 26 | ||||
-rw-r--r-- | dev-lang/yap/yap-5.1.2.ebuild | 95 |
13 files changed, 863 insertions, 5 deletions
diff --git a/dev-lang/yap/ChangeLog b/dev-lang/yap/ChangeLog index 4c4519567029..2d2a25a56a39 100644 --- a/dev-lang/yap/ChangeLog +++ b/dev-lang/yap/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for dev-lang/yap # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/yap/ChangeLog,v 1.16 2007/02/03 23:03:23 keri Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/yap/ChangeLog,v 1.17 2007/11/21 06:25:28 keri Exp $ + +*yap-5.1.2 (21 Nov 2007) + + 21 Nov 2007; keri <keri@gentoo.org> +files/yap-5.1.2-SONAME.patch, + +files/yap-5.1.2-analyst.patch, +files/yap-5.1.2-chr.patch, + +files/yap-5.1.2-configure.patch, +files/yap-5.1.2-jpl.patch, + +files/yap-5.1.2-multilib.patch, +files/yap-5.1.2-parallel-make.patch, + +files/yap-5.1.2-tabling.patch, +files/yap-5.1.2-tkyap.patch, + +yap-5.1.2.ebuild: + Version bump. 03 Feb 2007; keri <keri@gentoo.org> +files/yap-5.1.1-parallel-make.patch, yap-5.1.1.ebuild: diff --git a/dev-lang/yap/Manifest b/dev-lang/yap/Manifest index 974627779d18..d7d122e603d7 100644 --- a/dev-lang/yap/Manifest +++ b/dev-lang/yap/Manifest @@ -34,15 +34,56 @@ AUX yap-5.1.1-tkyap.patch 695 RMD160 4be6c0e2c4552c73a007388cc513372e0fd6dc67 SH MD5 284f66d723b6bc3f64adbe656b54c6b0 files/yap-5.1.1-tkyap.patch 695 RMD160 4be6c0e2c4552c73a007388cc513372e0fd6dc67 files/yap-5.1.1-tkyap.patch 695 SHA256 07c91548765f684aaacdaefcad50220e48c4d663b7a0a57afeb8d57e5dbd8004 files/yap-5.1.1-tkyap.patch 695 +AUX yap-5.1.2-SONAME.patch 353 RMD160 a41f713e2cd1938178496223132af0fd1db9b5a8 SHA1 bbf75c0bd9e3851fcf294e607f3384728c3f77ce SHA256 718fd84d868e3f49342439830500fd29ed3dbe44f8334076177802656ab8bc08 +MD5 4c6a8a18a07376aba572188b52926495 files/yap-5.1.2-SONAME.patch 353 +RMD160 a41f713e2cd1938178496223132af0fd1db9b5a8 files/yap-5.1.2-SONAME.patch 353 +SHA256 718fd84d868e3f49342439830500fd29ed3dbe44f8334076177802656ab8bc08 files/yap-5.1.2-SONAME.patch 353 +AUX yap-5.1.2-analyst.patch 1841 RMD160 9d8fffbcf71e6890a70a2ef72ea14b73c634517a SHA1 c7693944f5cc7598f180b86af3afc5872271d352 SHA256 ca8901e3de5988d0c334519e46a4b5c1f7e0cf894321ae2b4e03b992daf33cb6 +MD5 c9dbeeaf9931ae09421ea465e6427da6 files/yap-5.1.2-analyst.patch 1841 +RMD160 9d8fffbcf71e6890a70a2ef72ea14b73c634517a files/yap-5.1.2-analyst.patch 1841 +SHA256 ca8901e3de5988d0c334519e46a4b5c1f7e0cf894321ae2b4e03b992daf33cb6 files/yap-5.1.2-analyst.patch 1841 +AUX yap-5.1.2-chr.patch 3503 RMD160 e4da239ff97ea2c63ff00667fcd8a755da075440 SHA1 b3e3a53e201d5a64eb342761cd495f4cfaad9aed SHA256 b693e7100f3da9320dc1e4eb0a19539326681cc4c0323513b71cd11465531a91 +MD5 f00683c5da0d856dc545a4bfe2335d29 files/yap-5.1.2-chr.patch 3503 +RMD160 e4da239ff97ea2c63ff00667fcd8a755da075440 files/yap-5.1.2-chr.patch 3503 +SHA256 b693e7100f3da9320dc1e4eb0a19539326681cc4c0323513b71cd11465531a91 files/yap-5.1.2-chr.patch 3503 +AUX yap-5.1.2-configure.patch 5238 RMD160 6d942b10c9eab60c2b705a5023ff4f82cf0c2b59 SHA1 2699fb71d89e7be1723ff3d8dec7c64fd60adc11 SHA256 879a20285c7ca617ece6ff2e7ccd8f88fd4a0b42e568ff6f8cb5264f6b520673 +MD5 33c3014bcff49aabc6b7d0ddbc1ddce1 files/yap-5.1.2-configure.patch 5238 +RMD160 6d942b10c9eab60c2b705a5023ff4f82cf0c2b59 files/yap-5.1.2-configure.patch 5238 +SHA256 879a20285c7ca617ece6ff2e7ccd8f88fd4a0b42e568ff6f8cb5264f6b520673 files/yap-5.1.2-configure.patch 5238 +AUX yap-5.1.2-jpl.patch 1269 RMD160 461a1e841e2ee38e3a4b2bae7a6be2bb4746bfbe SHA1 2e5a97d57e053970db9f25ec0947bc2b90a6be53 SHA256 c3be49f295945fcfd8b30bbc4ded358e9ba039f5e3e60c176b2fd9a701b1662b +MD5 203887f743d55e35ca4feff21c50e5f3 files/yap-5.1.2-jpl.patch 1269 +RMD160 461a1e841e2ee38e3a4b2bae7a6be2bb4746bfbe files/yap-5.1.2-jpl.patch 1269 +SHA256 c3be49f295945fcfd8b30bbc4ded358e9ba039f5e3e60c176b2fd9a701b1662b files/yap-5.1.2-jpl.patch 1269 +AUX yap-5.1.2-multilib.patch 5361 RMD160 dbdfb8a17dcb9d8ca81bedabe2f958b27c9c1fa7 SHA1 b9eaac4813a5f0db22ba39d40025b55021ea0cea SHA256 66d36f3af2cb9ee311a8b30913f486406eb5b467e054adebb46b54531fcc944a +MD5 57078ce77d49b6ae87b7f1aa26a747e6 files/yap-5.1.2-multilib.patch 5361 +RMD160 dbdfb8a17dcb9d8ca81bedabe2f958b27c9c1fa7 files/yap-5.1.2-multilib.patch 5361 +SHA256 66d36f3af2cb9ee311a8b30913f486406eb5b467e054adebb46b54531fcc944a files/yap-5.1.2-multilib.patch 5361 +AUX yap-5.1.2-parallel-make.patch 3307 RMD160 5c1e2aa5d6b0cbee85d9b72c381f6d903e495ac2 SHA1 59504b8fd9f74ed786abbce4a96f79451e120ea3 SHA256 818964d0e5da157c4307ba646e29f8f3f1a6c453f5474926829d23b93a4c64a8 +MD5 f351647762e192617aa968fd8678ec46 files/yap-5.1.2-parallel-make.patch 3307 +RMD160 5c1e2aa5d6b0cbee85d9b72c381f6d903e495ac2 files/yap-5.1.2-parallel-make.patch 3307 +SHA256 818964d0e5da157c4307ba646e29f8f3f1a6c453f5474926829d23b93a4c64a8 files/yap-5.1.2-parallel-make.patch 3307 +AUX yap-5.1.2-tabling.patch 1728 RMD160 6288025c42ae8f0be6f03107eb893aa1cff71975 SHA1 596f1c6265ec22ba858c33a6103e3e139f5a1ce2 SHA256 49393c5d7fbad168bb8708a425eccd948b772ada3d572e227681fca5458237b4 +MD5 43ec06c831c74f09d0a19977423ed0d8 files/yap-5.1.2-tabling.patch 1728 +RMD160 6288025c42ae8f0be6f03107eb893aa1cff71975 files/yap-5.1.2-tabling.patch 1728 +SHA256 49393c5d7fbad168bb8708a425eccd948b772ada3d572e227681fca5458237b4 files/yap-5.1.2-tabling.patch 1728 +AUX yap-5.1.2-tkyap.patch 695 RMD160 96c25434fec0955c88a21170e05441b35393cd70 SHA1 c4cc7a09787c392816436f242918298064aeca49 SHA256 88a8abec0cf6fcd6e0983a32f36ea6a9f2aee80b055e43f9d3b44e76ead2c158 +MD5 5f5ea79971e89031ae491b8991672cef files/yap-5.1.2-tkyap.patch 695 +RMD160 96c25434fec0955c88a21170e05441b35393cd70 files/yap-5.1.2-tkyap.patch 695 +SHA256 88a8abec0cf6fcd6e0983a32f36ea6a9f2aee80b055e43f9d3b44e76ead2c158 files/yap-5.1.2-tkyap.patch 695 DIST Yap-5.1.1.tar.gz 3429186 RMD160 a32aec2f29e5964c302fa93fa54aa2d1dbe8defd SHA1 166c8c3199a43ae913572a3022674d821ac40b68 SHA256 cadb35cb3b7e469aa6bc6f7a819904f1f746b1e9c71f4a2af1ea254569ed522d +DIST Yap-5.1.2.tar.gz 4102453 RMD160 be2f814a516a1b389bb910121af35898253f9137 SHA1 d5b2ae827b4ef82104f18c0d0e6bfc47e057538b SHA256 ee28e7077925685b0f375bb733e477b5a8cb08537fa5d1e2f387e20fa6e07ccb EBUILD yap-5.1.1.ebuild 2315 RMD160 8aa0d1620332e2408fc3b1f3c1a9e53fcc1c8b43 SHA1 281e2d9098a70bef48224ff2e84953be3c2a830b SHA256 6557fca50b959ac3bafe8f9bf596b9590220e36cd418ca3601abe4a50af0e255 MD5 6955e30017b3663d59dde275a6fa6081 yap-5.1.1.ebuild 2315 RMD160 8aa0d1620332e2408fc3b1f3c1a9e53fcc1c8b43 yap-5.1.1.ebuild 2315 SHA256 6557fca50b959ac3bafe8f9bf596b9590220e36cd418ca3601abe4a50af0e255 yap-5.1.1.ebuild 2315 -MISC ChangeLog 2596 RMD160 bef092c15379123b85384a6975970c4e7b12f049 SHA1 fc92afe900186fa8dd2d0c14b0e2c733d3c4af5b SHA256 e9f815df8c9d1757ff575b74203a722197464f54dc23d944b12e2262cf39b7b2 -MD5 791da1ed4120e67bf426c544c2164cd8 ChangeLog 2596 -RMD160 bef092c15379123b85384a6975970c4e7b12f049 ChangeLog 2596 -SHA256 e9f815df8c9d1757ff575b74203a722197464f54dc23d944b12e2262cf39b7b2 ChangeLog 2596 +EBUILD yap-5.1.2.ebuild 2365 RMD160 ff5bbba19bd974b3f81cff3a1e0efc5bed80b40d SHA1 9abf728522c6e8c9255b6d50b1986cdc5b81396a SHA256 bf5d788f41188919ffbf80b92f52412d6a6f7eea9df5865e81093441feeb1673 +MD5 b247dcc0e9f653c5fee146a7235bd573 yap-5.1.2.ebuild 2365 +RMD160 ff5bbba19bd974b3f81cff3a1e0efc5bed80b40d yap-5.1.2.ebuild 2365 +SHA256 bf5d788f41188919ffbf80b92f52412d6a6f7eea9df5865e81093441feeb1673 yap-5.1.2.ebuild 2365 +MISC ChangeLog 2992 RMD160 89447723006f64c620d3acdf2b10f4492c73ba01 SHA1 340a9280a467bc25ab823c4229c11af0ec7286e3 SHA256 4a31a59eef635b13306ed1d8b9b8f0b5980e0c42e0d83f0bc90f7259d40d99aa +MD5 695e740bd9c2bbd13da2f357f47a951c ChangeLog 2992 +RMD160 89447723006f64c620d3acdf2b10f4492c73ba01 ChangeLog 2992 +SHA256 4a31a59eef635b13306ed1d8b9b8f0b5980e0c42e0d83f0bc90f7259d40d99aa ChangeLog 2992 MISC metadata.xml 159 RMD160 38d27fd1c5faabedefa5507dfd83cb4c952fbc8c SHA1 52b92682cf41e53e71bf432537a16215bd9546b1 SHA256 851bf218a4283a1d8ea6ef98af0119a40eaa78bfaaec49c2f3440437f52889ba MD5 9187f53634e60ab7eb2ac7e98b0b19f7 metadata.xml 159 RMD160 38d27fd1c5faabedefa5507dfd83cb4c952fbc8c metadata.xml 159 @@ -50,3 +91,6 @@ SHA256 851bf218a4283a1d8ea6ef98af0119a40eaa78bfaaec49c2f3440437f52889ba metadata MD5 b0b540f40f799d5ffa083e7ad192d780 files/digest-yap-5.1.1 232 RMD160 87a39e5d5151641fdfb130a3807ba1418e044ca5 files/digest-yap-5.1.1 232 SHA256 95b9fdecfe77131de6905b178604c3aacab6c5742396718554dc77ba6f4dbdf0 files/digest-yap-5.1.1 232 +MD5 b676e899619a0fcde2552630ce79f93b files/digest-yap-5.1.2 232 +RMD160 d70e3da287d12af100344e5348368b58436f47eb files/digest-yap-5.1.2 232 +SHA256 4948187a31b079c7fb15c2b3b2746ed1a7163437425f4e13f58423faae3953ae files/digest-yap-5.1.2 232 diff --git a/dev-lang/yap/files/digest-yap-5.1.2 b/dev-lang/yap/files/digest-yap-5.1.2 new file mode 100644 index 000000000000..675897b1b9f0 --- /dev/null +++ b/dev-lang/yap/files/digest-yap-5.1.2 @@ -0,0 +1,3 @@ +MD5 368a8c8f764f50b927f21a9b727139c9 Yap-5.1.2.tar.gz 4102453 +RMD160 be2f814a516a1b389bb910121af35898253f9137 Yap-5.1.2.tar.gz 4102453 +SHA256 ee28e7077925685b0f375bb733e477b5a8cb08537fa5d1e2f387e20fa6e07ccb Yap-5.1.2.tar.gz 4102453 diff --git a/dev-lang/yap/files/yap-5.1.2-SONAME.patch b/dev-lang/yap/files/yap-5.1.2-SONAME.patch new file mode 100644 index 000000000000..3ccc0f52b1aa --- /dev/null +++ b/dev-lang/yap/files/yap-5.1.2-SONAME.patch @@ -0,0 +1,11 @@ +--- Yap-5.1.2.orig/Makefile.in 2007-06-21 01:45:42.000000000 +1200 ++++ Yap-5.1.2/Makefile.in 2007-11-20 21:06:56.000000000 +1300 +@@ -572,7 +572,7 @@ + $(RANLIB) libYap.a + + @DYNYAPLIB@: $(LIB_OBJECTS) +- @DYNLIB_LD@ -o @YAPLIB@ $(LIB_OBJECTS) $(LIBS) ++ @DYNLIB_LD@ -Wl,-soname=$@ -o @YAPLIB@ $(LIB_OBJECTS) $(LIBS) + + install: install_bin install_data + diff --git a/dev-lang/yap/files/yap-5.1.2-analyst.patch b/dev-lang/yap/files/yap-5.1.2-analyst.patch new file mode 100644 index 000000000000..0e88393ded5c --- /dev/null +++ b/dev-lang/yap/files/yap-5.1.2-analyst.patch @@ -0,0 +1,55 @@ +diff -ur Yap-5.1.2.orig/C/analyst.c Yap-5.1.2/C/analyst.c +--- Yap-5.1.2.orig/C/analyst.c 2006-11-29 03:10:19.000000000 +1300 ++++ Yap-5.1.2/C/analyst.c 2007-08-21 19:58:15.000000000 +1200 +@@ -312,19 +312,17 @@ + total; + Term t1; + Atom at1; ++ char *program; ++ wchar_t *programw; + + t1 = Deref(ARG1); + if (IsVarTerm(t1) || !IsAtomTerm(t1)) + return (FALSE); + at1 = AtomOfTerm(t1); + if (IsWideAtom(at1)) { +- wchar_t *program; +- +- program = RepAtom(at1)->WStrOfAE; +- fprintf(Yap_stderr, "\n Instructions Executed in %S\n", program); ++ programw = RepAtom(at1)->WStrOfAE; ++ fprintf(Yap_stderr, "\n Instructions Executed in %S\n", programw); + } else { +- char *program; +- + program = RepAtom(at1)->StrOfAE; + fprintf(Yap_stderr, "\n Instructions Executed in %s\n", program); + } +@@ -675,7 +673,10 @@ + fprintf(Yap_stderr, " TOTAL instructions: %8d (%3d%%)\n\n", total, + (total * 100) / total); + +- fprintf(Yap_stderr, "\n Analysis of Unification Instructions in %s \n", program); ++ if (IsWideAtom(at1)) ++ fprintf(Yap_stderr, "\n Analysis of Unification Instructions in %S \n", programw); ++ else ++ fprintf(Yap_stderr, "\n Analysis of Unification Instructions in %s \n", program); + fprintf(Yap_stderr, " XVAR, YVAR, XVAL, YVAL, CONS, LIST, STRUCT\n"); + fprintf(Yap_stderr, " GET: %8d %8d %8d %8d %8d %8d %8d\n", + c_get.nxvar, +diff -ur Yap-5.1.2.orig/H/Yap.h Yap-5.1.2/H/Yap.h +--- Yap-5.1.2.orig/H/Yap.h 2007-04-11 10:13:20.000000000 +1200 ++++ Yap-5.1.2/H/Yap.h 2007-08-22 19:39:03.000000000 +1200 +@@ -53,12 +53,6 @@ + #undef TRAILING_REQUIRES_BRANCH + #endif /* YAPOR || TABLING */ + +-#if ANALYST +-#ifdef USE_THREADED_CODE +-#undef USE_THREADED_CODE +-#endif +-#endif +- + #ifdef COROUTINING + #ifndef TERM_EXTENSIONS + #define TERM_EXTENSIONS 1 diff --git a/dev-lang/yap/files/yap-5.1.2-chr.patch b/dev-lang/yap/files/yap-5.1.2-chr.patch new file mode 100644 index 000000000000..f3927ee93b9a --- /dev/null +++ b/dev-lang/yap/files/yap-5.1.2-chr.patch @@ -0,0 +1,77 @@ +--- Yap-5.1.2.orig/LGPL/chr/Makefile.in 2005-10-29 13:47:10.000000000 +1300 ++++ Yap-5.1.2/LGPL/chr/Makefile.in 2007-11-20 20:58:04.000000000 +1300 +@@ -47,39 +47,50 @@ + $(srcdir)/Benchmarks/bool.chr $(srcdir)/Benchmarks/family.chr $(srcdir)/Benchmarks/fibonacci.chr $(srcdir)/Benchmarks/leq.chr $(srcdir)/Benchmarks/listdom.chr \ + $(srcdir)/Benchmarks/chrdif.chr + ++BOOTSTRAP=bootstrap('../../pl/init.yap'),module(user),['chr_swi_bootstrap'] ++ + all: chr_translate.pl + + chr_translate_bootstrap1.pl: $(srcdir)/chr_translate_bootstrap1.chr +- $(PL) -l chr_swi_bootstrap.yap \ +- -g "chr_compile_step1('$<','$@'),halt." \ +- -z 'halt(1).' +- $(PL) -l chr_swi_bootstrap.yap \ +- -g "chr_compile_step2('$<','$@'),halt." \ +- -z 'halt(1).' ++ echo "$(BOOTSTRAP),chr:chr_compile_step1('$<','$@'),halt." | \ ++ LD_LIBRARY_PATH=../..:system:yap2swi \ ++ YAPSHAREDIR=$(PWD)/../../library \ ++ $(PL) -b ../../pl/boot.yap ++ echo "$(BOOTSTRAP),chr:chr_compile_step2('$<','$@'),halt." | \ ++ LD_LIBRARY_PATH=../..:system:yap2swi \ ++ YAPSHAREDIR=$(PWD)/../../library \ ++ $(PL) -b ../../pl/boot.yap + + chr_translate_bootstrap2.pl: $(srcdir)/chr_translate_bootstrap2.chr chr_translate_bootstrap1.pl +- $(PL) -l chr_swi_bootstrap.yap \ +- -g "chr_compile_step2('$<','$@'),halt." \ +- -z 'halt(1).' +- $(PL) -l chr_swi_bootstrap.yap \ +- -g "chr_compile_step3('$<','$@'),halt." \ +- -z 'halt(1).' ++ echo "$(BOOTSTRAP),chr:chr_compile_step2('$<','$@'),halt." | \ ++ LD_LIBRARY_PATH=../..:system:yap2swi \ ++ YAPSHAREDIR=$(PWD)/../../library \ ++ $(PL) -b ../../pl/boot.yap ++ echo "$(BOOTSTRAP),chr:chr_compile_step3('$<','$@'),halt." | \ ++ LD_LIBRARY_PATH=../..:system:yap2swi \ ++ YAPSHAREDIR=$(PWD)/../../library \ ++ $(PL) -b ../../pl/boot.yap + + guard_entailment.pl: $(srcdir)/guard_entailment.chr chr_translate_bootstrap2.pl +- $(PL) -l chr_swi_bootstrap.yap \ +- -g "chr_compile_step3('$<','$@'),halt." \ +- -z 'halt(1).' ++ echo "$(BOOTSTRAP),chr:chr_compile_step3('$<','$@'),halt." | \ ++ LD_LIBRARY_PATH=../..:system:yap2swi \ ++ YAPSHAREDIR=$(PWD)/../../library \ ++ $(PL) -b ../../pl/boot.yap + + chr_translate.pl: $(srcdir)/chr_translate.chr chr_translate_bootstrap2.pl guard_entailment.pl +- $(PL) -l chr_swi_bootstrap.yap \ +- -g "chr_compile_step3('$<','$@'),halt." \ +- -z 'halt(1).' +- $(PL) -p chr=. -l chr_swi_bootstrap.yap \ +- -g "chr_compile_step4('guard_entailment.chr','guard_entailment.pl'),halt." \ +- -z 'halt(1).' +- $(PL) -p chr=. -l chr_swi_bootstrap.yap \ +- -g "chr_compile_step4('$<','$@'),halt." \ +- -z 'halt(1).' ++ echo "$(BOOTSTRAP),chr:chr_compile_step3('$<','$@'),halt." | \ ++ LD_LIBRARY_PATH=../..:system:yap2swi \ ++ YAPSHAREDIR=$(PWD)/../../library \ ++ $(PL) -b ../../pl/boot.yap ++ echo "$(BOOTSTRAP),asserta(user:file_search_path(chr,'.')),chr:chr_compile_step4('guard_entailment.chr','guard_entailment.pl'),halt." | \ ++ LD_LIBRARY_PATH=../..:system:yap2swi \ ++ YAPSHAREDIR=$(PWD)/../../library \ ++ $(PL) -b ../../pl/boot.yap ++ cp ../clp/clp_events.pl ../../library/clp ++ echo "$(BOOTSTRAP),asserta(user:file_search_path(chr,'.')),chr:chr_compile_step4('$<','$@'),halt." | \ ++ LD_LIBRARY_PATH=../..:system:yap2swi \ ++ YAPSHAREDIR=$(PWD)/../../library \ ++ $(PL) -b ../../pl/boot.yap + + chr.pl: chr_swi.pl + cp $< $@ diff --git a/dev-lang/yap/files/yap-5.1.2-configure.patch b/dev-lang/yap/files/yap-5.1.2-configure.patch new file mode 100644 index 000000000000..5912d35a07cd --- /dev/null +++ b/dev-lang/yap/files/yap-5.1.2-configure.patch @@ -0,0 +1,183 @@ +--- Yap-5.1.2.orig/configure.in 2007-06-21 01:45:42.000000000 +1200 ++++ Yap-5.1.2/configure.in 2007-08-20 20:19:45.000000000 +1200 +@@ -43,7 +43,7 @@ + [ --enable-threads support system threads ], + threads="$enableval", threads=no) + AC_ARG_ENABLE(pthread-locking, +- [ --pthread-locking use pthread locking primitives for internal locking (requires threads) ], ++ [ --enable-pthread-locking use pthread locking primitives for internal locking (requires threads) ], + pthreadlocking="$enableval", pthreadlocking=no) + AC_ARG_ENABLE(max-performance, + [ --enable-max-performance try using the best flags for specific architecture ], +@@ -91,22 +91,35 @@ + fi, + [yap_cv_gmp=yes]) + +-AC_ARG_ENABLE(myddas, +- [ --enable-myddas[[=DIR]] enable the MYDDAS library], ++AC_ARG_ENABLE(myddas-mysql, ++ [ --enable-myddas-mysql[[=DIR]] enable the MYDDAS MySQL library], + if test "$enableval" = yes; then +- yap_cv_myddas=/usr/ ++ yap_cv_myddas_mysql=/usr/ + elif test "$enableval" = no; then +- yap_cv_myddas=no ++ yap_cv_myddas_mysql=no + else +- yap_cv_myddas=$enable_myddas +- LDFLAGS="$LDFLAGS -L${yap_cv_myddas}/lib " +- CPPFLAGS="$CPPFLAGS -I${yap_cv_myddas}/include " ++ yap_cv_myddas_mysql=$enable_myddas_mysql ++ LDFLAGS="$LDFLAGS -L${yap_cv_myddas_mysql}/lib " ++ CPPFLAGS="$CPPFLAGS -I${yap_cv_myddas_mysql}/include " + fi, +- [yap_cv_myddas=no]) ++ [yap_cv_myddas_mysql=no]) ++ ++AC_ARG_ENABLE(myddas-odbc, ++ [ --enable-myddas-odbc[[=DIR]] enable the MYDDAS ODBC library], ++ if test "$enableval" = yes; then ++ yap_cv_myddas_odbc=/usr/ ++ elif test "$enableval" = no; then ++ yap_cv_myddas_odbc=no ++ else ++ yap_cv_myddas_odbc=$enable_myddas_odbc ++ LDFLAGS="$LDFLAGS -L${yap_cv_myddas_odbc}/lib " ++ CPPFLAGS="$CPPFLAGS -I${yap_cv_myddas_odbc}/include " ++ fi, ++ [yap_cv_myddas_odbc=no]) + + AC_ARG_ENABLE(myddas-stats, + [ --enable-myddas-stats enable the MYDDAS library statistics support], +- if test "$yap_cv_myddas" = no; then ++ if test "$yap_cv_myddas_mysql" = no; then + myddasstats=no + else + myddasstats="$enableval" +@@ -114,7 +127,7 @@ + + AC_ARG_ENABLE(myddas-top-level, + [ --enable-myddas-top-level enable the MYDDAS top-level support to MySQL], +- if test "$yap_cv_myddas" = no; then ++ if test "$yap_cv_myddas_mysql" = no; then + myddastoplevel=no + else + myddastoplevel="$enableval" +@@ -124,8 +137,6 @@ + [ --with-jpl=JAVA_HOME use Java instalation in JAVA_HOME], + if test "$withval" = yes; then + yap_cv_jpl="$JAVA_HOME" +- dynamic_loading=yes +- maxmemory=yes + dnl threads=yes + elif test "$withval" = no; then + yap_cv_jpl=no +@@ -410,6 +421,8 @@ + AC_PATH_PROG(INSTALL_INFO,install-info,true,$PATH:/sbin:/usr/sbin:/usr/etc:/usr/local/sbin) + AC_PATH_PROG(SHELL,sh) + ++AC_HEADER_STDC ++ + dnl Check for libraries. + dnl mingw does not get along well with libm + dnl cygnus and mingw32 also need wsock32 to use sockets. +@@ -464,7 +477,7 @@ + AC_CHECK_LIB(gmp,main) + fi + +-if test "$yap_cv_myddas" != "no" ++if test "$yap_cv_myddas_mysql" != "no" + then + dnl check for mysql + AC_MSG_CHECKING(for main in -lmysqlclient) +@@ -481,9 +494,26 @@ + if test "$yap_mysql" = yes + then + YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_MYSQL" +- LIBS="$LIBS -L${yap_cv_myddas}/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv " ++ LIBS="$LIBS -L${yap_cv_myddas_mysql}/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv " + fi +- ++ if test "$yap_mysql" = no ++ then ++ echo "-------------------------------" ++ echo "--" ++ echo "--" ++ echo "--" ++ echo "-- There\'s no devel libraries for MySQL" ++ echo "--" ++ echo "--" ++ echo "--" ++ echo "-------------------------------" ++ exit ++ fi ++ cutc="yes" ++fi ++ ++if test "$yap_cv_myddas_odbc" != "no" ++then + dnl check for odbc + AC_MSG_CHECKING(for main in -lodbc) + AC_CACHE_VAL(yap_odbc,[ +@@ -502,40 +532,21 @@ + YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_ODBC" + LIBS="$LIBS -lodbc " + fi +- +- if test "$yap_mysql" = no -a "$yap_odbc" = no ++ if test "$yap_odbc" = no + then + echo "-------------------------------" + echo "--" + echo "--" + echo "--" +- echo "-- There\'s no devel libraries for MySQL or ODBC" ++ echo "-- There\'s no devel libraries for ODBC" + echo "--" + echo "--" + echo "--" + echo "-------------------------------" + exit + fi +- +- if test "$cutc" = no +- then +- echo +- echo +- echo "********************************************************" +- echo +- echo +- echo "!!!!!! WARNING !!!!!!" +- echo "The MYDDAS interface makes no sense without cut-c" +- echo "Please contact tiagosoares@ncc.up.pt for help" +- echo +- echo "Enabling cut-c" +- echo +- echo "********************************************************" +- echo +- echo +- cutc="yes" +- fi +-fi ++ cutc="yes" ++fi + + if test "$myddasstats" = "yes" + then +@@ -946,7 +957,6 @@ + fi + + dnl Checks for header files. +-AC_HEADER_STDC + AC_HEADER_SYS_WAIT + AC_CHECK_HEADERS(arpa/inet.h ctype.h direct.h dirent.h dlfcn.h) + AC_CHECK_HEADERS(errno.h fcntl.h) +@@ -965,7 +975,7 @@ + then + AC_CHECK_HEADERS(gmp.h) + fi +-if test "$yap_cv_myddas" != "no" ++if test "$yap_cv_myddas_mysql" != "no" + then + AC_CHECK_HEADERS(mysql/mysql.h) + fi diff --git a/dev-lang/yap/files/yap-5.1.2-jpl.patch b/dev-lang/yap/files/yap-5.1.2-jpl.patch new file mode 100644 index 000000000000..3297033e7477 --- /dev/null +++ b/dev-lang/yap/files/yap-5.1.2-jpl.patch @@ -0,0 +1,47 @@ +--- Yap-5.1.2.orig/LGPL/JPL/src/jpl.c 2006-09-01 15:01:58.000000000 +1200 ++++ Yap-5.1.2/LGPL/JPL/src/jpl.c 2007-11-20 20:16:37.000000000 +1300 +@@ -1827,7 +1827,7 @@ + + + //=== JVM initialisation, startup etc. ============================================================= +- ++/* + // this isn't much use; it can't discover JDK 1.2 support... + static int + jni_supported_jvm_version( +@@ -1848,7 +1848,7 @@ + && minor == mlo + ; + } +- ++*/ + + static int + jni_get_created_jvm_count(void) +@@ -1930,7 +1930,7 @@ + ); + } + +- ++/* + static foreign_t + jni_supported_jvm_version_plc( // not as useful as I'd hoped... + term_t t1, +@@ -1945,7 +1945,7 @@ + && jni_supported_jvm_version(major,minor) + ; + } +- ++*/ + + static foreign_t + jni_get_created_jvm_count_plc( +@@ -3908,7 +3908,7 @@ + static + PL_extension predspecs[] = + { { "jni_create_jvm", 2, jni_create_jvm_plc, 0 }, +- { "jni_supported_jvm_version", 2, jni_supported_jvm_version_plc, 0 }, ++/* { "jni_supported_jvm_version", 2, jni_supported_jvm_version_plc, 0 },*/ + { "jni_get_created_jvm_count", 1, jni_get_created_jvm_count_plc, 0 }, + { "jni_ensure_jvm", 0, jni_ensure_jvm_plc, 0 }, + { "jni_tag_to_iref", 2, jni_tag_to_iref_plc, 0 }, diff --git a/dev-lang/yap/files/yap-5.1.2-multilib.patch b/dev-lang/yap/files/yap-5.1.2-multilib.patch new file mode 100644 index 000000000000..b19727c0502b --- /dev/null +++ b/dev-lang/yap/files/yap-5.1.2-multilib.patch @@ -0,0 +1,169 @@ +diff -ur Yap-5.1.2.orig/CLPBN/Makefile.in Yap-5.1.2/CLPBN/Makefile.in +--- Yap-5.1.2.orig/CLPBN/Makefile.in 2006-02-12 13:41:23.000000000 +1300 ++++ Yap-5.1.2/CLPBN/Makefile.in 2007-08-20 20:24:58.000000000 +1200 +@@ -9,7 +9,7 @@ + # + # where YAP should look for libraries + # +-LIBDIR=$(ROOTDIR)/lib/Yap ++LIBDIR=@libdir@/Yap + # + # where YAP should look for architecture-independent Prolog libraries + # +diff -ur Yap-5.1.2.orig/LGPL/JPL/Makefile.in Yap-5.1.2/LGPL/JPL/Makefile.in +--- Yap-5.1.2.orig/LGPL/JPL/Makefile.in 2005-03-12 17:04:58.000000000 +1300 ++++ Yap-5.1.2/LGPL/JPL/Makefile.in 2007-08-20 20:24:58.000000000 +1200 +@@ -9,7 +9,7 @@ + # + # where YAP should look for binary libraries + # +-LIBDIR=$(ROOTDIR)/lib/Yap ++LIBDIR=@libdir@/Yap + # + # where YAP should look for architecture-independent Prolog libraries + # +diff -ur Yap-5.1.2.orig/LGPL/JPL/java/Makefile.in Yap-5.1.2/LGPL/JPL/java/Makefile.in +--- Yap-5.1.2.orig/LGPL/JPL/java/Makefile.in 2006-03-22 10:28:08.000000000 +1200 ++++ Yap-5.1.2/LGPL/JPL/java/Makefile.in 2007-08-20 20:24:58.000000000 +1200 +@@ -15,7 +15,7 @@ + # + # where YAP should look for binary libraries + # +-LIBDIR=$(ROOTDIR)/lib/Yap ++LIBDIR=@libdir@/Yap + # + # where YAP should look for architecture-independent Prolog libraries + # +diff -ur Yap-5.1.2.orig/LGPL/JPL/src/Makefile.in Yap-5.1.2/LGPL/JPL/src/Makefile.in +--- Yap-5.1.2.orig/LGPL/JPL/src/Makefile.in 2006-05-25 13:02:03.000000000 +1200 ++++ Yap-5.1.2/LGPL/JPL/src/Makefile.in 2007-08-20 20:24:58.000000000 +1200 +@@ -19,7 +19,7 @@ + # + # where YAP should look for libraries + # +-LIBDIR=$(EROOTDIR)/lib/Yap ++LIBDIR=@libdir@/Yap + # + # + CC=@CC@ +diff -ur Yap-5.1.2.orig/LGPL/clp/Makefile.in Yap-5.1.2/LGPL/clp/Makefile.in +--- Yap-5.1.2.orig/LGPL/clp/Makefile.in 2005-10-28 15:43:57.000000000 +1300 ++++ Yap-5.1.2/LGPL/clp/Makefile.in 2007-08-20 20:24:58.000000000 +1200 +@@ -9,7 +9,7 @@ + # + # where YAP should look for binary libraries + # +-LIBDIR=$(ROOTDIR)/lib/Yap ++LIBDIR=@libdir@/Yap + # + # where YAP should look for architecture-independent Prolog libraries + # +diff -ur Yap-5.1.2.orig/Makefile.in Yap-5.1.2/Makefile.in +--- Yap-5.1.2.orig/Makefile.in 2007-06-21 01:45:42.000000000 +1200 ++++ Yap-5.1.2/Makefile.in 2007-08-20 20:24:58.000000000 +1200 +@@ -4,7 +4,7 @@ + # + prefix = @prefix@ + ROOTDIR = $(prefix) +-EROOTDIR = @exec_prefix@ ++EROOTDIR = @prefix@ + # + # where the binary should be + # +@@ -12,8 +12,8 @@ + # + # where YAP should look for binary libraries + # +-LIBDIR=$(EROOTDIR)/lib +-YAPLIBDIR=$(EROOTDIR)/lib/Yap ++LIBDIR=@libdir@ ++YAPLIBDIR=@libdir@/Yap + # + # where YAP should look for architecture-independent Prolog libraries + # +diff -ur Yap-5.1.2.orig/library/Makefile.in Yap-5.1.2/library/Makefile.in +--- Yap-5.1.2.orig/library/Makefile.in 2007-06-21 01:46:02.000000000 +1200 ++++ Yap-5.1.2/library/Makefile.in 2007-08-20 20:24:58.000000000 +1200 +@@ -9,7 +9,7 @@ + # + # where YAP should look for binary libraries + # +-LIBDIR=$(ROOTDIR)/lib/Yap ++LIBDIR=@libdir@/Yap + # + # where YAP should look for architecture-independent Prolog libraries + # +diff -ur Yap-5.1.2.orig/library/Tries/Makefile.in Yap-5.1.2/library/Tries/Makefile.in +--- Yap-5.1.2.orig/library/Tries/Makefile.in 2004-12-15 06:00:33.000000000 +1300 ++++ Yap-5.1.2/library/Tries/Makefile.in 2007-08-20 20:24:58.000000000 +1200 +@@ -18,7 +18,7 @@ + # + # where YAP should look for libraries + # +-LIBDIR=$(EROOTDIR)/lib/Yap ++LIBDIR=@libdir@/Yap + # + # + CC=@CC@ +diff -ur Yap-5.1.2.orig/library/mpi/Makefile.in Yap-5.1.2/library/mpi/Makefile.in +--- Yap-5.1.2.orig/library/mpi/Makefile.in 2004-12-15 06:00:33.000000000 +1300 ++++ Yap-5.1.2/library/mpi/Makefile.in 2007-08-20 20:24:58.000000000 +1200 +@@ -20,8 +20,8 @@ + # + # where YAP should look for binary libraries + # +-LIBDIR=$(EROOTDIR)/lib +-YAPLIBDIR=$(EROOTDIR)/lib/Yap ++LIBDIR=@libdir@ ++YAPLIBDIR=@libdir@/Yap + # + # where YAP should look for architecture-independent Prolog libraries + # +diff -ur Yap-5.1.2.orig/library/random/Makefile.in Yap-5.1.2/library/random/Makefile.in +--- Yap-5.1.2.orig/library/random/Makefile.in 2004-12-15 06:00:33.000000000 +1300 ++++ Yap-5.1.2/library/random/Makefile.in 2007-08-20 20:24:58.000000000 +1200 +@@ -12,7 +12,7 @@ + # + # where YAP should look for libraries + # +-LIBDIR=$(EROOTDIR)/lib/Yap ++LIBDIR=@libdir@/Yap + # + # + CC=@CC@ +diff -ur Yap-5.1.2.orig/library/regex/Makefile.in Yap-5.1.2/library/regex/Makefile.in +--- Yap-5.1.2.orig/library/regex/Makefile.in 2004-12-15 06:00:33.000000000 +1300 ++++ Yap-5.1.2/library/regex/Makefile.in 2007-08-20 20:24:58.000000000 +1200 +@@ -12,7 +12,7 @@ + # + # where YAP should look for libraries + # +-LIBDIR=$(EROOTDIR)/lib/Yap ++LIBDIR=@libdir@/Yap + # + # + CC=@CC@ +diff -ur Yap-5.1.2.orig/library/system/Makefile.in Yap-5.1.2/library/system/Makefile.in +--- Yap-5.1.2.orig/library/system/Makefile.in 2004-12-15 06:00:33.000000000 +1300 ++++ Yap-5.1.2/library/system/Makefile.in 2007-08-20 20:24:58.000000000 +1200 +@@ -12,7 +12,7 @@ + # + # where YAP should look for libraries + # +-LIBDIR=$(EROOTDIR)/lib/Yap ++LIBDIR=@libdir@/Yap + # + # + CC=@CC@ +diff -ur Yap-5.1.2.orig/library/yap2swi/Makefile.in Yap-5.1.2/library/yap2swi/Makefile.in +--- Yap-5.1.2.orig/library/yap2swi/Makefile.in 2004-12-15 06:00:33.000000000 +1300 ++++ Yap-5.1.2/library/yap2swi/Makefile.in 2007-08-20 20:24:58.000000000 +1200 +@@ -12,7 +12,7 @@ + # + # where YAP should look for libraries + # +-LIBDIR=$(EROOTDIR)/lib/Yap ++LIBDIR=@libdir@/Yap + # + # + CC=@CC@ diff --git a/dev-lang/yap/files/yap-5.1.2-parallel-make.patch b/dev-lang/yap/files/yap-5.1.2-parallel-make.patch new file mode 100644 index 000000000000..ab381db11b77 --- /dev/null +++ b/dev-lang/yap/files/yap-5.1.2-parallel-make.patch @@ -0,0 +1,77 @@ +--- Yap-5.1.2.orig/Makefile.in 2007-06-21 01:45:42.000000000 +1200 ++++ Yap-5.1.2/Makefile.in 2007-11-20 21:09:49.000000000 +1300 +@@ -549,15 +549,15 @@ + $(CC) $(CFLAGS) $(srcdir)/mycb.c -o mycb + + all: startup +- @INSTALL_DLLS@ (cd library/random; make) +- @INSTALL_DLLS@ (cd library/regex; make) +- @INSTALL_DLLS@ (cd library/system; make) +- @INSTALL_DLLS@ (cd library/yap2swi; make) +- @INSTALL_DLLS@ (cd library/tries; make) +- @INSTALL_DLLS@ (cd library/lammpi; make) +- @INSTALL_DLLS@ (cd library/matrix; make) +- @INSTALL_MATLAB@ (cd library/matlab; make) +- @ENABLE_JPL@ @INSTALL_DLLS@ (cd LGPL/JPL/src; make) ++ @INSTALL_DLLS@ (cd library/random; $(MAKE)) ++ @INSTALL_DLLS@ (cd library/regex; $(MAKE)) ++ @INSTALL_DLLS@ (cd library/system; $(MAKE)) ++ @INSTALL_DLLS@ (cd library/yap2swi; $(MAKE)) ++ @INSTALL_DLLS@ (cd library/tries; $(MAKE)) ++ @INSTALL_DLLS@ (cd library/lammpi; $(MAKE)) ++ @INSTALL_DLLS@ (cd library/matrix; $(MAKE)) ++ @INSTALL_MATLAB@ (cd library/matlab; $(MAKE)) ++ @ENABLE_JPL@ @INSTALL_DLLS@ (cd LGPL/JPL/src; $(MAKE)) + + startup: yap@EXEC_SUFFIX@ $(PL_SOURCES) + -rm -f startup +@@ -587,15 +587,15 @@ + mkdir -p $(DESTDIR)$(SHAREDIR)/Yap + mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/pl + for f in $(PL_SOURCES); do $(INSTALL) $$f $(DESTDIR)$(SHAREDIR)/Yap/pl; done +- @INSTALL_DLLS@ (cd library/random; make install) +- @INSTALL_DLLS@ (cd library/regex; make install) +- @INSTALL_DLLS@ (cd library/system; make install) +- @INSTALL_DLLS@ (cd library/yap2swi; make install) +- @INSTALL_DLLS@ (cd library/tries; make install) +- @INSTALL_DLLS@ (cd library/lammpi; make install) +- @INSTALL_DLLS@ (cd library/matrix; make install) +- @INSTALL_MATLAB@ (cd library/matlab; make install) +- @ENABLE_JPL@ @INSTALL_DLLS@ (cd LGPL/JPL/src; make install) ++ @INSTALL_DLLS@ (cd library/random; $(MAKE) install) ++ @INSTALL_DLLS@ (cd library/regex; $(MAKE) install) ++ @INSTALL_DLLS@ (cd library/system; $(MAKE) install) ++ @INSTALL_DLLS@ (cd library/yap2swi; $(MAKE) install) ++ @INSTALL_DLLS@ (cd library/tries; $(MAKE) install) ++ @INSTALL_DLLS@ (cd library/lammpi; $(MAKE) install) ++ @INSTALL_DLLS@ (cd library/matrix; $(MAKE) install) ++ @INSTALL_MATLAB@ (cd library/matlab; $(MAKE) install) ++ @ENABLE_JPL@ @INSTALL_DLLS@ (cd LGPL/JPL/src; $(MAKE) install) + mkdir -p $(DESTDIR)$(INCLUDEDIR) + for h in $(INTERFACE_HEADERS); do $(INSTALL) $$h $(DESTDIR)$(INCLUDEDIR); done + +@@ -627,17 +627,17 @@ + for h in $(HEADERS); do $(INSTALL) $$h $(DESTDIR)$(INCLUDEDIR); done + + install_data: +- (cd library ; make install) +- @ENABLE_JPL@ (cd LGPL/JPL ; make install) +- @ENABLE_JPL@ (cd LGPL/JPL/java; make install) ++ (cd library ; $(MAKE) install) ++ @ENABLE_JPL@ (cd LGPL/JPL ; $(MAKE) install) ++ @ENABLE_JPL@ (cd LGPL/JPL/java; $(MAKE) install) + $(INSTALL_DATA) $(srcdir)/LGPL/pillow/icon_address.pl $(DESTDIR)$(SHAREDIR)/Yap/ + $(INSTALL_DATA) $(srcdir)/LGPL/pillow/pillow.pl $(DESTDIR)$(SHAREDIR)/Yap/ + # (cd CLPQR ; make install) +- @INSTALLCLP@(cd LGPL/clp ; make install) +- @INSTALLCLP@(cd LGPL/clpr ; make install) ++ @INSTALLCLP@(cd LGPL/clp ; $(MAKE) install) ++ @INSTALLCLP@(cd LGPL/clpr ; $(MAKE) install) + # (cd CHR ; make install) +- @INSTALLCLP@(cd LGPL/chr ; make install) +- @INSTALLCLP@(cd CLPBN ; make install) ++ @INSTALLCLP@(cd LGPL/chr ; $(MAKE) install) ++ @INSTALLCLP@(cd CLPBN ; $(MAKE) install) + + + ########## diff --git a/dev-lang/yap/files/yap-5.1.2-tabling.patch b/dev-lang/yap/files/yap-5.1.2-tabling.patch new file mode 100644 index 000000000000..dcc1ef6cc9a7 --- /dev/null +++ b/dev-lang/yap/files/yap-5.1.2-tabling.patch @@ -0,0 +1,61 @@ +diff -ur Yap-5.1.2.orig/OPTYap/opt.structs.h Yap-5.1.2/OPTYap/opt.structs.h +--- Yap-5.1.2.orig/OPTYap/opt.structs.h 2007-05-02 07:33:53.000000000 +1200 ++++ Yap-5.1.2/OPTYap/opt.structs.h 2007-08-21 19:44:56.000000000 +1200 +@@ -41,7 +41,7 @@ + ** ---------------------- */ + + struct pages { +-#ifdef YAPOR ++#if defined(YAPOR) || defined(THREADS) + lockvar lock; + #endif /* YAPOR */ + volatile long pages_allocated; +@@ -275,9 +275,11 @@ + ** --------------------------- */ + + struct local_data{ ++#if defined(YAPOR) || defined(THREADS) ++ lockvar lock; ++#endif + #ifdef YAPOR + /* local data related to or-parallelism */ +- lockvar lock; + volatile int load; + choiceptr top_choice_point; + struct or_frame *top_or_frame; +diff -ur Yap-5.1.2.orig/OPTYap/tab.structs.h Yap-5.1.2/OPTYap/tab.structs.h +--- Yap-5.1.2.orig/OPTYap/tab.structs.h 2005-08-05 06:06:35.000000000 +1200 ++++ Yap-5.1.2/OPTYap/tab.structs.h 2007-08-21 19:30:06.000000000 +1200 +@@ -50,7 +50,7 @@ + ** ---------------------------- */ + + typedef struct table_entry { +-#ifdef YAPOR ++#if defined(YAPOR) || defined(THREADS) + lockvar lock; + #endif /* YAPOR */ + struct pred_entry *pred_entry; +@@ -149,8 +149,10 @@ + ** ------------------------------ */ + + typedef struct subgoal_frame { +-#ifdef YAPOR ++#if defined(YAPOR) || defined(THREADS) + lockvar lock; ++#endif ++#ifdef YAPOR + int generator_worker; + struct or_frame *top_or_frame_on_generator_branch; + #endif /* YAPOR */ +@@ -225,8 +227,10 @@ + ** --------------------------------- */ + + typedef struct dependency_frame { +-#ifdef YAPOR ++#if defined(YAPOR) || defined(THREADS) + lockvar lock; ++#endif ++#ifdef YAPOR + int leader_dependency_is_on_stack; + struct or_frame *top_or_frame; + #ifdef TIMESTAMP_CHECK diff --git a/dev-lang/yap/files/yap-5.1.2-tkyap.patch b/dev-lang/yap/files/yap-5.1.2-tkyap.patch new file mode 100644 index 000000000000..bdc0b22cec54 --- /dev/null +++ b/dev-lang/yap/files/yap-5.1.2-tkyap.patch @@ -0,0 +1,26 @@ +--- Yap-5.1.2.orig/misc/tkyap 2006-02-21 02:18:08.000000000 +1300 ++++ Yap-5.1.2/misc/tkyap 2007-11-21 18:51:19.000000000 +1300 +@@ -33,19 +33,10 @@ + #option add "*message*Font" $TextFont + #option add "*list*Font" $TextFont + +-if {[file exists /vmlinuz]} { +- set TextFont "*6x10*" +- if {[file exists /home/luis/Yap94/linux]} { +- set homeyap /home/luis/Yap94/linux +- } else { +- set homeyap . +- } +- set PrologCommand "$homeyap/yap $homeyap/startup -c localhost $service $YapOptions" +- set SolarisBug 0 +-} else { +- set PrologCommand "ny -h8000 -s1000" +- set SolarisBug 1 +-} ++set TextFont "*6x10*" ++ ++set PrologCommand "yap -c localhost $service $YapOptions" ++set SolarisBug 0 + + + diff --git a/dev-lang/yap/yap-5.1.2.ebuild b/dev-lang/yap/yap-5.1.2.ebuild new file mode 100644 index 000000000000..ea777665819f --- /dev/null +++ b/dev-lang/yap/yap-5.1.2.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/yap/yap-5.1.2.ebuild,v 1.1 2007/11/21 06:25:28 keri Exp $ + +inherit autotools eutils java-pkg-opt-2 + +MY_P="Yap-${PV}" + +DESCRIPTION="YAP is a high-performance Prolog compiler." +HOMEPAGE="http://www.ncc.up.pt/~vsc/Yap/" +SRC_URI="http://www.ncc.up.pt/~vsc/Yap/current/Yap-5.1.2.tar.gz" + +LICENSE="Artistic LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="debug doc examples gmp java mpi mysql odbc readline static tk threads" + +DEPEND="gmp? ( dev-libs/gmp ) + java? ( >=virtual/jdk-1.4 ) + mpi? ( virtual/mpi ) + mysql? ( virtual/mysql ) + odbc? ( dev-db/unixODBC ) + readline? ( sys-libs/readline )" + +RDEPEND="${DEPEND} + tk? ( dev-lang/tk )" + +S="${WORKDIR}"/${MY_P} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-configure.patch + epatch "${FILESDIR}"/${P}-multilib.patch + epatch "${FILESDIR}"/${P}-parallel-make.patch + epatch "${FILESDIR}"/${P}-SONAME.patch + epatch "${FILESDIR}"/${P}-analyst.patch + epatch "${FILESDIR}"/${P}-tabling.patch + epatch "${FILESDIR}"/${P}-chr.patch + epatch "${FILESDIR}"/${P}-jpl.patch + epatch "${FILESDIR}"/${P}-tkyap.patch +} + +src_compile() { + eautoconf + econf \ + --libdir=/usr/$(get_libdir) \ + --enable-low-level-tracer \ + --enable-rational-trees \ + --enable-coroutining \ + --enable-myddas-stats \ + --disable-tabling \ + --disable-eam \ + --disable-depth-limit \ + --disable-or-parallelism \ + $(use_enable threads) \ + $(use_enable threads pthread-locking) \ + $(use_enable threads use-malloc) \ + $(use_enable !static dynamic-loading) \ + $(use_enable debug debug-yap) \ + $(use_enable debug wam-profile) \ + $(use_enable mysql myddas-mysql) \ + $(use_enable mysql myddas-stats) \ + $(use_enable mysql myddas-top-level) \ + $(use_enable odbc myddas-odbc) \ + $(use_with gmp) \ + $(use_with readline) \ + $(use_with mpi) \ + $(use_with mpi mpe) \ + $(use_with java jpl) \ + || die "econf failed" + + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed." + + if use tk ; then + exeinto /usr/bin + doexe misc/tkyap + fi + + dodoc changes*.html README + + if use doc ; then + dodoc docs/yap.html + fi + + if use examples ; then + docinto examples + dodoc CLPBN/clpbn/examples/cg.yap + dodoc CLPBN/clpbn/examples/School/* + fi +} |