summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeri Harris <keri@gentoo.org>2010-11-03 07:51:29 +0000
committerKeri Harris <keri@gentoo.org>2010-11-03 07:51:29 +0000
commit0b7a54ae4064cb399bb8a1045bd17d2cb754e744 (patch)
treeaf25b2be9a7819acf18e5234af43e841ec10f557 /dev-lang
parentBundle patches into distfiles tarball. (diff)
downloadhistorical-0b7a54ae4064cb399bb8a1045bd17d2cb754e744.tar.gz
historical-0b7a54ae4064cb399bb8a1045bd17d2cb754e744.tar.bz2
historical-0b7a54ae4064cb399bb8a1045bd17d2cb754e744.zip
Bundle patches into distfiles tarball.
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/mercury-extras/ChangeLog37
-rw-r--r--dev-lang/mercury-extras/Manifest45
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04-curs.patch314
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04-dynamic-linking.patch13
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04-iodbc.patch71
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04-lex.patch34
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04-mercury_glut.patch25
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04-mercury_opengl.patch23
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04-mercury_tcltk.patch29
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04-no-java-grade-no-erlang-grade.patch180
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04-odbc.patch75
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04-posix.patch28
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04.1-curs.patch314
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04.1-dynamic-linking.patch12
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04.1-iodbc.patch69
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04.1-lex.patch33
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04.1-mercury-glut.patch25
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04.1-mercury-opengl.patch22
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04.1-mercury-tcltk.patch27
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04.1-no-java-grade-no-erlang-grade.patch180
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04.1-odbc.patch60
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04.1-posix.patch12
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04.2-curs.patch314
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04.2-dynamic-linking.patch12
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04.2-iodbc.patch69
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04.2-lex.patch33
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04.2-mercury-glut.patch25
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04.2-mercury-opengl.patch22
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04.2-mercury-tcltk.patch27
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04.2-no-java-grade-no-erlang-grade.patch193
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04.2-odbc.patch60
-rw-r--r--dev-lang/mercury-extras/files/mercury-extras-10.04.2-posix.patch12
-rw-r--r--dev-lang/mercury-extras/mercury-extras-10.04-r1.ebuild25
-rw-r--r--dev-lang/mercury-extras/mercury-extras-10.04.1.ebuild25
-rw-r--r--dev-lang/mercury-extras/mercury-extras-10.04.2-r1.ebuild25
-rw-r--r--dev-lang/mercury-extras/mercury-extras-10.04.2.ebuild25
-rw-r--r--dev-lang/mercury-extras/mercury-extras-10.04.ebuild25
37 files changed, 105 insertions, 2415 deletions
diff --git a/dev-lang/mercury-extras/ChangeLog b/dev-lang/mercury-extras/ChangeLog
index ef7c32370865..4bf73a2b8a66 100644
--- a/dev-lang/mercury-extras/ChangeLog
+++ b/dev-lang/mercury-extras/ChangeLog
@@ -1,6 +1,41 @@
# ChangeLog for dev-lang/mercury-extras
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/ChangeLog,v 1.81 2010/11/03 07:19:08 keri Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/ChangeLog,v 1.82 2010/11/03 07:51:27 keri Exp $
+
+ 03 Nov 2010; <keri@gentoo.org> mercury-extras-10.04.ebuild,
+ mercury-extras-10.04-r1.ebuild, mercury-extras-10.04.1.ebuild,
+ -files/mercury-extras-10.04.1-curs.patch,
+ -files/mercury-extras-10.04.1-dynamic-linking.patch,
+ -files/mercury-extras-10.04.1-iodbc.patch,
+ -files/mercury-extras-10.04.1-lex.patch,
+ -files/mercury-extras-10.04.1-mercury-glut.patch,
+ -files/mercury-extras-10.04.1-mercury-opengl.patch,
+ -files/mercury-extras-10.04.1-mercury-tcltk.patch,
+ -files/mercury-extras-10.04.1-no-java-grade-no-erlang-grade.patch,
+ -files/mercury-extras-10.04.1-odbc.patch,
+ -files/mercury-extras-10.04.1-posix.patch, mercury-extras-10.04.2.ebuild,
+ mercury-extras-10.04.2-r1.ebuild,
+ -files/mercury-extras-10.04.2-curs.patch,
+ -files/mercury-extras-10.04.2-dynamic-linking.patch,
+ -files/mercury-extras-10.04.2-iodbc.patch,
+ -files/mercury-extras-10.04.2-lex.patch,
+ -files/mercury-extras-10.04.2-mercury-glut.patch,
+ -files/mercury-extras-10.04.2-mercury-opengl.patch,
+ -files/mercury-extras-10.04.2-mercury-tcltk.patch,
+ -files/mercury-extras-10.04.2-no-java-grade-no-erlang-grade.patch,
+ -files/mercury-extras-10.04.2-odbc.patch,
+ -files/mercury-extras-10.04.2-posix.patch,
+ -files/mercury-extras-10.04-curs.patch,
+ -files/mercury-extras-10.04-dynamic-linking.patch,
+ -files/mercury-extras-10.04-iodbc.patch,
+ -files/mercury-extras-10.04-lex.patch,
+ -files/mercury-extras-10.04-mercury_glut.patch,
+ -files/mercury-extras-10.04-mercury_opengl.patch,
+ -files/mercury-extras-10.04-mercury_tcltk.patch,
+ -files/mercury-extras-10.04-no-java-grade-no-erlang-grade.patch,
+ -files/mercury-extras-10.04-odbc.patch,
+ -files/mercury-extras-10.04-posix.patch:
+ Bundle patches into distfiles tarball.
03 Nov 2010; <keri@gentoo.org> -mercury-extras-10.04_beta1.ebuild,
-files/mercury-extras-10.04_beta1-curs.patch,
diff --git a/dev-lang/mercury-extras/Manifest b/dev-lang/mercury-extras/Manifest
index 713f5615e1a4..b752795578d6 100644
--- a/dev-lang/mercury-extras/Manifest
+++ b/dev-lang/mercury-extras/Manifest
@@ -7,45 +7,18 @@ AUX mercury-extras-0.13.1-mercury_opengl.patch 4022 RMD160 b066b8e181cf7d0f21d61
AUX mercury-extras-0.13.1-mercury_tcltk.patch 514 RMD160 017b0645322f622bbac569e8eefb4a58f2ff88e8 SHA1 91c6e32f27c14e07f6894745486fbf150adf3c48 SHA256 ad14d78321d44ecd5a8e36f4e8528c817c8ebf217e5223fcda52c5a01f4d4f6a
AUX mercury-extras-0.13.1-odbc.patch 1253 RMD160 13fd607b42c4527ad7d05dcfeb3c59de9a7bf7c8 SHA1 0803073755587f993eea05c3276efe3c20589b73 SHA256 b9220a5f1774110ae2f4862448c246ec8728b43a19bd05e01cf01556232c549e
AUX mercury-extras-0.13.1-posix.patch 354 RMD160 3d8b68c5efabda81ad117c6282f09b25741366ac SHA1 d66442038b7d93a5b4cdc6a0ab9cb666cdef9c07 SHA256 d47871298f94007173f6aee19e1597f57400654d9ece94ae94cf14fa0118efdf
-AUX mercury-extras-10.04-curs.patch 10224 RMD160 49370c7c209b49f2a17391c3777bf3e1ed272c86 SHA1 90384587099824590c8492cf43616db8c6f2565b SHA256 b64b46647cc42cbe40d1537a54d6b5c59a2dff5bccd2c9feaece1e4aad3eb740
-AUX mercury-extras-10.04-dynamic-linking.patch 534 RMD160 28f00b9492de35927b43dbeb34c22a15794c861d SHA1 ebfab09939ff22a9531f10bb326a1af4763fe891 SHA256 88a6af5cc7160323199c7f2a033fcd3f92044ed4aeb4bcb72434d754b108ae75
-AUX mercury-extras-10.04-iodbc.patch 2487 RMD160 43a32d11d025aa6edfe6ec1dd0cbbbeda1f71be9 SHA1 c237d5c237a972ea33c68b799c2a97886f92b530 SHA256 7b9112e18c1e861f2710ef04f8e14db2481896fb16074afdef535115dcdafccc
-AUX mercury-extras-10.04-lex.patch 776 RMD160 d12d50aa7b5fb528394df6e2454008ac0b9995cf SHA1 6a3a50e15330538a41311f5a0bc8e4e4fdc06fbb SHA256 6085e68b9f205bdca6637dab85af04f76e8eab35a2e32a379e2be5c96d442dc3
-AUX mercury-extras-10.04-mercury_glut.patch 876 RMD160 4652646bf3d6066f6229910ec6281342e88386b1 SHA1 1fcee041f3e2fca8183f5cc789714fc17c0f7b09 SHA256 f9153154d0543deecebaaab895aa01f8ff443686470024ec6917117a3ee15281
-AUX mercury-extras-10.04-mercury_opengl.patch 1129 RMD160 17cd252daa579708f7019038b9b763fced302c05 SHA1 424223d596892c4c39e450b3c7ffc695ce8adc44 SHA256 7c21f79095666328b50e822515ccba13dfdda63ab22f3ef90a18b8856ce8173f
-AUX mercury-extras-10.04-mercury_tcltk.patch 1380 RMD160 59b610536c0c1335f932c337b2636a5f94415145 SHA1 8900634410abfb77863e6bdabd0df02c97f19fba SHA256 a946ff3f8e9fb5cff659bf97f04c5b0a9c54d7d6334362c6e94c9b7878e19945
-AUX mercury-extras-10.04-no-java-grade-no-erlang-grade.patch 7550 RMD160 7c98e6a1a94640e5c0dffc05d80e9ea814ba7117 SHA1 ca3b532563502614323189e1443c8118d883bb4b SHA256 e716d89e494670fc06ca3d1795e6461abf103b2260d500035cf33f9310f40817
-AUX mercury-extras-10.04-odbc.patch 2931 RMD160 a3cca01ac5185bd80d5274ce2ab1e09e4dbbad2f SHA1 bd2082d6f28d7a64c66f681f6506e1b765de5732 SHA256 2e519291fea7ec0714d1148ac00b4058a6e77059928865457f166df977b10504
-AUX mercury-extras-10.04-posix.patch 1366 RMD160 201e96d8eef523850a5feb7e30e1130722f28a07 SHA1 964f5ed5604e82373bf55791da9e7fac4de8fd7d SHA256 7a9b672f770fe7ae83821b8cb99a8a4e80c82ea44d6a6731b06ddfe2bb77b023
-AUX mercury-extras-10.04.1-curs.patch 10233 RMD160 fbae7729cb585a81208284a16e4fa5f38b9771b1 SHA1 2eb7cf4285745f52bec99e66830c03bb13aaa43a SHA256 98ac0a60ce43292177de012f457097b1b850f8ac8f6b425a164e2ca13e51012f
-AUX mercury-extras-10.04.1-dynamic-linking.patch 496 RMD160 68c6710317c41b290291ac3df83110bdf7f049a6 SHA1 fed9e446bfa78b750cdb44e82f328907f63a0d22 SHA256 d7680e67f5fad2c8f1d16e380cd867ab1d1466f8e0fbe7adc4035d41c0930d1d
-AUX mercury-extras-10.04.1-iodbc.patch 2397 RMD160 7489a5d66b8efc3b46aed34e78f90f6dc71beea0 SHA1 773df5a1deef1b591a023455be8857a95adc4e84 SHA256 7d65efbc9716c02d1cb8b15311fddbf3d8f9e5b0de8d525517da58dbb9b475b6
-AUX mercury-extras-10.04.1-lex.patch 748 RMD160 fae35bf63330d5c80b23beb0ee92c27b9fff3581 SHA1 250e06f0626075ad77f7f144e9f8b5fb7ab1947b SHA256 6a41903adb0e37b45b7d68960e09f8cef89037f3c6b84e762c67d11ae61136d3
-AUX mercury-extras-10.04.1-mercury-glut.patch 885 RMD160 569baa46477e537ac1a9abebeac451b61752d77f SHA1 780609a4308d1bdefd6fe26754841a03fed294b5 SHA256 99ab05158450f18691ba948b9bdc7fdbc3677113bba53d50bc80578ee4bdb311
-AUX mercury-extras-10.04.1-mercury-opengl.patch 1071 RMD160 cc75370c9f093b02fec608e0c3cfba1508a198c1 SHA1 9638c49534087d2a94c2b0ef89968b6ac9daea40 SHA256 0a02b6d92acb86bc1b12bc8ddea3ea7799c902fc9e05feab8e2e9a5df5ba2fb2
-AUX mercury-extras-10.04.1-mercury-tcltk.patch 1262 RMD160 a910b56dee92bda2816c29ba099c0b616fec22ef SHA1 2d82d341887b2e247332892f491ed0e697dc0d89 SHA256 81bb4d4574cb8c21e7e6693ffebe082e42809db4fcf87350690fb2537904bc74
-AUX mercury-extras-10.04.1-no-java-grade-no-erlang-grade.patch 7676 RMD160 1659868f9474da9f3e0c49f56c85de578bbcd5f5 SHA1 d262029894b1992e7942464c88ac6203fde0d650 SHA256 c1bc59b853bb19884af2e2c2677c81c6ac9fc9021999a3aac1ac2e4da23df975
-AUX mercury-extras-10.04.1-odbc.patch 2087 RMD160 2e3da2737cfb122e2bf8d8e632a8328913f78b03 SHA1 2af8c8fa269f59341211763de4c500bce014f289 SHA256 92e1ba3d1d26f73fccbf72617ece2599a8b5dbb71d2ac297d9353573af0790c2
-AUX mercury-extras-10.04.1-posix.patch 466 RMD160 5777ebb73dd9acc09bddcd79d2851596b3160939 SHA1 fbf12e32bd42559fc284ae05dac2c2785fae2a9c SHA256 7aa1ea0add4f60a438460dc474457c2dd08402143af5d991bc85c31e838c779b
-AUX mercury-extras-10.04.2-curs.patch 10233 RMD160 ebe348db78fd8610abc93463d92a608a184a7881 SHA1 564f68b65e28097ea83a00fcbfe0747bae5dcf5d SHA256 60802d84cf86275ca1629972228bb9178fd6f56ea68c8132833eb485786f9452
-AUX mercury-extras-10.04.2-dynamic-linking.patch 496 RMD160 dbf416eddbdabc1c5e25d28e50ea37f520265825 SHA1 d85c8cf81281c219fda1b3c6798c9f0ed228f7f0 SHA256 24f8e473f287b9b25c0b0c27097676209d0523e3f17af2f9d7499f5b0285fb50
-AUX mercury-extras-10.04.2-iodbc.patch 2397 RMD160 28948cc850f3e58a502615a07eb9e5afe4b90eba SHA1 b148f9f038ce0bf5d94fa60ce06fae586654edf3 SHA256 3aa9fc415ccf241ff48a38634c561208d20d3ccb0c202034f0106e55640d5aaf
-AUX mercury-extras-10.04.2-lex.patch 748 RMD160 fae35bf63330d5c80b23beb0ee92c27b9fff3581 SHA1 250e06f0626075ad77f7f144e9f8b5fb7ab1947b SHA256 6a41903adb0e37b45b7d68960e09f8cef89037f3c6b84e762c67d11ae61136d3
-AUX mercury-extras-10.04.2-mercury-glut.patch 885 RMD160 7c74995bead12423fe1b04ef9749fd838db77f59 SHA1 d429cc6a5ba39d01742107e9d8849afda8d8e8cc SHA256 57510d25bf57e17bc8660e84924d9cb4a4254185d529901749eb4f5dce79c3f3
-AUX mercury-extras-10.04.2-mercury-opengl.patch 1071 RMD160 d1b731b895502ad74c4369b02f7762ac542c393f SHA1 5012b348d189e6fef872a1b81d6c8d656c8eb053 SHA256 cc9a6ebb7232fdbf06d10e6a6e53253ddde4f9e21cde0c17d2037c20975908f8
-AUX mercury-extras-10.04.2-mercury-tcltk.patch 1262 RMD160 398d17a8907649f0ae6e2691054a7581b3f9e8b3 SHA1 864f2ad1a80fa665dc0a27077a32ccb87e71ba05 SHA256 e7a8053295b42452e48607e5c6ee4f0025bc0a7f9032194269b7dca62592dd18
-AUX mercury-extras-10.04.2-no-java-grade-no-erlang-grade.patch 8206 RMD160 c92f19754bf898468117c97f7c8805dda74bcba7 SHA1 7103da160e1854808c868c952c0892b0072df3ea SHA256 19f8e5e67d4c4405a5aa227da2063227ad47655d04fd736e03ce6326ef12c0f7
-AUX mercury-extras-10.04.2-odbc.patch 2087 RMD160 c9b916db88e02be67ce22c36b4bd87049bd1d157 SHA1 f272162f8993ca89ee5bc2188236f06d52b4db1e SHA256 7b0ccfa970a1c7ab882e7ae263b7a145a2d2693546a579067192b8aee8d68fc3
-AUX mercury-extras-10.04.2-posix.patch 466 RMD160 3b56cff3a9152c60ebff88a9934bce390c944f7d SHA1 aafd8950fc32f6e07e6ba17e8877e993b988b490 SHA256 2bc9eac0212a51e599fd92a5ba389b9c624cac9a0d2b997cdf02da3f0a0a3202
DIST mercury-extras-0.13.1.tar.gz 688974 RMD160 d14aeeefe29a2bc6ae59d174043a18808e2a6875 SHA1 3871d523400e0c0ac0396918b6ba74a378269b15 SHA256 33580108aed30359facde24645b23d5ca559fe0c9c50f448199d3d7b751b7c4c
+DIST mercury-extras-10.04-gentoo-patchset-0.tar.gz 5725 RMD160 5082f1da6cca30678a484cc2ebe7c53473fa5d30 SHA1 fa948d12d921b56b3b59297753aca8d17e01d1fd SHA256 69801a24d6b9433eb9fb17d37be8d4f1b8b72405be19ebd5783242e0a84f367d
+DIST mercury-extras-10.04.1-gentoo-patchset-0.tar.gz 5600 RMD160 e03fff9e674c695c27a8b60174db486db59e0276 SHA1 2c33a3c16a4a605a9078c65931dfb1ccf0914b37 SHA256 d0d1758a93b9121d2f2f27530f95b8788f3f65a949eb20a1ff588ce52fb07420
DIST mercury-extras-10.04.1.tar.gz 706531 RMD160 c249b239eafb19d27180e2fcbd6c763967eb4dda SHA1 5dec96a55fef96d5269f8be50f970f4d53522947 SHA256 7d7825224b0e0ae5079cdad4a323493d65a24f0a7f00eff6a100a6569329af3c
+DIST mercury-extras-10.04.2-gentoo-patchset-0.tar.gz 5720 RMD160 4e8539053ad5d71f5206462ac5777238d7b49692 SHA1 c4ac1a17c0cdca6e51c12e2525fbedd29f65e48b SHA256 deb629debc130b27fcd92c668c13cb3993b16c9e8991f5406863e729b38e211c
DIST mercury-extras-10.04.2.tar.gz 706566 RMD160 b88dc81d7a943ff265ead704ecd92f9a8a7976a4 SHA1 513de139260a8d02418ec3a1a0219845cdf03014 SHA256 f219b58df5e4dc24e75e0fb6f8f0d1255d4c2c9cbc5ea7e97f136896ce8acc8a
DIST mercury-extras-10.04.tar.gz 706376 RMD160 988e17736ace555916b452a5f22b3d8f67ad6b4e SHA1 22cb6eb10bd6a4d17605217fe97f8718b8dfbbb4 SHA256 408d0a428b8d15934d5b7f5bd3e2139807fb2eb0a7f58d125c8490456445814b
EBUILD mercury-extras-0.13.1-r1.ebuild 3350 RMD160 92d13713ecb014ad8f482e970d040e1d721faa89 SHA1 537059c10b7079070e6f9f1cf2ae5122b7e1c2af SHA256 850d2176525117052e2e40cfe85f9139cd22979443a0f78530944082e0f0ce7f
-EBUILD mercury-extras-10.04-r1.ebuild 3640 RMD160 6cd6decc4999fecb6c68c23d20bb8dc5c6439730 SHA1 63089ae3861c9f7cdac857a109ca4c6916082504 SHA256 4db99db33e32da813e7b07d73be23f57d6b404cec72a28b955ea3be79a01853f
-EBUILD mercury-extras-10.04.1.ebuild 3639 RMD160 57126b80bcbeb7aa1002690c55e7f0b66ee96637 SHA1 59d4d299977a5a89521da014a9688df20bb70fc5 SHA256 3f93a28373d0b18d0a2cb43414ca9df663ecf7483adda2e473797fa027291f59
-EBUILD mercury-extras-10.04.2-r1.ebuild 4774 RMD160 695d4457b81609e9a1c25a5964ad869af6840847 SHA1 9952d2b05cff802a77153ca810e61efdfc760ddc SHA256 396d488c72db2b3bc1fcc753eac705a9124a351974ac8c5f326d6f8b7b6e9268
-EBUILD mercury-extras-10.04.2.ebuild 3634 RMD160 61c1b4d9c8f89f60e7213c92aba4decf009ce703 SHA1 6bb92238ca4a4e69d2903fd7499c2e753e489c32 SHA256 5f72df92f0a38f57a6d8b761564ef504d34ca7a1b4a650c596ca91611de69111
-EBUILD mercury-extras-10.04.ebuild 3475 RMD160 7906873f1ec69c7dea2c1a4778b3e4f9ac8ddad3 SHA1 cc3380aa62ce9ccef41b737ad501f24e455ef147 SHA256 fcaca1dfc38a744298187406cead871542497bc5b763b1224ca1aea70fa5370e
-MISC ChangeLog 22839 RMD160 2dddb549a5a7c9685fde725f31f6ae7e0ec8ec57 SHA1 c82dc5318f6524b9c92296c08625f1ebee65624b SHA256 a1eb09aee6ddfdf492c217c5c54c56954cbd63eb819528356964ed108b2d70b2
+EBUILD mercury-extras-10.04-r1.ebuild 3435 RMD160 ea7620ace250385b35c0056205c7a8d35cf9bbc5 SHA1 cb57075b669c330fedb4d7ffda2ab34ede29ec31 SHA256 e0c9bb1f22271bc53923bf05673b64fd9b1ae6271977fba9a13753c36e084af7
+EBUILD mercury-extras-10.04.1.ebuild 3433 RMD160 70b97740e27086807115ea977173efef058e984b SHA1 4e035f7f858bc21e160659bff204ad6bd5f73a8b SHA256 418f22953ee9724589ddedb6138905b76f9a509c5ab990e1cbb1c55a0ff0572b
+EBUILD mercury-extras-10.04.2-r1.ebuild 4573 RMD160 28608002c889b34f73614a7885a9b1cf8d893263 SHA1 adc15cc627851f4a4be87ed9359cba8dd86875df SHA256 1b6c06ca8ec33ca32ef2c0259736e937739c78d064e9cfa32534922aeabf2d9a
+EBUILD mercury-extras-10.04.2.ebuild 3433 RMD160 464585e7d93c19fae81463998d08b788ac139bee SHA1 8332b8d7b583ab3d28a99c701a900d2e5fa22a85 SHA256 9ad7d54f057c090a1b19149b9f743ec02ed41f28722e4a681a94996f2491f24d
+EBUILD mercury-extras-10.04.ebuild 3269 RMD160 bc4dccb8b14fe704f5d359d4bec3459c9104defc SHA1 34aa64892eb2a792c45f94aa29039aff7fd183bc SHA256 991306f9b8e3abf0175b9486b98ee572b33901b360b6ddcaad4e72df64432d48
+MISC ChangeLog 24567 RMD160 fa98536ace14e709f425a7fea7091f9e729a2c43 SHA1 66342dfd398a9a8994be78720d10e785488511b7 SHA256 11f36ce9b98544dbc49f793c1d40c085cb0f1a09112aaff760fed26bfa831828
MISC metadata.xml 247 RMD160 1b3df3c501d9a3b2e2651668be405677e8416397 SHA1 7b705a8a3368abab6ad31ea2fcb5e5db865d92b1 SHA256 2768d0688d443184194068497dcafb2e5d67521980cb46b7e8efc07d3900bcaa
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04-curs.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04-curs.patch
deleted file mode 100644
index 2ed3f150883e..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04-curs.patch
+++ /dev/null
@@ -1,314 +0,0 @@
-diff -ur mercury-extras-10.04.orig/curs/curs.m mercury-extras-10.04/curs/curs.m
---- mercury-extras-10.04.orig/curs/curs.m 2006-04-21 15:37:10.000000000 +1200
-+++ mercury-extras-10.04/curs/curs.m 2010-07-19 21:34:59.000000000 +1200
-@@ -31,6 +31,8 @@
- :- import_module io.
- :- import_module string.
-
-+:- include_module curs__panel.
-+
- %-----------------------------------------------------------------------------%
-
- % Start a curses session (colour, unbuffered input, no echoing,
-@@ -210,90 +212,6 @@
- :- func cyan = colour.
- :- func white = colour.
-
-- %-------------------------------------------------------------------------%
-- %-------------------------------------------------------------------------%
--
-- % Panels are windows over the main display; they may be
-- % stacked, moved, ordered and hidden. Contents of panels
-- % closer to the top of the stack obscure the parts of panels
-- % they overlap that are lower in the stack.
-- %
-- :- module panel.
-- :- interface.
--
-- :- type panel.
--
-- % new(Rows, Cols, Row, Col, Attr, Panel) creates a new panel
-- % Panel whose size is given by (Rows, Cols) and whose position
-- % on the display is given by (Row, Col). The new panel starts
-- % visible and at the top of the stack. The default attributes
-- % for the panel are set to Attr.
-- %
-- :- pred new(int::in, int::in, int::in, int::in, attr::in, panel::out,
-- io::di, io::uo) is det.
--
-- % Destroy a panel.
-- %
-- :- pred delete(panel::in, io::di, io::uo) is det.
--
-- % Raise/lower a panel to the top/bottom of the stack.
-- %
-- :- pred raise(panel::in, io::di, io::uo) is det.
-- :- pred lower(panel::in, io::di, io::uo) is det.
--
-- % Hide/reveal a panel (revealing places it at the top of the stack).
-- %
-- :- pred hide(panel::in, io::di, io::uo) is det.
-- :- pred reveal(panel::in, io::di, io::uo) is det.
--
-- % Move a panel to (Row, Col) on the display.
-- %
-- :- pred relocate(panel::in, int::in, int::in, io::di, io::uo) is det.
--
-- % Clear a panel.
-- %
-- :- pred clear(panel::in, io::di, io::uo) is det.
--
-- % Move the virtual cursor to given row and column; (0, 0) are the
-- % coordinates for the upper left hand corner of the panel.
-- %
-- :- pred move(panel::in, int::in, int::in, io::di, io::uo) is det.
--
-- % Add a char/string to a panel with the given attributes.
-- % Note that char codes are passed rather than plain chars.
-- %
-- :- pred addch(panel::in, attr::in, int::in, io::di, io::uo) is det.
-- :- pred addstr(panel::in, attr::in, string::in, io::di, io::uo) is det.
--
-- % Turn on/off or set attributes that will be applied by default.
-- %
-- :- pred attr_on(panel::in, attr::in, io::di, io::uo) is det.
-- :- pred attr_off(panel::in, attr::in, io::di, io::uo) is det.
-- :- pred attr_set(panel::in, attr::in, io::di, io::uo) is det.
--
-- % Update the display (also calls doupdate).
-- % NOTE: doupdate does not call update_panels.
-- %
-- :- pred update_panels(io::di, io::uo) is det.
--
-- % Draws a border around the inside edge of the display.
-- %
-- :- pred border(panel::in, io::di, io::uo) is det.
--
-- % Draws an horizontal line of length N moving to the right.
-- %
-- :- pred hline(panel::in, int::in, int::in, io::di, io::uo) is det.
--
-- % Draws a vertical line of length N moving down.
-- %
-- :- pred vline(panel::in, int::in, int::in, io::di, io::uo) is det.
--
-- :- end_module panel.
--
-- %-------------------------------------------------------------------------%
-- %-------------------------------------------------------------------------%
--
--%-----------------------------------------------------------------------------%
- %-----------------------------------------------------------------------------%
-
- :- implementation.
-@@ -1044,210 +962,4 @@
- IO = IO0;
- ").
-
-- %-------------------------------------------------------------------------%
-- %-------------------------------------------------------------------------%
--
-- :- module panel.
--
-- :- implementation.
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_decl("C", "
--
-- #include <ncurses.h>
-- #include <panel.h>
--
-- ").
--
-- :- pragma foreign_type("C", panel, "PANEL *").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- new(Rows::in, Cols::in, Row::in, Col::in, Attr::in, Panel::out,
-- IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- WINDOW *w = newwin(Rows, Cols, Row, Col);
-- scrollok(w, TRUE);
-- wattrset(w, Attr);
-- wcolor_set(w, Attr, NULL);
-- wclear(w);
-- Panel = new_panel(w);
--
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- delete(Panel::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- delwin(panel_window(Panel));
-- del_panel(Panel);
--
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- raise(Panel::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- top_panel(Panel);
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- lower(Panel::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- bottom_panel(Panel);
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- hide(Panel::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- hide_panel(Panel);
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- reveal(Panel::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- show_panel(Panel);
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- relocate(Panel::in, Row::in, Col::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- move_panel(Panel, Row, Col);
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- clear(Panel::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- wclear(panel_window(Panel));
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- move(Panel::in, Row::in, Col::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- wmove(panel_window(Panel), Row, Col);
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- addch(Panel::in, Attr::in, CharCode::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- waddch(panel_window(Panel), (chtype)Attr | (chtype)CharCode);
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- addstr(Panel, Attr, Str, !IO) :-
-- string.foldl(
-- ( pred(Char::in, !.IO::di, !:IO::uo) is det :-
-- addch(Panel, Attr, char.to_int(Char), !IO)
-- ),
-- Str, !IO
-- ).
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- attr_on(Panel::in, Attr::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- wattron(panel_window(Panel), Attr);
-- IO = IO0;
-- ").
--
-- :- pragma foreign_proc("C",
-- attr_off(Panel::in, Attr::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- wattroff(panel_window(Panel), Attr);
-- IO = IO0;
-- ").
--
-- :- pragma foreign_proc("C",
-- attr_set(Panel::in, Attr::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- wattrset(panel_window(Panel), Attr);
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- update_panels(IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- update_panels();
-- doupdate();
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- border(Panel::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- wborder(panel_window(Panel), 0, 0, 0, 0, 0, 0, 0, 0);
-- IO = IO0;
-- ").
--
-- :- pragma foreign_proc("C",
-- hline(Panel::in, C::in, N::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- whline(panel_window(Panel), C, N);
-- IO = IO0;
-- ").
--
-- :- pragma foreign_proc("C",
-- vline(Panel::in, C::in, N::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- wvline(panel_window(Panel), C, N);
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
-- :- end_module panel.
-- %-------------------------------------------------------------------------%
-- %-------------------------------------------------------------------------%
--
--%-----------------------------------------------------------------------------%
- %-----------------------------------------------------------------------------%
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04-dynamic-linking.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04-dynamic-linking.patch
deleted file mode 100644
index 5e3f89aafddd..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04-dynamic-linking.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-Only in mercury-extras-10.04/curs: curs.m.orig
-diff -ur mercury-extras-10.04.orig/dynamic_linking/Mmakefile mercury-extras-10.04/dynamic_linking/Mmakefile
---- mercury-extras-10.04.orig/dynamic_linking/Mmakefile 2005-01-25 20:49:05.000000000 +1300
-+++ mercury-extras-10.04/dynamic_linking/Mmakefile 2010-07-19 21:35:53.000000000 +1200
-@@ -11,7 +11,7 @@
- MLFLAGS = --shared
-
- # Link in the `-ldl' library (this may not be needed on some systems)
--MLLIBS = -ldl
-+MLLIBS = -L/usr/@libdir@ -ldl
-
- # enable C-level debugging
- CFLAGS = -g
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04-iodbc.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04-iodbc.patch
deleted file mode 100644
index 204ab661153d..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04-iodbc.patch
+++ /dev/null
@@ -1,71 +0,0 @@
-Only in mercury-extras-10.04/curs: curs.m.orig
-Only in mercury-extras-10.04/dynamic_linking: Mmakefile.orig
-diff -ur mercury-extras-10.04.orig/odbc/Mmakefile mercury-extras-10.04/odbc/Mmakefile
---- mercury-extras-10.04.orig/odbc/Mmakefile 2006-04-03 18:19:54.000000000 +1200
-+++ mercury-extras-10.04/odbc/Mmakefile 2010-07-19 21:36:16.000000000 +1200
-@@ -12,7 +12,7 @@
- # The driver manager.
- # Legal values for MODBC_DRIVER are MODBC_IODBC, MODBC_UNIX, and MODBC_MS.
- # Feel free to add more (and handle them in odbc.m).
--MODBC_DRIVER=MODBC_UNIX
-+MODBC_DRIVER=MODBC_IODBC
-
- # The database.
- # Legal values for MODBC_DB are MODBC_MYSQL and MODBC_SQL_SERVER.
-@@ -41,17 +41,20 @@
- # The following are for Debian.
-
- # for unixODBC
-- MLLIBS=-lodbc -lpthread -lltdl -ldl
--
-+ MLLIBS=`iodbc-config --libs`
-+ ODBC_CFLAGS=`iodbc-config --cflags`
- # for iODBC
- # MLLIBS=-liodbc l-pthread -ldl
- # note: on a DEC Alpha using OSF1 remove the -ldl.
- endif
-
--MAIN_TARGET=odbc_test
-+MAIN_TARGET=libodbc
-
- .PHONY: depend
--depend: odbc_test.depend
-+depend: odbc.depend
-+
-+.PHONY: install
-+install: libodbc.install
-
- .PHONY: check
- check:
-@@ -62,7 +65,7 @@
- # `--no-ansi' is needed because the ODBC header files include C++-style
- # "//" comments. `--no-ansi' allows recognition of C++-style "//" comments,
- # presuming you have gcc version 2.7.1 or greater.
--MGNUCFLAGS=--no-ansi -D$(MODBC_DRIVER) -D$(MODBC_DB) -I$(ODBC_INCL_DIR)
-+MGNUCFLAGS=--no-ansi -D$(MODBC_DRIVER) -D$(MODBC_DB) $(ODBC_CFLAGS)
-
- #-----------------------------------------------------------------------------#
- #-----------------------------------------------------------------------------#
-diff -ur mercury-extras-10.04.orig/odbc/odbc.m mercury-extras-10.04/odbc/odbc.m
---- mercury-extras-10.04.orig/odbc/odbc.m 2006-08-31 23:09:50.000000000 +1200
-+++ mercury-extras-10.04/odbc/odbc.m 2010-07-19 21:36:16.000000000 +1200
-@@ -2000,8 +2000,8 @@
- ** Arbitrary size, only needs to hold a
- ** descriptive string like ""SQL Server"".
- */
-- String new_dsn;
-- String new_desc;
-+ LPSTR new_dsn;
-+ LPSTR new_desc;
- SWORD dsn_len;
- SWORD desc_len;
- SQLRETURN rc;
-@@ -2335,7 +2335,7 @@
- SQLSMALLINT msg_len;
- UCHAR message[SQL_MAX_MESSAGE_LENGTH];
- UCHAR sql_state[SQL_SQLSTATE_SIZE + 1];
-- String mercury_message;
-+ LPSTR mercury_message;
- MR_Word new_message;
-
- MR_ASSERT_IMPLY(connection_handle == SQL_NULL_HDBC,
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04-lex.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04-lex.patch
deleted file mode 100644
index 39dcfad46ac3..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04-lex.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-diff -urN lex/Mmakefile lex/Mmakefile
---- lex/Mmakefile 1970-01-01 12:00:00.000000000 +1200
-+++ lex/Mmakefile 2010-07-19 21:37:59.000000000 +1200
-@@ -0,0 +1,29 @@
-+# Copyright (C) 2001 Ralph Becket <rbeck@microsoft.com>
-+# Copyright (C) 2002 The University of Melbourne
-+
-+# To build, do the following:
-+#
-+# $ mmake depend
-+# $ mmake all
-+# $ mmake install
-+#
-+# If you have problems, try the following instead:
-+#
-+# $ mmake depend
-+# $ mmake all
-+# $ mmake liblex.install
-+# $ mmake libregex.install
-+
-+MAIN_TARGET = all
-+
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
-+.PHONEY: all depend install
-+
-+all: liblex libregex
-+
-+depend: lex.depend regex.depend
-+
-+install:
-+ $(MMAKE) liblex.install
-+ $(MMAKE) libregex.install
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04-mercury_glut.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04-mercury_glut.patch
deleted file mode 100644
index d65ee7d90d97..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04-mercury_glut.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-diff -ur mercury-extras-10.04.orig/graphics/mercury_glut/Mmakefile mercury-extras-10.04/graphics/mercury_glut/Mmakefile
---- mercury-extras-10.04.orig/graphics/mercury_glut/Mmakefile 2006-03-30 14:52:44.000000000 +1200
-+++ mercury-extras-10.04/graphics/mercury_glut/Mmakefile 2010-07-20 06:47:23.000000000 +1200
-@@ -13,10 +13,10 @@
- # The following libraries are for X on Linux (Debian) using Mesa.
-
- # Libaries required by X windows.
--X_LIBS = -lX11 -lXext -lXt -lXi -lSM -lICE -L/usr/X11R6/lib
-+#X_LIBS = -lX11 -lXext -lXt -lXi -lSM -lICE -L/usr/X11R6/lib
-
- # Libraries required by OpenGL.
--GL_LIBS = -lGL -LGL
-+#GL_LIBS = -lGL -LGL
-
- MCFLAGS-mercury_glut+=--no-warn-nothing-exported --no-warn-interface-imports
-
-@@ -26,7 +26,7 @@
- MGNUCFLAGS = --pic-reg
- EXTRA_MLFLAGS = -shared
-
--MLLIBS = -lglut $(X_LIBS) $(GL_LIBS)
-+MLLIBS = -lglut
-
- depend: mercury_glut.depend
-
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04-mercury_opengl.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04-mercury_opengl.patch
deleted file mode 100644
index 2b4e4ac43096..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04-mercury_opengl.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-Only in mercury-extras-10.04/graphics/mercury_glut: Mmakefile.orig
-diff -ur mercury-extras-10.04.orig/graphics/mercury_opengl/Mmakefile mercury-extras-10.04/graphics/mercury_opengl/Mmakefile
---- mercury-extras-10.04.orig/graphics/mercury_opengl/Mmakefile 2007-10-11 19:21:31.000000000 +1300
-+++ mercury-extras-10.04/graphics/mercury_opengl/Mmakefile 2010-07-20 06:48:47.000000000 +1200
-@@ -17,7 +17,8 @@
-
- # Specify what libraries we need to link against for OpenGL on this system.
- # (The following works on Debian with mesa as the OpenGL implementation).
--GL_LIBS = -lGL -lGLU -L/usr/X11R6/lib -lX11 -lXt -lICE -lXext -lSM
-+GL_LIBS = `pkg-config --libs gl` `pkg-config --libs glu`
-+GL_CFLAGS = `pkg-config --cflags gl` `pkg-config --cflags glu`
-
- # Don't issue a warning because mercury_opengl doesn't export anything.
- MCFLAGS-mercury_opengl = --no-warn-nothing-exported
-@@ -26,7 +27,7 @@
- # implemented completely.
- MCFLAGS-mogl = --no-warn-inferred-erroneous
-
--MCFLAGS = --halt-at-warn --intermodule-optimization
-+MCFLAGS = --halt-at-warn --intermodule-optimization $(GL_CFLAGS)
-
- MLLIBS = $(GL_LIBS) $(EXTRA_MLLIBS)
-
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04-mercury_tcltk.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04-mercury_tcltk.patch
deleted file mode 100644
index 58069b50b22f..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04-mercury_tcltk.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-Only in mercury-extras-10.04/graphics/mercury_glut: Mmakefile.orig
-Only in mercury-extras-10.04/graphics/mercury_opengl: Mmakefile.orig
-diff -ur mercury-extras-10.04.orig/graphics/mercury_tcltk/Mmakefile mercury-extras-10.04/graphics/mercury_tcltk/Mmakefile
---- mercury-extras-10.04.orig/graphics/mercury_tcltk/Mmakefile 2005-08-15 16:11:42.000000000 +1200
-+++ mercury-extras-10.04/graphics/mercury_tcltk/Mmakefile 2010-07-20 06:49:11.000000000 +1200
-@@ -8,10 +8,7 @@
-
- # You may need to modify the line below
-
--MLLIBS = -ltk8.4 -ltcl8.4 -L/usr/X11R6/lib -lX11 -lXmu -lXext -lm -ldl \
-- -lXt -lICE -lSM
--
--MLFLAGS = -R/usr/X11R6/lib
-+MLLIBS = -ltk -ltcl
-
- # On some Linux machines you may need to let mgnuc know where the
- # tcl/tk header files are.
-diff -ur mercury-extras-10.04.orig/graphics/mercury_tcltk/mtcltk.m mercury-extras-10.04/graphics/mercury_tcltk/mtcltk.m
---- mercury-extras-10.04.orig/graphics/mercury_tcltk/mtcltk.m 2007-08-21 14:47:37.000000000 +1200
-+++ mercury-extras-10.04/graphics/mercury_tcltk/mtcltk.m 2010-07-20 06:49:11.000000000 +1200
-@@ -154,7 +154,7 @@
- MR_incr_hp(argv_word, argc + 1);
- argv = (char **) argv_word;
-
-- for (i = 0, l = Args; l != list_empty(); l = list_tail(l), i++) {
-+ for (i = 0, l = Args; l != MR_list_empty(); l = MR_list_tail(l), i++) {
- argv[i] = (char *) MR_list_head(l);
- }
-
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04-no-java-grade-no-erlang-grade.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04-no-java-grade-no-erlang-grade.patch
deleted file mode 100644
index 6f498616bedd..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04-no-java-grade-no-erlang-grade.patch
+++ /dev/null
@@ -1,180 +0,0 @@
-diff -ur mercury-extras-10.04.orig/cgi/Mmakefile mercury-extras-10.04/cgi/Mmakefile
---- mercury-extras-10.04.orig/cgi/Mmakefile 2004-07-30 19:01:07.000000000 +1200
-+++ mercury-extras-10.04/cgi/Mmakefile 2010-07-20 06:49:40.000000000 +1200
-@@ -12,6 +12,9 @@
-
- MAIN_TARGET = $(LIBRARY)
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- MCFLAGS-mercury_www = --no-warn-nothing-exported
-
- depend: mercury_www.depend
-diff -ur mercury-extras-10.04.orig/complex_numbers/Mmakefile mercury-extras-10.04/complex_numbers/Mmakefile
---- mercury-extras-10.04.orig/complex_numbers/Mmakefile 2003-01-16 23:44:11.000000000 +1300
-+++ mercury-extras-10.04/complex_numbers/Mmakefile 2010-07-20 06:49:40.000000000 +1200
-@@ -10,6 +10,9 @@
-
- MAIN_TARGET = all
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- all: libcomplex_numbers
-
- depend: complex_numbers.depend
-diff -ur mercury-extras-10.04.orig/curs/Mmakefile mercury-extras-10.04/curs/Mmakefile
---- mercury-extras-10.04.orig/curs/Mmakefile 2003-01-16 23:44:14.000000000 +1300
-+++ mercury-extras-10.04/curs/Mmakefile 2010-07-20 06:49:40.000000000 +1200
-@@ -26,7 +26,8 @@
- # Omit this line if you want to install the default grades.
- # Edit this line if you want to install with different grades.
- #
--#LIBGRADES = asm_fast.gc hlc.gc
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-
- # The following standard libraries must be linked against in any
- # application using the curs library (i.e. MLLIBS must include
-diff -ur mercury-extras-10.04.orig/curses/Mmakefile mercury-extras-10.04/curses/Mmakefile
---- mercury-extras-10.04.orig/curses/Mmakefile 2003-01-16 23:44:15.000000000 +1300
-+++ mercury-extras-10.04/curses/Mmakefile 2010-07-20 06:49:40.000000000 +1200
-@@ -13,6 +13,9 @@
- # this line to include the appropriate curses library for your OS.
- MLLIBS = -lncurses
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- -include ../Mmake.params
-
- default_target: libmcurses
-diff -ur mercury-extras-10.04.orig/dynamic_linking/Mmakefile mercury-extras-10.04/dynamic_linking/Mmakefile
---- mercury-extras-10.04.orig/dynamic_linking/Mmakefile 2005-01-25 20:49:05.000000000 +1300
-+++ mercury-extras-10.04/dynamic_linking/Mmakefile 2010-07-20 06:49:40.000000000 +1200
-@@ -17,6 +17,9 @@
- CFLAGS = -g
- MLFLAGS += --no-strip
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- -include ../Mmake.params
-
- main_target: libdl
-diff -ur mercury-extras-10.04.orig/graphics/mercury_glut/Mmakefile mercury-extras-10.04/graphics/mercury_glut/Mmakefile
---- mercury-extras-10.04.orig/graphics/mercury_glut/Mmakefile 2006-03-30 14:52:44.000000000 +1200
-+++ mercury-extras-10.04/graphics/mercury_glut/Mmakefile 2010-07-20 06:49:40.000000000 +1200
-@@ -10,6 +10,9 @@
-
- MAIN_TARGET = libmercury_glut
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- # The following libraries are for X on Linux (Debian) using Mesa.
-
- # Libaries required by X windows.
-diff -ur mercury-extras-10.04.orig/graphics/mercury_opengl/Mmakefile mercury-extras-10.04/graphics/mercury_opengl/Mmakefile
---- mercury-extras-10.04.orig/graphics/mercury_opengl/Mmakefile 2007-10-11 19:21:31.000000000 +1300
-+++ mercury-extras-10.04/graphics/mercury_opengl/Mmakefile 2010-07-20 06:49:40.000000000 +1200
-@@ -15,6 +15,9 @@
-
- MAIN_TARGET = libmercury_opengl
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- # Specify what libraries we need to link against for OpenGL on this system.
- # (The following works on Debian with mesa as the OpenGL implementation).
- GL_LIBS = -lGL -lGLU -L/usr/X11R6/lib -lX11 -lXt -lICE -lXext -lSM
-diff -ur mercury-extras-10.04.orig/graphics/mercury_tcltk/Mmakefile mercury-extras-10.04/graphics/mercury_tcltk/Mmakefile
---- mercury-extras-10.04.orig/graphics/mercury_tcltk/Mmakefile 2005-08-15 16:11:42.000000000 +1200
-+++ mercury-extras-10.04/graphics/mercury_tcltk/Mmakefile 2010-07-20 06:49:40.000000000 +1200
-@@ -21,6 +21,9 @@
-
- MAIN_TARGET = $(LIBRARY)
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- depend: mercury_tcltk.depend
-
- install: libmercury_tcltk.install
-diff -ur mercury-extras-10.04.orig/lazy_evaluation/Mmakefile mercury-extras-10.04/lazy_evaluation/Mmakefile
---- mercury-extras-10.04.orig/lazy_evaluation/Mmakefile 2003-01-16 23:44:17.000000000 +1300
-+++ mercury-extras-10.04/lazy_evaluation/Mmakefile 2010-07-20 06:49:40.000000000 +1200
-@@ -4,6 +4,9 @@
- # Public License - see the file COPYING.LIB in the Mercury distribution.
- #-----------------------------------------------------------------------------#
- INSTALL_PREFIX := $(INSTALL_PREFIX)/extras
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- -include ../Mmake.params
- default_target: all
- depend: lazy_list.depend lazy_list_test.depend
-diff -ur mercury-extras-10.04.orig/moose/Mmakefile mercury-extras-10.04/moose/Mmakefile
---- mercury-extras-10.04.orig/moose/Mmakefile 2003-01-16 23:44:20.000000000 +1300
-+++ mercury-extras-10.04/moose/Mmakefile 2010-07-20 06:49:40.000000000 +1200
-@@ -6,6 +6,8 @@
-
- # GRADE = asm_fast.gc.debug
- # GRADE = asm_fast.gc.prof
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-
- # MCFLAGS = -O6
- # MCFLAGS = --intermodule-optimization -O6
-diff -ur mercury-extras-10.04.orig/odbc/Mmakefile mercury-extras-10.04/odbc/Mmakefile
---- mercury-extras-10.04.orig/odbc/Mmakefile 2006-04-03 18:19:54.000000000 +1200
-+++ mercury-extras-10.04/odbc/Mmakefile 2010-07-20 06:49:40.000000000 +1200
-@@ -8,6 +8,8 @@
-
- #-----------------------------------------------------------------------------#
- # Configuration
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-
- # The driver manager.
- # Legal values for MODBC_DRIVER are MODBC_IODBC, MODBC_UNIX, and MODBC_MS.
-diff -ur mercury-extras-10.04.orig/posix/Mmakefile mercury-extras-10.04/posix/Mmakefile
---- mercury-extras-10.04.orig/posix/Mmakefile 2008-09-02 21:45:54.000000000 +1200
-+++ mercury-extras-10.04/posix/Mmakefile 2010-07-20 06:49:40.000000000 +1200
-@@ -8,6 +8,9 @@
-
- -include ../Mmake.params
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- # The following is needed (on some systems) to enable declarations of
- # Posix functions in standard C header files.
- MGNUCFLAGS = --no-ansi
-diff -ur mercury-extras-10.04.orig/quickcheck/Mmakefile mercury-extras-10.04/quickcheck/Mmakefile
---- mercury-extras-10.04.orig/quickcheck/Mmakefile 2003-01-16 23:44:24.000000000 +1300
-+++ mercury-extras-10.04/quickcheck/Mmakefile 2010-07-20 06:49:40.000000000 +1200
-@@ -10,6 +10,9 @@
-
- MAIN_TARGET = all
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- .PHONY: depend
- depend: qcheck.depend test_qcheck.depend
-
-diff -ur mercury-extras-10.04.orig/xml/Mmakefile mercury-extras-10.04/xml/Mmakefile
---- mercury-extras-10.04.orig/xml/Mmakefile 2002-03-06 23:10:31.000000000 +1300
-+++ mercury-extras-10.04/xml/Mmakefile 2010-07-20 06:49:40.000000000 +1200
-@@ -8,6 +8,9 @@
-
- INSTALL_PREFIX := $(INSTALL_PREFIX)/extras
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- .PHONY: default_target
- default_target: tryit libxml
-
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04-odbc.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04-odbc.patch
deleted file mode 100644
index edc7139cc2d8..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04-odbc.patch
+++ /dev/null
@@ -1,75 +0,0 @@
-Only in mercury-extras-10.04/cgi: Mmakefile.orig
-Only in mercury-extras-10.04/complex_numbers: Mmakefile.orig
-Only in mercury-extras-10.04/curs: Mmakefile.orig
-Only in mercury-extras-10.04/curses: Mmakefile.orig
-Only in mercury-extras-10.04/dynamic_linking: Mmakefile.orig
-Only in mercury-extras-10.04/graphics/mercury_glut: Mmakefile.orig
-Only in mercury-extras-10.04/graphics/mercury_opengl: Mmakefile.orig
-Only in mercury-extras-10.04/graphics/mercury_tcltk: Mmakefile.orig
-Only in mercury-extras-10.04/graphics/mercury_tcltk: mtcltk.m.orig
-Only in mercury-extras-10.04/lazy_evaluation: Mmakefile.orig
-Only in mercury-extras-10.04/moose: Mmakefile.orig
-diff -ur mercury-extras-10.04.orig/odbc/Mmakefile mercury-extras-10.04/odbc/Mmakefile
---- mercury-extras-10.04.orig/odbc/Mmakefile 2006-04-03 18:19:54.000000000 +1200
-+++ mercury-extras-10.04/odbc/Mmakefile 2010-07-20 06:50:22.000000000 +1200
-@@ -41,17 +41,20 @@
- # The following are for Debian.
-
- # for unixODBC
-- MLLIBS=-lodbc -lpthread -lltdl -ldl
--
-+ MLLIBS=`odbc_config --libs`
-+ ODBC_CFLAGS=`odbc_config --cflags`
- # for iODBC
- # MLLIBS=-liodbc l-pthread -ldl
- # note: on a DEC Alpha using OSF1 remove the -ldl.
- endif
-
--MAIN_TARGET=odbc_test
-+MAIN_TARGET=libodbc
-
- .PHONY: depend
--depend: odbc_test.depend
-+depend: odbc.depend
-+
-+.PHONY: install
-+install: libodbc.install
-
- .PHONY: check
- check:
-@@ -62,7 +65,7 @@
- # `--no-ansi' is needed because the ODBC header files include C++-style
- # "//" comments. `--no-ansi' allows recognition of C++-style "//" comments,
- # presuming you have gcc version 2.7.1 or greater.
--MGNUCFLAGS=--no-ansi -D$(MODBC_DRIVER) -D$(MODBC_DB) -I$(ODBC_INCL_DIR)
-+MGNUCFLAGS=--no-ansi -D$(MODBC_DRIVER) -D$(MODBC_DB) $(ODBC_CFLAGS)
-
- #-----------------------------------------------------------------------------#
- #-----------------------------------------------------------------------------#
-Only in mercury-extras-10.04/odbc: Mmakefile.orig
-diff -ur mercury-extras-10.04.orig/odbc/odbc.m mercury-extras-10.04/odbc/odbc.m
---- mercury-extras-10.04.orig/odbc/odbc.m 2006-08-31 23:09:50.000000000 +1200
-+++ mercury-extras-10.04/odbc/odbc.m 2010-07-20 06:50:22.000000000 +1200
-@@ -2000,8 +2000,8 @@
- ** Arbitrary size, only needs to hold a
- ** descriptive string like ""SQL Server"".
- */
-- String new_dsn;
-- String new_desc;
-+ LPSTR new_dsn;
-+ LPSTR new_desc;
- SWORD dsn_len;
- SWORD desc_len;
- SQLRETURN rc;
-@@ -2335,7 +2335,7 @@
- SQLSMALLINT msg_len;
- UCHAR message[SQL_MAX_MESSAGE_LENGTH];
- UCHAR sql_state[SQL_SQLSTATE_SIZE + 1];
-- String mercury_message;
-+ LPSTR mercury_message;
- MR_Word new_message;
-
- MR_ASSERT_IMPLY(connection_handle == SQL_NULL_HDBC,
-Only in mercury-extras-10.04/posix: Mmakefile.orig
-Only in mercury-extras-10.04/quickcheck: Mmakefile.orig
-Only in mercury-extras-10.04/xml: Mmakefile.orig
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04-posix.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04-posix.patch
deleted file mode 100644
index 5739fa83d100..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04-posix.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-Only in mercury-extras-10.04/cgi: Mmakefile.orig
-Only in mercury-extras-10.04/complex_numbers: Mmakefile.orig
-Only in mercury-extras-10.04/curs: Mmakefile.orig
-Only in mercury-extras-10.04/curses: Mmakefile.orig
-Only in mercury-extras-10.04/dynamic_linking: Mmakefile.orig
-Only in mercury-extras-10.04/graphics/mercury_glut: Mmakefile.orig
-Only in mercury-extras-10.04/graphics/mercury_opengl: Mmakefile.orig
-Only in mercury-extras-10.04/graphics/mercury_tcltk: Mmakefile.orig
-Only in mercury-extras-10.04/graphics/mercury_tcltk: mtcltk.m.orig
-Only in mercury-extras-10.04/lazy_evaluation: Mmakefile.orig
-Only in mercury-extras-10.04/moose: Mmakefile.orig
-Only in mercury-extras-10.04/odbc: Mmakefile.orig
-Only in mercury-extras-10.04/odbc: odbc.m.orig
-diff -ur mercury-extras-10.04.orig/posix/Mmakefile mercury-extras-10.04/posix/Mmakefile
---- mercury-extras-10.04.orig/posix/Mmakefile 2008-09-02 21:45:54.000000000 +1200
-+++ mercury-extras-10.04/posix/Mmakefile 2010-07-20 06:50:41.000000000 +1200
-@@ -34,7 +34,7 @@
-
- .PHONY: install
- install: libposix.install
-- cp $(ADDITIONAL_HDRS) $(INSTALL_PREFIX)/lib/mercury/inc
-+ cp $(ADDITIONAL_HDRS) $(INSTALL_PREFIX)/@libdir@/mercury/inc
-
- .PHONY: clean
- clean:
-Only in mercury-extras-10.04/posix: Mmakefile.orig
-Only in mercury-extras-10.04/quickcheck: Mmakefile.orig
-Only in mercury-extras-10.04/xml: Mmakefile.orig
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04.1-curs.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04.1-curs.patch
deleted file mode 100644
index 34d91bee3d50..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04.1-curs.patch
+++ /dev/null
@@ -1,314 +0,0 @@
-diff -urN mercury-extras-10.04.1.orig/curs/curs.m mercury-extras-10.04.1/curs/curs.m
---- mercury-extras-10.04.1.orig/curs/curs.m 2006-04-21 15:37:10.000000000 +1200
-+++ mercury-extras-10.04.1/curs/curs.m 2010-09-06 19:34:04.000000000 +1200
-@@ -31,6 +31,8 @@
- :- import_module io.
- :- import_module string.
-
-+:- include_module curs__panel.
-+
- %-----------------------------------------------------------------------------%
-
- % Start a curses session (colour, unbuffered input, no echoing,
-@@ -210,90 +212,6 @@
- :- func cyan = colour.
- :- func white = colour.
-
-- %-------------------------------------------------------------------------%
-- %-------------------------------------------------------------------------%
--
-- % Panels are windows over the main display; they may be
-- % stacked, moved, ordered and hidden. Contents of panels
-- % closer to the top of the stack obscure the parts of panels
-- % they overlap that are lower in the stack.
-- %
-- :- module panel.
-- :- interface.
--
-- :- type panel.
--
-- % new(Rows, Cols, Row, Col, Attr, Panel) creates a new panel
-- % Panel whose size is given by (Rows, Cols) and whose position
-- % on the display is given by (Row, Col). The new panel starts
-- % visible and at the top of the stack. The default attributes
-- % for the panel are set to Attr.
-- %
-- :- pred new(int::in, int::in, int::in, int::in, attr::in, panel::out,
-- io::di, io::uo) is det.
--
-- % Destroy a panel.
-- %
-- :- pred delete(panel::in, io::di, io::uo) is det.
--
-- % Raise/lower a panel to the top/bottom of the stack.
-- %
-- :- pred raise(panel::in, io::di, io::uo) is det.
-- :- pred lower(panel::in, io::di, io::uo) is det.
--
-- % Hide/reveal a panel (revealing places it at the top of the stack).
-- %
-- :- pred hide(panel::in, io::di, io::uo) is det.
-- :- pred reveal(panel::in, io::di, io::uo) is det.
--
-- % Move a panel to (Row, Col) on the display.
-- %
-- :- pred relocate(panel::in, int::in, int::in, io::di, io::uo) is det.
--
-- % Clear a panel.
-- %
-- :- pred clear(panel::in, io::di, io::uo) is det.
--
-- % Move the virtual cursor to given row and column; (0, 0) are the
-- % coordinates for the upper left hand corner of the panel.
-- %
-- :- pred move(panel::in, int::in, int::in, io::di, io::uo) is det.
--
-- % Add a char/string to a panel with the given attributes.
-- % Note that char codes are passed rather than plain chars.
-- %
-- :- pred addch(panel::in, attr::in, int::in, io::di, io::uo) is det.
-- :- pred addstr(panel::in, attr::in, string::in, io::di, io::uo) is det.
--
-- % Turn on/off or set attributes that will be applied by default.
-- %
-- :- pred attr_on(panel::in, attr::in, io::di, io::uo) is det.
-- :- pred attr_off(panel::in, attr::in, io::di, io::uo) is det.
-- :- pred attr_set(panel::in, attr::in, io::di, io::uo) is det.
--
-- % Update the display (also calls doupdate).
-- % NOTE: doupdate does not call update_panels.
-- %
-- :- pred update_panels(io::di, io::uo) is det.
--
-- % Draws a border around the inside edge of the display.
-- %
-- :- pred border(panel::in, io::di, io::uo) is det.
--
-- % Draws an horizontal line of length N moving to the right.
-- %
-- :- pred hline(panel::in, int::in, int::in, io::di, io::uo) is det.
--
-- % Draws a vertical line of length N moving down.
-- %
-- :- pred vline(panel::in, int::in, int::in, io::di, io::uo) is det.
--
-- :- end_module panel.
--
-- %-------------------------------------------------------------------------%
-- %-------------------------------------------------------------------------%
--
--%-----------------------------------------------------------------------------%
- %-----------------------------------------------------------------------------%
-
- :- implementation.
-@@ -1044,210 +962,4 @@
- IO = IO0;
- ").
-
-- %-------------------------------------------------------------------------%
-- %-------------------------------------------------------------------------%
--
-- :- module panel.
--
-- :- implementation.
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_decl("C", "
--
-- #include <ncurses.h>
-- #include <panel.h>
--
-- ").
--
-- :- pragma foreign_type("C", panel, "PANEL *").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- new(Rows::in, Cols::in, Row::in, Col::in, Attr::in, Panel::out,
-- IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- WINDOW *w = newwin(Rows, Cols, Row, Col);
-- scrollok(w, TRUE);
-- wattrset(w, Attr);
-- wcolor_set(w, Attr, NULL);
-- wclear(w);
-- Panel = new_panel(w);
--
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- delete(Panel::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- delwin(panel_window(Panel));
-- del_panel(Panel);
--
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- raise(Panel::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- top_panel(Panel);
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- lower(Panel::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- bottom_panel(Panel);
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- hide(Panel::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- hide_panel(Panel);
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- reveal(Panel::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- show_panel(Panel);
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- relocate(Panel::in, Row::in, Col::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- move_panel(Panel, Row, Col);
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- clear(Panel::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- wclear(panel_window(Panel));
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- move(Panel::in, Row::in, Col::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- wmove(panel_window(Panel), Row, Col);
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- addch(Panel::in, Attr::in, CharCode::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- waddch(panel_window(Panel), (chtype)Attr | (chtype)CharCode);
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- addstr(Panel, Attr, Str, !IO) :-
-- string.foldl(
-- ( pred(Char::in, !.IO::di, !:IO::uo) is det :-
-- addch(Panel, Attr, char.to_int(Char), !IO)
-- ),
-- Str, !IO
-- ).
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- attr_on(Panel::in, Attr::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- wattron(panel_window(Panel), Attr);
-- IO = IO0;
-- ").
--
-- :- pragma foreign_proc("C",
-- attr_off(Panel::in, Attr::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- wattroff(panel_window(Panel), Attr);
-- IO = IO0;
-- ").
--
-- :- pragma foreign_proc("C",
-- attr_set(Panel::in, Attr::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- wattrset(panel_window(Panel), Attr);
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- update_panels(IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- update_panels();
-- doupdate();
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- border(Panel::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- wborder(panel_window(Panel), 0, 0, 0, 0, 0, 0, 0, 0);
-- IO = IO0;
-- ").
--
-- :- pragma foreign_proc("C",
-- hline(Panel::in, C::in, N::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- whline(panel_window(Panel), C, N);
-- IO = IO0;
-- ").
--
-- :- pragma foreign_proc("C",
-- vline(Panel::in, C::in, N::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- wvline(panel_window(Panel), C, N);
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
-- :- end_module panel.
-- %-------------------------------------------------------------------------%
-- %-------------------------------------------------------------------------%
--
--%-----------------------------------------------------------------------------%
- %-----------------------------------------------------------------------------%
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04.1-dynamic-linking.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04.1-dynamic-linking.patch
deleted file mode 100644
index e6f8dc65e566..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04.1-dynamic-linking.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -urN mercury-extras-10.04.1.orig/dynamic_linking/Mmakefile mercury-extras-10.04.1/dynamic_linking/Mmakefile
---- mercury-extras-10.04.1.orig/dynamic_linking/Mmakefile 2005-01-25 20:49:05.000000000 +1300
-+++ mercury-extras-10.04.1/dynamic_linking/Mmakefile 2010-09-06 19:35:05.000000000 +1200
-@@ -11,7 +11,7 @@
- MLFLAGS = --shared
-
- # Link in the `-ldl' library (this may not be needed on some systems)
--MLLIBS = -ldl
-+MLLIBS = -L/usr/@libdir@ -ldl
-
- # enable C-level debugging
- CFLAGS = -g
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04.1-iodbc.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04.1-iodbc.patch
deleted file mode 100644
index df25b5bc9528..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04.1-iodbc.patch
+++ /dev/null
@@ -1,69 +0,0 @@
-diff -urN mercury-extras-10.04.1.orig/odbc/Mmakefile mercury-extras-10.04.1/odbc/Mmakefile
---- mercury-extras-10.04.1.orig/odbc/Mmakefile 2006-04-03 18:19:54.000000000 +1200
-+++ mercury-extras-10.04.1/odbc/Mmakefile 2010-09-06 19:44:01.000000000 +1200
-@@ -12,7 +12,7 @@
- # The driver manager.
- # Legal values for MODBC_DRIVER are MODBC_IODBC, MODBC_UNIX, and MODBC_MS.
- # Feel free to add more (and handle them in odbc.m).
--MODBC_DRIVER=MODBC_UNIX
-+MODBC_DRIVER=MODBC_IODBC
-
- # The database.
- # Legal values for MODBC_DB are MODBC_MYSQL and MODBC_SQL_SERVER.
-@@ -41,17 +41,20 @@
- # The following are for Debian.
-
- # for unixODBC
-- MLLIBS=-lodbc -lpthread -lltdl -ldl
--
-+ MLLIBS=`iodbc-config --libs`
-+ ODBC_CFLAGS=`iodbc-config --cflags`
- # for iODBC
- # MLLIBS=-liodbc l-pthread -ldl
- # note: on a DEC Alpha using OSF1 remove the -ldl.
- endif
-
--MAIN_TARGET=odbc_test
-+MAIN_TARGET=libodbc
-
- .PHONY: depend
--depend: odbc_test.depend
-+depend: odbc.depend
-+
-+.PHONY: install
-+install: libodbc.install
-
- .PHONY: check
- check:
-@@ -62,7 +65,7 @@
- # `--no-ansi' is needed because the ODBC header files include C++-style
- # "//" comments. `--no-ansi' allows recognition of C++-style "//" comments,
- # presuming you have gcc version 2.7.1 or greater.
--MGNUCFLAGS=--no-ansi -D$(MODBC_DRIVER) -D$(MODBC_DB) -I$(ODBC_INCL_DIR)
-+MGNUCFLAGS=--no-ansi -D$(MODBC_DRIVER) -D$(MODBC_DB) $(ODBC_CFLAGS)
-
- #-----------------------------------------------------------------------------#
- #-----------------------------------------------------------------------------#
-diff -urN mercury-extras-10.04.1.orig/odbc/odbc.m mercury-extras-10.04.1/odbc/odbc.m
---- mercury-extras-10.04.1.orig/odbc/odbc.m 2006-08-31 23:09:50.000000000 +1200
-+++ mercury-extras-10.04.1/odbc/odbc.m 2010-09-06 19:44:01.000000000 +1200
-@@ -2000,8 +2000,8 @@
- ** Arbitrary size, only needs to hold a
- ** descriptive string like ""SQL Server"".
- */
-- String new_dsn;
-- String new_desc;
-+ LPSTR new_dsn;
-+ LPSTR new_desc;
- SWORD dsn_len;
- SWORD desc_len;
- SQLRETURN rc;
-@@ -2335,7 +2335,7 @@
- SQLSMALLINT msg_len;
- UCHAR message[SQL_MAX_MESSAGE_LENGTH];
- UCHAR sql_state[SQL_SQLSTATE_SIZE + 1];
-- String mercury_message;
-+ LPSTR mercury_message;
- MR_Word new_message;
-
- MR_ASSERT_IMPLY(connection_handle == SQL_NULL_HDBC,
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04.1-lex.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04.1-lex.patch
deleted file mode 100644
index b0d7dabf1d73..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04.1-lex.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-diff -urN lex/Mmakefile lex/Mmakefile
---- lex/Mmakefile 1970-01-01 12:00:00.000000000 +1200
-+++ lex/Mmakefile 2010-09-06 19:36:37.000000000 +1200
-@@ -0,0 +1,29 @@
-+# Copyright (C) 2001 Ralph Becket <rbeck@microsoft.com>
-+# Copyright (C) 2002 The University of Melbourne
-+
-+# To build, do the following:
-+#
-+# $ mmake depend
-+# $ mmake all
-+# $ mmake install
-+#
-+# If you have problems, try the following instead:
-+#
-+# $ mmake depend
-+# $ mmake all
-+# $ mmake liblex.install
-+# $ mmake libregex.install
-+
-+MAIN_TARGET = all
-+
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
-+.PHONEY: all depend install
-+
-+all: liblex libregex
-+
-+depend: lex.depend regex.depend
-+
-+install:
-+ $(MMAKE) liblex.install
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04.1-mercury-glut.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04.1-mercury-glut.patch
deleted file mode 100644
index cf27cb576aa0..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04.1-mercury-glut.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-diff -urN mercury-extras-10.04.1.orig/graphics/mercury_glut/Mmakefile mercury-extras-10.04.1/graphics/mercury_glut/Mmakefile
---- mercury-extras-10.04.1.orig/graphics/mercury_glut/Mmakefile 2006-03-30 14:52:44.000000000 +1200
-+++ mercury-extras-10.04.1/graphics/mercury_glut/Mmakefile 2010-09-06 19:38:06.000000000 +1200
-@@ -13,10 +13,10 @@
- # The following libraries are for X on Linux (Debian) using Mesa.
-
- # Libaries required by X windows.
--X_LIBS = -lX11 -lXext -lXt -lXi -lSM -lICE -L/usr/X11R6/lib
-+#X_LIBS = -lX11 -lXext -lXt -lXi -lSM -lICE -L/usr/X11R6/lib
-
- # Libraries required by OpenGL.
--GL_LIBS = -lGL -LGL
-+#GL_LIBS = -lGL -LGL
-
- MCFLAGS-mercury_glut+=--no-warn-nothing-exported --no-warn-interface-imports
-
-@@ -26,7 +26,7 @@
- MGNUCFLAGS = --pic-reg
- EXTRA_MLFLAGS = -shared
-
--MLLIBS = -lglut $(X_LIBS) $(GL_LIBS)
-+MLLIBS = -lglut
-
- depend: mercury_glut.depend
-
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04.1-mercury-opengl.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04.1-mercury-opengl.patch
deleted file mode 100644
index 222d13cc5417..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04.1-mercury-opengl.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-diff -urN mercury-extras-10.04.1.orig/graphics/mercury_opengl/Mmakefile mercury-extras-10.04.1/graphics/mercury_opengl/Mmakefile
---- mercury-extras-10.04.1.orig/graphics/mercury_opengl/Mmakefile 2007-10-11 19:21:31.000000000 +1300
-+++ mercury-extras-10.04.1/graphics/mercury_opengl/Mmakefile 2010-09-06 19:40:05.000000000 +1200
-@@ -17,7 +17,8 @@
-
- # Specify what libraries we need to link against for OpenGL on this system.
- # (The following works on Debian with mesa as the OpenGL implementation).
--GL_LIBS = -lGL -lGLU -L/usr/X11R6/lib -lX11 -lXt -lICE -lXext -lSM
-+GL_LIBS = `pkg-config --libs gl` `pkg-config --libs glu`
-+GL_CFLAGS = `pkg-config --cflags gl` `pkg-config --cflags glu`
-
- # Don't issue a warning because mercury_opengl doesn't export anything.
- MCFLAGS-mercury_opengl = --no-warn-nothing-exported
-@@ -26,7 +27,7 @@
- # implemented completely.
- MCFLAGS-mogl = --no-warn-inferred-erroneous
-
--MCFLAGS = --halt-at-warn --intermodule-optimization
-+MCFLAGS = --halt-at-warn --intermodule-optimization $(GL_CFLAGS)
-
- MLLIBS = $(GL_LIBS) $(EXTRA_MLLIBS)
-
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04.1-mercury-tcltk.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04.1-mercury-tcltk.patch
deleted file mode 100644
index 32102bedf2c5..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04.1-mercury-tcltk.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-diff -urN mercury-extras-10.04.1.orig/graphics/mercury_tcltk/Mmakefile mercury-extras-10.04.1/graphics/mercury_tcltk/Mmakefile
---- mercury-extras-10.04.1.orig/graphics/mercury_tcltk/Mmakefile 2005-08-15 16:11:42.000000000 +1200
-+++ mercury-extras-10.04.1/graphics/mercury_tcltk/Mmakefile 2010-09-06 19:39:01.000000000 +1200
-@@ -8,10 +8,7 @@
-
- # You may need to modify the line below
-
--MLLIBS = -ltk8.4 -ltcl8.4 -L/usr/X11R6/lib -lX11 -lXmu -lXext -lm -ldl \
-- -lXt -lICE -lSM
--
--MLFLAGS = -R/usr/X11R6/lib
-+MLLIBS = -ltk -ltcl
-
- # On some Linux machines you may need to let mgnuc know where the
- # tcl/tk header files are.
-diff -urN mercury-extras-10.04.1.orig/graphics/mercury_tcltk/mtcltk.m mercury-extras-10.04.1/graphics/mercury_tcltk/mtcltk.m
---- mercury-extras-10.04.1.orig/graphics/mercury_tcltk/mtcltk.m 2007-08-21 14:47:37.000000000 +1200
-+++ mercury-extras-10.04.1/graphics/mercury_tcltk/mtcltk.m 2010-09-06 19:39:01.000000000 +1200
-@@ -154,7 +154,7 @@
- MR_incr_hp(argv_word, argc + 1);
- argv = (char **) argv_word;
-
-- for (i = 0, l = Args; l != list_empty(); l = list_tail(l), i++) {
-+ for (i = 0, l = Args; l != MR_list_empty(); l = MR_list_tail(l), i++) {
- argv[i] = (char *) MR_list_head(l);
- }
-
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04.1-no-java-grade-no-erlang-grade.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04.1-no-java-grade-no-erlang-grade.patch
deleted file mode 100644
index 93f3a7a08e75..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04.1-no-java-grade-no-erlang-grade.patch
+++ /dev/null
@@ -1,180 +0,0 @@
-diff -urN mercury-extras-10.04.1.orig/cgi/Mmakefile mercury-extras-10.04.1/cgi/Mmakefile
---- mercury-extras-10.04.1.orig/cgi/Mmakefile 2004-07-30 19:01:07.000000000 +1200
-+++ mercury-extras-10.04.1/cgi/Mmakefile 2010-09-06 19:41:29.000000000 +1200
-@@ -12,6 +12,9 @@
-
- MAIN_TARGET = $(LIBRARY)
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- MCFLAGS-mercury_www = --no-warn-nothing-exported
-
- depend: mercury_www.depend
-diff -urN mercury-extras-10.04.1.orig/complex_numbers/Mmakefile mercury-extras-10.04.1/complex_numbers/Mmakefile
---- mercury-extras-10.04.1.orig/complex_numbers/Mmakefile 2003-01-16 23:44:11.000000000 +1300
-+++ mercury-extras-10.04.1/complex_numbers/Mmakefile 2010-09-06 19:41:29.000000000 +1200
-@@ -10,6 +10,9 @@
-
- MAIN_TARGET = all
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- all: libcomplex_numbers
-
- depend: complex_numbers.depend
-diff -urN mercury-extras-10.04.1.orig/curs/Mmakefile mercury-extras-10.04.1/curs/Mmakefile
---- mercury-extras-10.04.1.orig/curs/Mmakefile 2003-01-16 23:44:14.000000000 +1300
-+++ mercury-extras-10.04.1/curs/Mmakefile 2010-09-06 19:41:29.000000000 +1200
-@@ -26,7 +26,8 @@
- # Omit this line if you want to install the default grades.
- # Edit this line if you want to install with different grades.
- #
--#LIBGRADES = asm_fast.gc hlc.gc
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-
- # The following standard libraries must be linked against in any
- # application using the curs library (i.e. MLLIBS must include
-diff -urN mercury-extras-10.04.1.orig/curses/Mmakefile mercury-extras-10.04.1/curses/Mmakefile
---- mercury-extras-10.04.1.orig/curses/Mmakefile 2003-01-16 23:44:15.000000000 +1300
-+++ mercury-extras-10.04.1/curses/Mmakefile 2010-09-06 19:41:29.000000000 +1200
-@@ -13,6 +13,9 @@
- # this line to include the appropriate curses library for your OS.
- MLLIBS = -lncurses
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- -include ../Mmake.params
-
- default_target: libmcurses
-diff -urN mercury-extras-10.04.1.orig/dynamic_linking/Mmakefile mercury-extras-10.04.1/dynamic_linking/Mmakefile
---- mercury-extras-10.04.1.orig/dynamic_linking/Mmakefile 2005-01-25 20:49:05.000000000 +1300
-+++ mercury-extras-10.04.1/dynamic_linking/Mmakefile 2010-09-06 19:41:29.000000000 +1200
-@@ -17,6 +17,9 @@
- CFLAGS = -g
- MLFLAGS += --no-strip
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- -include ../Mmake.params
-
- main_target: libdl
-diff -urN mercury-extras-10.04.1.orig/graphics/mercury_glut/Mmakefile mercury-extras-10.04.1/graphics/mercury_glut/Mmakefile
---- mercury-extras-10.04.1.orig/graphics/mercury_glut/Mmakefile 2006-03-30 14:52:44.000000000 +1200
-+++ mercury-extras-10.04.1/graphics/mercury_glut/Mmakefile 2010-09-06 19:41:29.000000000 +1200
-@@ -10,6 +10,9 @@
-
- MAIN_TARGET = libmercury_glut
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- # The following libraries are for X on Linux (Debian) using Mesa.
-
- # Libaries required by X windows.
-diff -urN mercury-extras-10.04.1.orig/graphics/mercury_opengl/Mmakefile mercury-extras-10.04.1/graphics/mercury_opengl/Mmakefile
---- mercury-extras-10.04.1.orig/graphics/mercury_opengl/Mmakefile 2007-10-11 19:21:31.000000000 +1300
-+++ mercury-extras-10.04.1/graphics/mercury_opengl/Mmakefile 2010-09-06 19:41:29.000000000 +1200
-@@ -15,6 +15,9 @@
-
- MAIN_TARGET = libmercury_opengl
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- # Specify what libraries we need to link against for OpenGL on this system.
- # (The following works on Debian with mesa as the OpenGL implementation).
- GL_LIBS = -lGL -lGLU -L/usr/X11R6/lib -lX11 -lXt -lICE -lXext -lSM
-diff -urN mercury-extras-10.04.1.orig/graphics/mercury_tcltk/Mmakefile mercury-extras-10.04.1/graphics/mercury_tcltk/Mmakefile
---- mercury-extras-10.04.1.orig/graphics/mercury_tcltk/Mmakefile 2005-08-15 16:11:42.000000000 +1200
-+++ mercury-extras-10.04.1/graphics/mercury_tcltk/Mmakefile 2010-09-06 19:41:29.000000000 +1200
-@@ -21,6 +21,9 @@
-
- MAIN_TARGET = $(LIBRARY)
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- depend: mercury_tcltk.depend
-
- install: libmercury_tcltk.install
-diff -urN mercury-extras-10.04.1.orig/lazy_evaluation/Mmakefile mercury-extras-10.04.1/lazy_evaluation/Mmakefile
---- mercury-extras-10.04.1.orig/lazy_evaluation/Mmakefile 2003-01-16 23:44:17.000000000 +1300
-+++ mercury-extras-10.04.1/lazy_evaluation/Mmakefile 2010-09-06 19:41:29.000000000 +1200
-@@ -4,6 +4,9 @@
- # Public License - see the file COPYING.LIB in the Mercury distribution.
- #-----------------------------------------------------------------------------#
- INSTALL_PREFIX := $(INSTALL_PREFIX)/extras
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- -include ../Mmake.params
- default_target: all
- depend: lazy_list.depend lazy_list_test.depend
-diff -urN mercury-extras-10.04.1.orig/moose/Mmakefile mercury-extras-10.04.1/moose/Mmakefile
---- mercury-extras-10.04.1.orig/moose/Mmakefile 2003-01-16 23:44:20.000000000 +1300
-+++ mercury-extras-10.04.1/moose/Mmakefile 2010-09-06 19:41:29.000000000 +1200
-@@ -6,6 +6,8 @@
-
- # GRADE = asm_fast.gc.debug
- # GRADE = asm_fast.gc.prof
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-
- # MCFLAGS = -O6
- # MCFLAGS = --intermodule-optimization -O6
-diff -urN mercury-extras-10.04.1.orig/odbc/Mmakefile mercury-extras-10.04.1/odbc/Mmakefile
---- mercury-extras-10.04.1.orig/odbc/Mmakefile 2006-04-03 18:19:54.000000000 +1200
-+++ mercury-extras-10.04.1/odbc/Mmakefile 2010-09-06 19:41:29.000000000 +1200
-@@ -8,6 +8,8 @@
-
- #-----------------------------------------------------------------------------#
- # Configuration
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-
- # The driver manager.
- # Legal values for MODBC_DRIVER are MODBC_IODBC, MODBC_UNIX, and MODBC_MS.
-diff -urN mercury-extras-10.04.1.orig/posix/Mmakefile mercury-extras-10.04.1/posix/Mmakefile
---- mercury-extras-10.04.1.orig/posix/Mmakefile 2008-09-02 21:45:54.000000000 +1200
-+++ mercury-extras-10.04.1/posix/Mmakefile 2010-09-06 19:41:29.000000000 +1200
-@@ -8,6 +8,9 @@
-
- -include ../Mmake.params
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- # The following is needed (on some systems) to enable declarations of
- # Posix functions in standard C header files.
- MGNUCFLAGS = --no-ansi
-diff -urN mercury-extras-10.04.1.orig/quickcheck/Mmakefile mercury-extras-10.04.1/quickcheck/Mmakefile
---- mercury-extras-10.04.1.orig/quickcheck/Mmakefile 2003-01-16 23:44:24.000000000 +1300
-+++ mercury-extras-10.04.1/quickcheck/Mmakefile 2010-09-06 19:41:29.000000000 +1200
-@@ -10,6 +10,9 @@
-
- MAIN_TARGET = all
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- .PHONY: depend
- depend: qcheck.depend test_qcheck.depend
-
-diff -urN mercury-extras-10.04.1.orig/xml/Mmakefile mercury-extras-10.04.1/xml/Mmakefile
---- mercury-extras-10.04.1.orig/xml/Mmakefile 2002-03-06 23:10:31.000000000 +1300
-+++ mercury-extras-10.04.1/xml/Mmakefile 2010-09-06 19:41:29.000000000 +1200
-@@ -8,6 +8,9 @@
-
- INSTALL_PREFIX := $(INSTALL_PREFIX)/extras
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- .PHONY: default_target
- default_target: tryit libxml
-
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04.1-odbc.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04.1-odbc.patch
deleted file mode 100644
index 3216b037220e..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04.1-odbc.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-diff -urN mercury-extras-10.04.1.orig/odbc/Mmakefile mercury-extras-10.04.1/odbc/Mmakefile
---- mercury-extras-10.04.1.orig/odbc/Mmakefile 2006-04-03 18:19:54.000000000 +1200
-+++ mercury-extras-10.04.1/odbc/Mmakefile 2010-09-06 19:42:52.000000000 +1200
-@@ -41,17 +41,20 @@
- # The following are for Debian.
-
- # for unixODBC
-- MLLIBS=-lodbc -lpthread -lltdl -ldl
--
-+ MLLIBS=`odbc_config --libs`
-+ ODBC_CFLAGS=`odbc_config --cflags`
- # for iODBC
- # MLLIBS=-liodbc l-pthread -ldl
- # note: on a DEC Alpha using OSF1 remove the -ldl.
- endif
-
--MAIN_TARGET=odbc_test
-+MAIN_TARGET=libodbc
-
- .PHONY: depend
--depend: odbc_test.depend
-+depend: odbc.depend
-+
-+.PHONY: install
-+install: libodbc.install
-
- .PHONY: check
- check:
-@@ -62,7 +65,7 @@
- # `--no-ansi' is needed because the ODBC header files include C++-style
- # "//" comments. `--no-ansi' allows recognition of C++-style "//" comments,
- # presuming you have gcc version 2.7.1 or greater.
--MGNUCFLAGS=--no-ansi -D$(MODBC_DRIVER) -D$(MODBC_DB) -I$(ODBC_INCL_DIR)
-+MGNUCFLAGS=--no-ansi -D$(MODBC_DRIVER) -D$(MODBC_DB) $(ODBC_CFLAGS)
-
- #-----------------------------------------------------------------------------#
- #-----------------------------------------------------------------------------#
-diff -urN mercury-extras-10.04.1.orig/odbc/odbc.m mercury-extras-10.04.1/odbc/odbc.m
---- mercury-extras-10.04.1.orig/odbc/odbc.m 2006-08-31 23:09:50.000000000 +1200
-+++ mercury-extras-10.04.1/odbc/odbc.m 2010-09-06 19:42:52.000000000 +1200
-@@ -2000,8 +2000,8 @@
- ** Arbitrary size, only needs to hold a
- ** descriptive string like ""SQL Server"".
- */
-- String new_dsn;
-- String new_desc;
-+ LPSTR new_dsn;
-+ LPSTR new_desc;
- SWORD dsn_len;
- SWORD desc_len;
- SQLRETURN rc;
-@@ -2335,7 +2335,7 @@
- SQLSMALLINT msg_len;
- UCHAR message[SQL_MAX_MESSAGE_LENGTH];
- UCHAR sql_state[SQL_SQLSTATE_SIZE + 1];
-- String mercury_message;
-+ LPSTR mercury_message;
- MR_Word new_message;
-
- MR_ASSERT_IMPLY(connection_handle == SQL_NULL_HDBC,
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04.1-posix.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04.1-posix.patch
deleted file mode 100644
index abfecf913d2f..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04.1-posix.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -urN mercury-extras-10.04.1.orig/posix/Mmakefile mercury-extras-10.04.1/posix/Mmakefile
---- mercury-extras-10.04.1.orig/posix/Mmakefile 2008-09-02 21:45:54.000000000 +1200
-+++ mercury-extras-10.04.1/posix/Mmakefile 2010-09-06 19:40:40.000000000 +1200
-@@ -34,7 +34,7 @@
-
- .PHONY: install
- install: libposix.install
-- cp $(ADDITIONAL_HDRS) $(INSTALL_PREFIX)/lib/mercury/inc
-+ cp $(ADDITIONAL_HDRS) $(INSTALL_PREFIX)/@libdir@/mercury/inc
-
- .PHONY: clean
- clean:
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04.2-curs.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04.2-curs.patch
deleted file mode 100644
index af2f6177939b..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04.2-curs.patch
+++ /dev/null
@@ -1,314 +0,0 @@
-diff -urN mercury-extras-10.04.2.orig/curs/curs.m mercury-extras-10.04.1/curs/curs.m
---- mercury-extras-10.04.2.orig/curs/curs.m 2006-04-21 15:37:10.000000000 +1200
-+++ mercury-extras-10.04.2/curs/curs.m 2010-09-06 19:34:04.000000000 +1200
-@@ -31,6 +31,8 @@
- :- import_module io.
- :- import_module string.
-
-+:- include_module curs__panel.
-+
- %-----------------------------------------------------------------------------%
-
- % Start a curses session (colour, unbuffered input, no echoing,
-@@ -210,90 +212,6 @@
- :- func cyan = colour.
- :- func white = colour.
-
-- %-------------------------------------------------------------------------%
-- %-------------------------------------------------------------------------%
--
-- % Panels are windows over the main display; they may be
-- % stacked, moved, ordered and hidden. Contents of panels
-- % closer to the top of the stack obscure the parts of panels
-- % they overlap that are lower in the stack.
-- %
-- :- module panel.
-- :- interface.
--
-- :- type panel.
--
-- % new(Rows, Cols, Row, Col, Attr, Panel) creates a new panel
-- % Panel whose size is given by (Rows, Cols) and whose position
-- % on the display is given by (Row, Col). The new panel starts
-- % visible and at the top of the stack. The default attributes
-- % for the panel are set to Attr.
-- %
-- :- pred new(int::in, int::in, int::in, int::in, attr::in, panel::out,
-- io::di, io::uo) is det.
--
-- % Destroy a panel.
-- %
-- :- pred delete(panel::in, io::di, io::uo) is det.
--
-- % Raise/lower a panel to the top/bottom of the stack.
-- %
-- :- pred raise(panel::in, io::di, io::uo) is det.
-- :- pred lower(panel::in, io::di, io::uo) is det.
--
-- % Hide/reveal a panel (revealing places it at the top of the stack).
-- %
-- :- pred hide(panel::in, io::di, io::uo) is det.
-- :- pred reveal(panel::in, io::di, io::uo) is det.
--
-- % Move a panel to (Row, Col) on the display.
-- %
-- :- pred relocate(panel::in, int::in, int::in, io::di, io::uo) is det.
--
-- % Clear a panel.
-- %
-- :- pred clear(panel::in, io::di, io::uo) is det.
--
-- % Move the virtual cursor to given row and column; (0, 0) are the
-- % coordinates for the upper left hand corner of the panel.
-- %
-- :- pred move(panel::in, int::in, int::in, io::di, io::uo) is det.
--
-- % Add a char/string to a panel with the given attributes.
-- % Note that char codes are passed rather than plain chars.
-- %
-- :- pred addch(panel::in, attr::in, int::in, io::di, io::uo) is det.
-- :- pred addstr(panel::in, attr::in, string::in, io::di, io::uo) is det.
--
-- % Turn on/off or set attributes that will be applied by default.
-- %
-- :- pred attr_on(panel::in, attr::in, io::di, io::uo) is det.
-- :- pred attr_off(panel::in, attr::in, io::di, io::uo) is det.
-- :- pred attr_set(panel::in, attr::in, io::di, io::uo) is det.
--
-- % Update the display (also calls doupdate).
-- % NOTE: doupdate does not call update_panels.
-- %
-- :- pred update_panels(io::di, io::uo) is det.
--
-- % Draws a border around the inside edge of the display.
-- %
-- :- pred border(panel::in, io::di, io::uo) is det.
--
-- % Draws an horizontal line of length N moving to the right.
-- %
-- :- pred hline(panel::in, int::in, int::in, io::di, io::uo) is det.
--
-- % Draws a vertical line of length N moving down.
-- %
-- :- pred vline(panel::in, int::in, int::in, io::di, io::uo) is det.
--
-- :- end_module panel.
--
-- %-------------------------------------------------------------------------%
-- %-------------------------------------------------------------------------%
--
--%-----------------------------------------------------------------------------%
- %-----------------------------------------------------------------------------%
-
- :- implementation.
-@@ -1044,210 +962,4 @@
- IO = IO0;
- ").
-
-- %-------------------------------------------------------------------------%
-- %-------------------------------------------------------------------------%
--
-- :- module panel.
--
-- :- implementation.
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_decl("C", "
--
-- #include <ncurses.h>
-- #include <panel.h>
--
-- ").
--
-- :- pragma foreign_type("C", panel, "PANEL *").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- new(Rows::in, Cols::in, Row::in, Col::in, Attr::in, Panel::out,
-- IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- WINDOW *w = newwin(Rows, Cols, Row, Col);
-- scrollok(w, TRUE);
-- wattrset(w, Attr);
-- wcolor_set(w, Attr, NULL);
-- wclear(w);
-- Panel = new_panel(w);
--
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- delete(Panel::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- delwin(panel_window(Panel));
-- del_panel(Panel);
--
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- raise(Panel::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- top_panel(Panel);
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- lower(Panel::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- bottom_panel(Panel);
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- hide(Panel::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- hide_panel(Panel);
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- reveal(Panel::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- show_panel(Panel);
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- relocate(Panel::in, Row::in, Col::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- move_panel(Panel, Row, Col);
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- clear(Panel::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- wclear(panel_window(Panel));
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- move(Panel::in, Row::in, Col::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- wmove(panel_window(Panel), Row, Col);
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- addch(Panel::in, Attr::in, CharCode::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- waddch(panel_window(Panel), (chtype)Attr | (chtype)CharCode);
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- addstr(Panel, Attr, Str, !IO) :-
-- string.foldl(
-- ( pred(Char::in, !.IO::di, !:IO::uo) is det :-
-- addch(Panel, Attr, char.to_int(Char), !IO)
-- ),
-- Str, !IO
-- ).
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- attr_on(Panel::in, Attr::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- wattron(panel_window(Panel), Attr);
-- IO = IO0;
-- ").
--
-- :- pragma foreign_proc("C",
-- attr_off(Panel::in, Attr::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- wattroff(panel_window(Panel), Attr);
-- IO = IO0;
-- ").
--
-- :- pragma foreign_proc("C",
-- attr_set(Panel::in, Attr::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- wattrset(panel_window(Panel), Attr);
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- update_panels(IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- update_panels();
-- doupdate();
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
--
-- :- pragma foreign_proc("C",
-- border(Panel::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- wborder(panel_window(Panel), 0, 0, 0, 0, 0, 0, 0, 0);
-- IO = IO0;
-- ").
--
-- :- pragma foreign_proc("C",
-- hline(Panel::in, C::in, N::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- whline(panel_window(Panel), C, N);
-- IO = IO0;
-- ").
--
-- :- pragma foreign_proc("C",
-- vline(Panel::in, C::in, N::in, IO0::di, IO::uo),
-- [will_not_call_mercury, promise_pure],
-- "
-- wvline(panel_window(Panel), C, N);
-- IO = IO0;
-- ").
--
-- %-------------------------------------------------------------------------%
-- :- end_module panel.
-- %-------------------------------------------------------------------------%
-- %-------------------------------------------------------------------------%
--
--%-----------------------------------------------------------------------------%
- %-----------------------------------------------------------------------------%
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04.2-dynamic-linking.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04.2-dynamic-linking.patch
deleted file mode 100644
index 69df48eafc9c..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04.2-dynamic-linking.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -urN mercury-extras-10.04.2.orig/dynamic_linking/Mmakefile mercury-extras-10.04.1/dynamic_linking/Mmakefile
---- mercury-extras-10.04.2.orig/dynamic_linking/Mmakefile 2005-01-25 20:49:05.000000000 +1300
-+++ mercury-extras-10.04.2/dynamic_linking/Mmakefile 2010-09-06 19:35:05.000000000 +1200
-@@ -11,7 +11,7 @@
- MLFLAGS = --shared
-
- # Link in the `-ldl' library (this may not be needed on some systems)
--MLLIBS = -ldl
-+MLLIBS = -L/usr/@libdir@ -ldl
-
- # enable C-level debugging
- CFLAGS = -g
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04.2-iodbc.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04.2-iodbc.patch
deleted file mode 100644
index 1a441f9572dd..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04.2-iodbc.patch
+++ /dev/null
@@ -1,69 +0,0 @@
-diff -urN mercury-extras-10.04.2.orig/odbc/Mmakefile mercury-extras-10.04.1/odbc/Mmakefile
---- mercury-extras-10.04.2.orig/odbc/Mmakefile 2006-04-03 18:19:54.000000000 +1200
-+++ mercury-extras-10.04.2/odbc/Mmakefile 2010-09-06 19:44:01.000000000 +1200
-@@ -12,7 +12,7 @@
- # The driver manager.
- # Legal values for MODBC_DRIVER are MODBC_IODBC, MODBC_UNIX, and MODBC_MS.
- # Feel free to add more (and handle them in odbc.m).
--MODBC_DRIVER=MODBC_UNIX
-+MODBC_DRIVER=MODBC_IODBC
-
- # The database.
- # Legal values for MODBC_DB are MODBC_MYSQL and MODBC_SQL_SERVER.
-@@ -41,17 +41,20 @@
- # The following are for Debian.
-
- # for unixODBC
-- MLLIBS=-lodbc -lpthread -lltdl -ldl
--
-+ MLLIBS=`iodbc-config --libs`
-+ ODBC_CFLAGS=`iodbc-config --cflags`
- # for iODBC
- # MLLIBS=-liodbc l-pthread -ldl
- # note: on a DEC Alpha using OSF1 remove the -ldl.
- endif
-
--MAIN_TARGET=odbc_test
-+MAIN_TARGET=libodbc
-
- .PHONY: depend
--depend: odbc_test.depend
-+depend: odbc.depend
-+
-+.PHONY: install
-+install: libodbc.install
-
- .PHONY: check
- check:
-@@ -62,7 +65,7 @@
- # `--no-ansi' is needed because the ODBC header files include C++-style
- # "//" comments. `--no-ansi' allows recognition of C++-style "//" comments,
- # presuming you have gcc version 2.7.1 or greater.
--MGNUCFLAGS=--no-ansi -D$(MODBC_DRIVER) -D$(MODBC_DB) -I$(ODBC_INCL_DIR)
-+MGNUCFLAGS=--no-ansi -D$(MODBC_DRIVER) -D$(MODBC_DB) $(ODBC_CFLAGS)
-
- #-----------------------------------------------------------------------------#
- #-----------------------------------------------------------------------------#
-diff -urN mercury-extras-10.04.2.orig/odbc/odbc.m mercury-extras-10.04.1/odbc/odbc.m
---- mercury-extras-10.04.2.orig/odbc/odbc.m 2006-08-31 23:09:50.000000000 +1200
-+++ mercury-extras-10.04.2/odbc/odbc.m 2010-09-06 19:44:01.000000000 +1200
-@@ -2000,8 +2000,8 @@
- ** Arbitrary size, only needs to hold a
- ** descriptive string like ""SQL Server"".
- */
-- String new_dsn;
-- String new_desc;
-+ LPSTR new_dsn;
-+ LPSTR new_desc;
- SWORD dsn_len;
- SWORD desc_len;
- SQLRETURN rc;
-@@ -2335,7 +2335,7 @@
- SQLSMALLINT msg_len;
- UCHAR message[SQL_MAX_MESSAGE_LENGTH];
- UCHAR sql_state[SQL_SQLSTATE_SIZE + 1];
-- String mercury_message;
-+ LPSTR mercury_message;
- MR_Word new_message;
-
- MR_ASSERT_IMPLY(connection_handle == SQL_NULL_HDBC,
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04.2-lex.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04.2-lex.patch
deleted file mode 100644
index b0d7dabf1d73..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04.2-lex.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-diff -urN lex/Mmakefile lex/Mmakefile
---- lex/Mmakefile 1970-01-01 12:00:00.000000000 +1200
-+++ lex/Mmakefile 2010-09-06 19:36:37.000000000 +1200
-@@ -0,0 +1,29 @@
-+# Copyright (C) 2001 Ralph Becket <rbeck@microsoft.com>
-+# Copyright (C) 2002 The University of Melbourne
-+
-+# To build, do the following:
-+#
-+# $ mmake depend
-+# $ mmake all
-+# $ mmake install
-+#
-+# If you have problems, try the following instead:
-+#
-+# $ mmake depend
-+# $ mmake all
-+# $ mmake liblex.install
-+# $ mmake libregex.install
-+
-+MAIN_TARGET = all
-+
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
-+.PHONEY: all depend install
-+
-+all: liblex libregex
-+
-+depend: lex.depend regex.depend
-+
-+install:
-+ $(MMAKE) liblex.install
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04.2-mercury-glut.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04.2-mercury-glut.patch
deleted file mode 100644
index 69479b7f317d..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04.2-mercury-glut.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-diff -urN mercury-extras-10.04.2.orig/graphics/mercury_glut/Mmakefile mercury-extras-10.04.1/graphics/mercury_glut/Mmakefile
---- mercury-extras-10.04.2.orig/graphics/mercury_glut/Mmakefile 2006-03-30 14:52:44.000000000 +1200
-+++ mercury-extras-10.04.2/graphics/mercury_glut/Mmakefile 2010-09-06 19:38:06.000000000 +1200
-@@ -13,10 +13,10 @@
- # The following libraries are for X on Linux (Debian) using Mesa.
-
- # Libaries required by X windows.
--X_LIBS = -lX11 -lXext -lXt -lXi -lSM -lICE -L/usr/X11R6/lib
-+#X_LIBS = -lX11 -lXext -lXt -lXi -lSM -lICE -L/usr/X11R6/lib
-
- # Libraries required by OpenGL.
--GL_LIBS = -lGL -LGL
-+#GL_LIBS = -lGL -LGL
-
- MCFLAGS-mercury_glut+=--no-warn-nothing-exported --no-warn-interface-imports
-
-@@ -26,7 +26,7 @@
- MGNUCFLAGS = --pic-reg
- EXTRA_MLFLAGS = -shared
-
--MLLIBS = -lglut $(X_LIBS) $(GL_LIBS)
-+MLLIBS = -lglut
-
- depend: mercury_glut.depend
-
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04.2-mercury-opengl.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04.2-mercury-opengl.patch
deleted file mode 100644
index 6d1233f17210..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04.2-mercury-opengl.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-diff -urN mercury-extras-10.04.2.orig/graphics/mercury_opengl/Mmakefile mercury-extras-10.04.1/graphics/mercury_opengl/Mmakefile
---- mercury-extras-10.04.2.orig/graphics/mercury_opengl/Mmakefile 2007-10-11 19:21:31.000000000 +1300
-+++ mercury-extras-10.04.2/graphics/mercury_opengl/Mmakefile 2010-09-06 19:40:05.000000000 +1200
-@@ -17,7 +17,8 @@
-
- # Specify what libraries we need to link against for OpenGL on this system.
- # (The following works on Debian with mesa as the OpenGL implementation).
--GL_LIBS = -lGL -lGLU -L/usr/X11R6/lib -lX11 -lXt -lICE -lXext -lSM
-+GL_LIBS = `pkg-config --libs gl` `pkg-config --libs glu`
-+GL_CFLAGS = `pkg-config --cflags gl` `pkg-config --cflags glu`
-
- # Don't issue a warning because mercury_opengl doesn't export anything.
- MCFLAGS-mercury_opengl = --no-warn-nothing-exported
-@@ -26,7 +27,7 @@
- # implemented completely.
- MCFLAGS-mogl = --no-warn-inferred-erroneous
-
--MCFLAGS = --halt-at-warn --intermodule-optimization
-+MCFLAGS = --halt-at-warn --intermodule-optimization $(GL_CFLAGS)
-
- MLLIBS = $(GL_LIBS) $(EXTRA_MLLIBS)
-
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04.2-mercury-tcltk.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04.2-mercury-tcltk.patch
deleted file mode 100644
index edf9e658562d..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04.2-mercury-tcltk.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-diff -urN mercury-extras-10.04.2.orig/graphics/mercury_tcltk/Mmakefile mercury-extras-10.04.1/graphics/mercury_tcltk/Mmakefile
---- mercury-extras-10.04.2.orig/graphics/mercury_tcltk/Mmakefile 2005-08-15 16:11:42.000000000 +1200
-+++ mercury-extras-10.04.2/graphics/mercury_tcltk/Mmakefile 2010-09-06 19:39:01.000000000 +1200
-@@ -8,10 +8,7 @@
-
- # You may need to modify the line below
-
--MLLIBS = -ltk8.4 -ltcl8.4 -L/usr/X11R6/lib -lX11 -lXmu -lXext -lm -ldl \
-- -lXt -lICE -lSM
--
--MLFLAGS = -R/usr/X11R6/lib
-+MLLIBS = -ltk -ltcl
-
- # On some Linux machines you may need to let mgnuc know where the
- # tcl/tk header files are.
-diff -urN mercury-extras-10.04.2.orig/graphics/mercury_tcltk/mtcltk.m mercury-extras-10.04.1/graphics/mercury_tcltk/mtcltk.m
---- mercury-extras-10.04.2.orig/graphics/mercury_tcltk/mtcltk.m 2007-08-21 14:47:37.000000000 +1200
-+++ mercury-extras-10.04.2/graphics/mercury_tcltk/mtcltk.m 2010-09-06 19:39:01.000000000 +1200
-@@ -154,7 +154,7 @@
- MR_incr_hp(argv_word, argc + 1);
- argv = (char **) argv_word;
-
-- for (i = 0, l = Args; l != list_empty(); l = list_tail(l), i++) {
-+ for (i = 0, l = Args; l != MR_list_empty(); l = MR_list_tail(l), i++) {
- argv[i] = (char *) MR_list_head(l);
- }
-
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04.2-no-java-grade-no-erlang-grade.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04.2-no-java-grade-no-erlang-grade.patch
deleted file mode 100644
index bcae7a09b4ea..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04.2-no-java-grade-no-erlang-grade.patch
+++ /dev/null
@@ -1,193 +0,0 @@
-diff -ur mercury-extras-10.04.2.orig/cgi/Mmakefile mercury-extras-10.04.2/cgi/Mmakefile
---- mercury-extras-10.04.2.orig/cgi/Mmakefile 2004-07-30 19:01:07.000000000 +1200
-+++ mercury-extras-10.04.2/cgi/Mmakefile 2010-10-23 15:38:16.000000000 +1300
-@@ -12,6 +12,9 @@
-
- MAIN_TARGET = $(LIBRARY)
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- MCFLAGS-mercury_www = --no-warn-nothing-exported
-
- depend: mercury_www.depend
-diff -ur mercury-extras-10.04.2.orig/complex_numbers/Mmakefile mercury-extras-10.04.2/complex_numbers/Mmakefile
---- mercury-extras-10.04.2.orig/complex_numbers/Mmakefile 2003-01-16 23:44:11.000000000 +1300
-+++ mercury-extras-10.04.2/complex_numbers/Mmakefile 2010-10-23 15:38:16.000000000 +1300
-@@ -10,6 +10,9 @@
-
- MAIN_TARGET = all
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- all: libcomplex_numbers
-
- depend: complex_numbers.depend
-diff -ur mercury-extras-10.04.2.orig/curs/Mmakefile mercury-extras-10.04.2/curs/Mmakefile
---- mercury-extras-10.04.2.orig/curs/Mmakefile 2003-01-16 23:44:14.000000000 +1300
-+++ mercury-extras-10.04.2/curs/Mmakefile 2010-10-23 15:38:16.000000000 +1300
-@@ -26,7 +26,8 @@
- # Omit this line if you want to install the default grades.
- # Edit this line if you want to install with different grades.
- #
--#LIBGRADES = asm_fast.gc hlc.gc
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-
- # The following standard libraries must be linked against in any
- # application using the curs library (i.e. MLLIBS must include
-diff -ur mercury-extras-10.04.2.orig/curses/Mmakefile mercury-extras-10.04.2/curses/Mmakefile
---- mercury-extras-10.04.2.orig/curses/Mmakefile 2003-01-16 23:44:15.000000000 +1300
-+++ mercury-extras-10.04.2/curses/Mmakefile 2010-10-23 15:38:16.000000000 +1300
-@@ -13,6 +13,9 @@
- # this line to include the appropriate curses library for your OS.
- MLLIBS = -lncurses
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- -include ../Mmake.params
-
- default_target: libmcurses
-diff -ur mercury-extras-10.04.2.orig/dynamic_linking/Mmakefile mercury-extras-10.04.2/dynamic_linking/Mmakefile
---- mercury-extras-10.04.2.orig/dynamic_linking/Mmakefile 2005-01-25 20:49:05.000000000 +1300
-+++ mercury-extras-10.04.2/dynamic_linking/Mmakefile 2010-10-23 15:38:16.000000000 +1300
-@@ -17,6 +17,9 @@
- CFLAGS = -g
- MLFLAGS += --no-strip
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- -include ../Mmake.params
-
- main_target: libdl
-diff -ur mercury-extras-10.04.2.orig/graphics/mercury_glut/Mmakefile mercury-extras-10.04.2/graphics/mercury_glut/Mmakefile
---- mercury-extras-10.04.2.orig/graphics/mercury_glut/Mmakefile 2006-03-30 14:52:44.000000000 +1200
-+++ mercury-extras-10.04.2/graphics/mercury_glut/Mmakefile 2010-10-23 15:38:16.000000000 +1300
-@@ -10,6 +10,9 @@
-
- MAIN_TARGET = libmercury_glut
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- # The following libraries are for X on Linux (Debian) using Mesa.
-
- # Libaries required by X windows.
-diff -ur mercury-extras-10.04.2.orig/graphics/mercury_opengl/Mmakefile mercury-extras-10.04.2/graphics/mercury_opengl/Mmakefile
---- mercury-extras-10.04.2.orig/graphics/mercury_opengl/Mmakefile 2007-10-11 19:21:31.000000000 +1300
-+++ mercury-extras-10.04.2/graphics/mercury_opengl/Mmakefile 2010-10-23 15:38:16.000000000 +1300
-@@ -15,6 +15,9 @@
-
- MAIN_TARGET = libmercury_opengl
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- # Specify what libraries we need to link against for OpenGL on this system.
- # (The following works on Debian with mesa as the OpenGL implementation).
- GL_LIBS = -lGL -lGLU -L/usr/X11R6/lib -lX11 -lXt -lICE -lXext -lSM
-diff -ur mercury-extras-10.04.2.orig/graphics/mercury_tcltk/Mmakefile mercury-extras-10.04.2/graphics/mercury_tcltk/Mmakefile
---- mercury-extras-10.04.2.orig/graphics/mercury_tcltk/Mmakefile 2005-08-15 16:11:42.000000000 +1200
-+++ mercury-extras-10.04.2/graphics/mercury_tcltk/Mmakefile 2010-10-23 15:38:16.000000000 +1300
-@@ -21,6 +21,9 @@
-
- MAIN_TARGET = $(LIBRARY)
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- depend: mercury_tcltk.depend
-
- install: libmercury_tcltk.install
-diff -ur mercury-extras-10.04.2.orig/lazy_evaluation/Mmakefile mercury-extras-10.04.2/lazy_evaluation/Mmakefile
---- mercury-extras-10.04.2.orig/lazy_evaluation/Mmakefile 2003-01-16 23:44:17.000000000 +1300
-+++ mercury-extras-10.04.2/lazy_evaluation/Mmakefile 2010-10-23 15:38:16.000000000 +1300
-@@ -4,6 +4,9 @@
- # Public License - see the file COPYING.LIB in the Mercury distribution.
- #-----------------------------------------------------------------------------#
- INSTALL_PREFIX := $(INSTALL_PREFIX)/extras
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- -include ../Mmake.params
- default_target: all
- depend: lazy_list.depend lazy_list_test.depend
-diff -ur mercury-extras-10.04.2.orig/moose/Mmakefile mercury-extras-10.04.2/moose/Mmakefile
---- mercury-extras-10.04.2.orig/moose/Mmakefile 2003-01-16 23:44:20.000000000 +1300
-+++ mercury-extras-10.04.2/moose/Mmakefile 2010-10-23 15:38:16.000000000 +1300
-@@ -6,6 +6,8 @@
-
- # GRADE = asm_fast.gc.debug
- # GRADE = asm_fast.gc.prof
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-
- # MCFLAGS = -O6
- # MCFLAGS = --intermodule-optimization -O6
-diff -ur mercury-extras-10.04.2.orig/odbc/Mmakefile mercury-extras-10.04.2/odbc/Mmakefile
---- mercury-extras-10.04.2.orig/odbc/Mmakefile 2006-04-03 18:19:54.000000000 +1200
-+++ mercury-extras-10.04.2/odbc/Mmakefile 2010-10-23 15:38:16.000000000 +1300
-@@ -8,6 +8,8 @@
-
- #-----------------------------------------------------------------------------#
- # Configuration
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-
- # The driver manager.
- # Legal values for MODBC_DRIVER are MODBC_IODBC, MODBC_UNIX, and MODBC_MS.
-diff -ur mercury-extras-10.04.2.orig/posix/Mmakefile mercury-extras-10.04.2/posix/Mmakefile
---- mercury-extras-10.04.2.orig/posix/Mmakefile 2008-09-02 21:45:54.000000000 +1200
-+++ mercury-extras-10.04.2/posix/Mmakefile 2010-10-23 15:38:16.000000000 +1300
-@@ -8,6 +8,9 @@
-
- -include ../Mmake.params
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- # The following is needed (on some systems) to enable declarations of
- # Posix functions in standard C header files.
- MGNUCFLAGS = --no-ansi
-diff -ur mercury-extras-10.04.2.orig/quickcheck/Mmakefile mercury-extras-10.04.2/quickcheck/Mmakefile
---- mercury-extras-10.04.2.orig/quickcheck/Mmakefile 2003-01-16 23:44:24.000000000 +1300
-+++ mercury-extras-10.04.2/quickcheck/Mmakefile 2010-10-23 15:38:16.000000000 +1300
-@@ -10,6 +10,9 @@
-
- MAIN_TARGET = all
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- .PHONY: depend
- depend: qcheck.depend test_qcheck.depend
-
-diff -ur mercury-extras-10.04.2.orig/solver_types/library/Mmakefile mercury-extras-10.04.2/solver_types/library/Mmakefile
---- mercury-extras-10.04.2.orig/solver_types/library/Mmakefile 2006-09-18 13:36:36.000000000 +1200
-+++ mercury-extras-10.04.2/solver_types/library/Mmakefile 2010-10-23 15:39:10.000000000 +1300
-@@ -16,6 +16,9 @@
-
- install: libany.install
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- MCFLAGS-any= --no-warn-nothing-exported --no-warn-interface-imports
-
- .PHONY: check
-diff -ur mercury-extras-10.04.2.orig/xml/Mmakefile mercury-extras-10.04.2/xml/Mmakefile
---- mercury-extras-10.04.2.orig/xml/Mmakefile 2002-03-06 23:10:31.000000000 +1300
-+++ mercury-extras-10.04.2/xml/Mmakefile 2010-10-23 15:38:16.000000000 +1300
-@@ -8,6 +8,9 @@
-
- INSTALL_PREFIX := $(INSTALL_PREFIX)/extras
-
-+LIBGRADES := $(filter-out java,$(LIBGRADES))
-+LIBGRADES := $(filter-out erlang,$(LIBGRADES))
-+
- .PHONY: default_target
- default_target: tryit libxml
-
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04.2-odbc.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04.2-odbc.patch
deleted file mode 100644
index 2dced72ec4e8..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04.2-odbc.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-diff -urN mercury-extras-10.04.2.orig/odbc/Mmakefile mercury-extras-10.04.1/odbc/Mmakefile
---- mercury-extras-10.04.2.orig/odbc/Mmakefile 2006-04-03 18:19:54.000000000 +1200
-+++ mercury-extras-10.04.2/odbc/Mmakefile 2010-09-06 19:42:52.000000000 +1200
-@@ -41,17 +41,20 @@
- # The following are for Debian.
-
- # for unixODBC
-- MLLIBS=-lodbc -lpthread -lltdl -ldl
--
-+ MLLIBS=`odbc_config --libs`
-+ ODBC_CFLAGS=`odbc_config --cflags`
- # for iODBC
- # MLLIBS=-liodbc l-pthread -ldl
- # note: on a DEC Alpha using OSF1 remove the -ldl.
- endif
-
--MAIN_TARGET=odbc_test
-+MAIN_TARGET=libodbc
-
- .PHONY: depend
--depend: odbc_test.depend
-+depend: odbc.depend
-+
-+.PHONY: install
-+install: libodbc.install
-
- .PHONY: check
- check:
-@@ -62,7 +65,7 @@
- # `--no-ansi' is needed because the ODBC header files include C++-style
- # "//" comments. `--no-ansi' allows recognition of C++-style "//" comments,
- # presuming you have gcc version 2.7.1 or greater.
--MGNUCFLAGS=--no-ansi -D$(MODBC_DRIVER) -D$(MODBC_DB) -I$(ODBC_INCL_DIR)
-+MGNUCFLAGS=--no-ansi -D$(MODBC_DRIVER) -D$(MODBC_DB) $(ODBC_CFLAGS)
-
- #-----------------------------------------------------------------------------#
- #-----------------------------------------------------------------------------#
-diff -urN mercury-extras-10.04.2.orig/odbc/odbc.m mercury-extras-10.04.1/odbc/odbc.m
---- mercury-extras-10.04.2.orig/odbc/odbc.m 2006-08-31 23:09:50.000000000 +1200
-+++ mercury-extras-10.04.2/odbc/odbc.m 2010-09-06 19:42:52.000000000 +1200
-@@ -2000,8 +2000,8 @@
- ** Arbitrary size, only needs to hold a
- ** descriptive string like ""SQL Server"".
- */
-- String new_dsn;
-- String new_desc;
-+ LPSTR new_dsn;
-+ LPSTR new_desc;
- SWORD dsn_len;
- SWORD desc_len;
- SQLRETURN rc;
-@@ -2335,7 +2335,7 @@
- SQLSMALLINT msg_len;
- UCHAR message[SQL_MAX_MESSAGE_LENGTH];
- UCHAR sql_state[SQL_SQLSTATE_SIZE + 1];
-- String mercury_message;
-+ LPSTR mercury_message;
- MR_Word new_message;
-
- MR_ASSERT_IMPLY(connection_handle == SQL_NULL_HDBC,
diff --git a/dev-lang/mercury-extras/files/mercury-extras-10.04.2-posix.patch b/dev-lang/mercury-extras/files/mercury-extras-10.04.2-posix.patch
deleted file mode 100644
index 75fb8e4c956b..000000000000
--- a/dev-lang/mercury-extras/files/mercury-extras-10.04.2-posix.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -urN mercury-extras-10.04.2.orig/posix/Mmakefile mercury-extras-10.04.1/posix/Mmakefile
---- mercury-extras-10.04.2.orig/posix/Mmakefile 2008-09-02 21:45:54.000000000 +1200
-+++ mercury-extras-10.04.2/posix/Mmakefile 2010-09-06 19:40:40.000000000 +1200
-@@ -34,7 +34,7 @@
-
- .PHONY: install
- install: libposix.install
-- cp $(ADDITIONAL_HDRS) $(INSTALL_PREFIX)/lib/mercury/inc
-+ cp $(ADDITIONAL_HDRS) $(INSTALL_PREFIX)/@libdir@/mercury/inc
-
- .PHONY: clean
- clean:
diff --git a/dev-lang/mercury-extras/mercury-extras-10.04-r1.ebuild b/dev-lang/mercury-extras/mercury-extras-10.04-r1.ebuild
index 0414de097e21..18e2029b5329 100644
--- a/dev-lang/mercury-extras/mercury-extras-10.04-r1.ebuild
+++ b/dev-lang/mercury-extras/mercury-extras-10.04-r1.ebuild
@@ -1,12 +1,15 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/mercury-extras-10.04-r1.ebuild,v 1.2 2010/09/16 16:39:20 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/mercury-extras-10.04-r1.ebuild,v 1.3 2010/11/03 07:51:27 keri Exp $
inherit eutils
+PATCHSET_VER="0"
+
DESCRIPTION="Additional libraries and tools that are not part of the Mercury standard library"
HOMEPAGE="http://www.cs.mu.oz.au/research/mercury/index.html"
-SRC_URI="http://www.mercury.cs.mu.oz.au/download/files/${P}.tar.gz"
+SRC_URI="http://www.mercury.cs.mu.oz.au/download/files/${P}.tar.gz
+ mirror://gentoo/${P}-gentoo-patchset-${PATCHSET_VER}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
@@ -28,22 +31,18 @@ DEPEND="~dev-lang/mercury-${PV}
src_unpack() {
unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${P}-curs.patch
- epatch "${FILESDIR}"/${P}-dynamic-linking.patch
- epatch "${FILESDIR}"/${P}-lex.patch
- epatch "${FILESDIR}"/${P}-mercury_glut.patch
- epatch "${FILESDIR}"/${P}-mercury_tcltk.patch
- epatch "${FILESDIR}"/${P}-mercury_opengl.patch
- epatch "${FILESDIR}"/${P}-posix.patch
- epatch "${FILESDIR}"/${P}-no-java-grade-no-erlang-grade.patch
+
+ EPATCH_FORCE=yes
+ EPATCH_SUFFIX=patch
+ epatch "${WORKDIR}"/${PV}
if use odbc; then
- epatch "${FILESDIR}"/${P}-odbc.patch
+ epatch "${WORKDIR}"/${PV}-odbc/${P}-odbc.patch
elif use iodbc; then
- epatch "${FILESDIR}"/${P}-iodbc.patch
+ epatch "${FILESDIR}"/${PV}-odbc/${P}-iodbc.patch
fi
+ cd "${S}"
sed -i -e "s:posix:posix quickcheck:" \
-e "s:references::" \
-e "s:windows_installer_generator ::" Mmakefile
diff --git a/dev-lang/mercury-extras/mercury-extras-10.04.1.ebuild b/dev-lang/mercury-extras/mercury-extras-10.04.1.ebuild
index 598146f6f7c3..5f3d6466e948 100644
--- a/dev-lang/mercury-extras/mercury-extras-10.04.1.ebuild
+++ b/dev-lang/mercury-extras/mercury-extras-10.04.1.ebuild
@@ -1,12 +1,15 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/mercury-extras-10.04.1.ebuild,v 1.2 2010/09/16 16:39:20 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/mercury-extras-10.04.1.ebuild,v 1.3 2010/11/03 07:51:27 keri Exp $
inherit eutils
+PATCHSET_VER="0"
+
DESCRIPTION="Additional libraries and tools that are not part of the Mercury standard library"
HOMEPAGE="http://www.cs.mu.oz.au/research/mercury/index.html"
-SRC_URI="http://www.mercury.cs.mu.oz.au/download/files/${P}.tar.gz"
+SRC_URI="http://www.mercury.cs.mu.oz.au/download/files/${P}.tar.gz
+ mirror://gentoo/${P}-gentoo-patchset-${PATCHSET_VER}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
@@ -28,22 +31,18 @@ DEPEND="~dev-lang/mercury-${PV}
src_unpack() {
unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${P}-curs.patch
- epatch "${FILESDIR}"/${P}-dynamic-linking.patch
- epatch "${FILESDIR}"/${P}-lex.patch
- epatch "${FILESDIR}"/${P}-mercury-glut.patch
- epatch "${FILESDIR}"/${P}-mercury-tcltk.patch
- epatch "${FILESDIR}"/${P}-mercury-opengl.patch
- epatch "${FILESDIR}"/${P}-posix.patch
- epatch "${FILESDIR}"/${P}-no-java-grade-no-erlang-grade.patch
+
+ EPATCH_FORCE=yes
+ EPATCH_SUFFIX=patch
+ epatch "${WORKDIR}"/${PV}
if use odbc; then
- epatch "${FILESDIR}"/${P}-odbc.patch
+ epatch "${WORKDIR}"/${PV}-odbc/${P}-odbc.patch
elif use iodbc; then
- epatch "${FILESDIR}"/${P}-iodbc.patch
+ epatch "${WORKDIR}"/${PV}-odbc/${P}-iodbc.patch
fi
+ cd "${S}"
sed -i -e "s:posix:posix quickcheck:" \
-e "s:references::" \
-e "s:windows_installer_generator ::" Mmakefile
diff --git a/dev-lang/mercury-extras/mercury-extras-10.04.2-r1.ebuild b/dev-lang/mercury-extras/mercury-extras-10.04.2-r1.ebuild
index 4a435c03001c..c5836713989a 100644
--- a/dev-lang/mercury-extras/mercury-extras-10.04.2-r1.ebuild
+++ b/dev-lang/mercury-extras/mercury-extras-10.04.2-r1.ebuild
@@ -1,12 +1,15 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/mercury-extras-10.04.2-r1.ebuild,v 1.2 2010/10/30 04:40:34 keri Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/mercury-extras-10.04.2-r1.ebuild,v 1.3 2010/11/03 07:51:27 keri Exp $
inherit eutils
+PATCHSET_VER="0"
+
DESCRIPTION="Additional libraries and tools that are not part of the Mercury standard library"
HOMEPAGE="http://www.cs.mu.oz.au/research/mercury/index.html"
-SRC_URI="http://www.mercury.cs.mu.oz.au/download/files/${P}.tar.gz"
+SRC_URI="http://www.mercury.cs.mu.oz.au/download/files/${P}.tar.gz
+ mirror://gentoo/${P}-gentoo-patchset-${PATCHSET_VER}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
@@ -28,22 +31,18 @@ DEPEND="~dev-lang/mercury-${PV}
src_unpack() {
unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${P}-curs.patch
- epatch "${FILESDIR}"/${P}-dynamic-linking.patch
- epatch "${FILESDIR}"/${P}-lex.patch
- epatch "${FILESDIR}"/${P}-mercury-glut.patch
- epatch "${FILESDIR}"/${P}-mercury-tcltk.patch
- epatch "${FILESDIR}"/${P}-mercury-opengl.patch
- epatch "${FILESDIR}"/${P}-posix.patch
- epatch "${FILESDIR}"/${P}-no-java-grade-no-erlang-grade.patch
+
+ EPATCH_FORCE=yes
+ EPATCH_SUFFIX=patch
+ epatch "${WORKDIR}"/${PV}
if use odbc; then
- epatch "${FILESDIR}"/${P}-odbc.patch
+ epatch "${WORKDIR}"/${PV}-odbc/${P}-odbc.patch
elif use iodbc; then
- epatch "${FILESDIR}"/${P}-iodbc.patch
+ epatch "${WORKDIR}"/${PV}-odbc/${P}-iodbc.patch
fi
+ cd "${S}"
sed -i -e "s:posix:posix quickcheck:" \
-e "s:references:solver_types/library:" \
-e "s:windows_installer_generator ::" \
diff --git a/dev-lang/mercury-extras/mercury-extras-10.04.2.ebuild b/dev-lang/mercury-extras/mercury-extras-10.04.2.ebuild
index 3df558ac2a04..14a95b381f6f 100644
--- a/dev-lang/mercury-extras/mercury-extras-10.04.2.ebuild
+++ b/dev-lang/mercury-extras/mercury-extras-10.04.2.ebuild
@@ -1,12 +1,15 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/mercury-extras-10.04.2.ebuild,v 1.1 2010/10/10 05:32:54 keri Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/mercury-extras-10.04.2.ebuild,v 1.2 2010/11/03 07:51:27 keri Exp $
inherit eutils
+PATCHSET_VER="0"
+
DESCRIPTION="Additional libraries and tools that are not part of the Mercury standard library"
HOMEPAGE="http://www.cs.mu.oz.au/research/mercury/index.html"
-SRC_URI="http://www.mercury.cs.mu.oz.au/download/files/${P}.tar.gz"
+SRC_URI="http://www.mercury.cs.mu.oz.au/download/files/${P}.tar.gz
+ mirror://gentoo/${P}-gentoo-patchset-${PATCHSET_VER}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
@@ -28,22 +31,18 @@ DEPEND="~dev-lang/mercury-${PV}
src_unpack() {
unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${P}-curs.patch
- epatch "${FILESDIR}"/${P}-dynamic-linking.patch
- epatch "${FILESDIR}"/${P}-lex.patch
- epatch "${FILESDIR}"/${P}-mercury-glut.patch
- epatch "${FILESDIR}"/${P}-mercury-tcltk.patch
- epatch "${FILESDIR}"/${P}-mercury-opengl.patch
- epatch "${FILESDIR}"/${P}-posix.patch
- epatch "${FILESDIR}"/${P}-no-java-grade-no-erlang-grade.patch
+
+ EPATCH_FORCE=yes
+ EPATCH_SUFFIX=patch
+ epatch "${WORKDIR}"/${PV}
if use odbc; then
- epatch "${FILESDIR}"/${P}-odbc.patch
+ epatch "${WORKDIR}"/${PV}-odbc/${P}-odbc.patch
elif use iodbc; then
- epatch "${FILESDIR}"/${P}-iodbc.patch
+ epatch "${WORKDIR}"/${PV}-odbc/${P}-iodbc.patch
fi
+ cd "${S}"
sed -i -e "s:posix:posix quickcheck:" \
-e "s:references::" \
-e "s:windows_installer_generator ::" Mmakefile
diff --git a/dev-lang/mercury-extras/mercury-extras-10.04.ebuild b/dev-lang/mercury-extras/mercury-extras-10.04.ebuild
index 87845299c97c..f5c924c7059e 100644
--- a/dev-lang/mercury-extras/mercury-extras-10.04.ebuild
+++ b/dev-lang/mercury-extras/mercury-extras-10.04.ebuild
@@ -1,12 +1,15 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/mercury-extras-10.04.ebuild,v 1.3 2010/09/16 16:39:20 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/mercury-extras-10.04.ebuild,v 1.4 2010/11/03 07:51:27 keri Exp $
inherit eutils
+PATCHSET_VER="0"
+
DESCRIPTION="Additional libraries and tools that are not part of the Mercury standard library"
HOMEPAGE="http://www.cs.mu.oz.au/research/mercury/index.html"
-SRC_URI="http://www.mercury.cs.mu.oz.au/download/files/${P}.tar.gz"
+SRC_URI="http://www.mercury.cs.mu.oz.au/download/files/${P}.tar.gz
+ mirror://gentoo/${P}-gentoo-patchset-${PATCHSET_VER}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
@@ -28,22 +31,18 @@ DEPEND="~dev-lang/mercury-${PV}
src_unpack() {
unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${P}-curs.patch
- epatch "${FILESDIR}"/${P}-dynamic-linking.patch
- epatch "${FILESDIR}"/${P}-lex.patch
- epatch "${FILESDIR}"/${P}-mercury_glut.patch
- epatch "${FILESDIR}"/${P}-mercury_tcltk.patch
- epatch "${FILESDIR}"/${P}-mercury_opengl.patch
- epatch "${FILESDIR}"/${P}-posix.patch
- epatch "${FILESDIR}"/${P}-no-java-grade-no-erlang-grade.patch
+
+ EPATCH_FORCE=yes
+ EPATCH_SUFFIX=patch
+ epatch "${WORKDIR}"/${PV}
if use odbc; then
- epatch "${FILESDIR}"/${P}-odbc.patch
+ epatch "${WORKDIR}"/${PV}-odbc/${P}-odbc.patch
elif use iodbc; then
- epatch "${FILESDIR}"/${P}-iodbc.patch
+ epatch "${WORKDIR}"/${PV}-odbc/${P}-iodbc.patch
fi
+ cd "${S}"
sed -i -e "s:posix:posix quickcheck:" \
-e "s:references::" \
-e "s:windows_installer_generator ::" Mmakefile