Gentoo Archives: gentoo-commits

From: "Keri Harris (keri)" <keri@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/mercury-extras/files: mercury-extras-10.04.1-odbc.patch mercury-extras-10.04.1-posix.patch mercury-extras-10.04.1-no-java-grade-no-erlang-grade.patch mercury-extras-10.04.1-mercury-glut.patch mercury-extras-10.04.1-dynamic-linking.patch mercury-extras-10.04.1-mercury-opengl.patch mercury-extras-10.04.1-iodbc.patch mercury-extras-10.04.1-mercury-tcltk.patch mercury-extras-10.04.1-curs.patch mercury-extras-10.04.1-lex.patch
Date: Mon, 06 Sep 2010 08:07:13
Message-Id: 20100906080708.23EB32003C@flycatcher.gentoo.org
1 keri 10/09/06 08:07:08
2
3 Added: mercury-extras-10.04.1-odbc.patch
4 mercury-extras-10.04.1-posix.patch
5 mercury-extras-10.04.1-no-java-grade-no-erlang-grade.patch
6 mercury-extras-10.04.1-mercury-glut.patch
7 mercury-extras-10.04.1-dynamic-linking.patch
8 mercury-extras-10.04.1-mercury-opengl.patch
9 mercury-extras-10.04.1-iodbc.patch
10 mercury-extras-10.04.1-mercury-tcltk.patch
11 mercury-extras-10.04.1-curs.patch
12 mercury-extras-10.04.1-lex.patch
13 Log:
14 Version bump
15 (Portage version: 2.1.8.3/cvs/Linux x86_64)
16
17 Revision Changes Path
18 1.1 dev-lang/mercury-extras/files/mercury-extras-10.04.1-odbc.patch
19
20 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/files/mercury-extras-10.04.1-odbc.patch?rev=1.1&view=markup
21 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/files/mercury-extras-10.04.1-odbc.patch?rev=1.1&content-type=text/plain
22
23 Index: mercury-extras-10.04.1-odbc.patch
24 ===================================================================
25 diff -urN mercury-extras-10.04.1.orig/odbc/Mmakefile mercury-extras-10.04.1/odbc/Mmakefile
26 --- mercury-extras-10.04.1.orig/odbc/Mmakefile 2006-04-03 18:19:54.000000000 +1200
27 +++ mercury-extras-10.04.1/odbc/Mmakefile 2010-09-06 19:42:52.000000000 +1200
28 @@ -41,17 +41,20 @@
29 # The following are for Debian.
30
31 # for unixODBC
32 - MLLIBS=-lodbc -lpthread -lltdl -ldl
33 -
34 + MLLIBS=`odbc_config --libs`
35 + ODBC_CFLAGS=`odbc_config --cflags`
36 # for iODBC
37 # MLLIBS=-liodbc l-pthread -ldl
38 # note: on a DEC Alpha using OSF1 remove the -ldl.
39 endif
40
41 -MAIN_TARGET=odbc_test
42 +MAIN_TARGET=libodbc
43
44 .PHONY: depend
45 -depend: odbc_test.depend
46 +depend: odbc.depend
47 +
48 +.PHONY: install
49 +install: libodbc.install
50
51 .PHONY: check
52 check:
53 @@ -62,7 +65,7 @@
54 # `--no-ansi' is needed because the ODBC header files include C++-style
55 # "//" comments. `--no-ansi' allows recognition of C++-style "//" comments,
56 # presuming you have gcc version 2.7.1 or greater.
57 -MGNUCFLAGS=--no-ansi -D$(MODBC_DRIVER) -D$(MODBC_DB) -I$(ODBC_INCL_DIR)
58 +MGNUCFLAGS=--no-ansi -D$(MODBC_DRIVER) -D$(MODBC_DB) $(ODBC_CFLAGS)
59
60 #-----------------------------------------------------------------------------#
61 #-----------------------------------------------------------------------------#
62 diff -urN mercury-extras-10.04.1.orig/odbc/odbc.m mercury-extras-10.04.1/odbc/odbc.m
63 --- mercury-extras-10.04.1.orig/odbc/odbc.m 2006-08-31 23:09:50.000000000 +1200
64 +++ mercury-extras-10.04.1/odbc/odbc.m 2010-09-06 19:42:52.000000000 +1200
65 @@ -2000,8 +2000,8 @@
66 ** Arbitrary size, only needs to hold a
67 ** descriptive string like ""SQL Server"".
68 */
69 - String new_dsn;
70 - String new_desc;
71 + LPSTR new_dsn;
72 + LPSTR new_desc;
73 SWORD dsn_len;
74 SWORD desc_len;
75 SQLRETURN rc;
76 @@ -2335,7 +2335,7 @@
77 SQLSMALLINT msg_len;
78 UCHAR message[SQL_MAX_MESSAGE_LENGTH];
79 UCHAR sql_state[SQL_SQLSTATE_SIZE + 1];
80 - String mercury_message;
81 + LPSTR mercury_message;
82 MR_Word new_message;
83
84 MR_ASSERT_IMPLY(connection_handle == SQL_NULL_HDBC,
85
86
87
88 1.1 dev-lang/mercury-extras/files/mercury-extras-10.04.1-posix.patch
89
90 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/files/mercury-extras-10.04.1-posix.patch?rev=1.1&view=markup
91 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/files/mercury-extras-10.04.1-posix.patch?rev=1.1&content-type=text/plain
92
93 Index: mercury-extras-10.04.1-posix.patch
94 ===================================================================
95 diff -urN mercury-extras-10.04.1.orig/posix/Mmakefile mercury-extras-10.04.1/posix/Mmakefile
96 --- mercury-extras-10.04.1.orig/posix/Mmakefile 2008-09-02 21:45:54.000000000 +1200
97 +++ mercury-extras-10.04.1/posix/Mmakefile 2010-09-06 19:40:40.000000000 +1200
98 @@ -34,7 +34,7 @@
99
100 .PHONY: install
101 install: libposix.install
102 - cp $(ADDITIONAL_HDRS) $(INSTALL_PREFIX)/lib/mercury/inc
103 + cp $(ADDITIONAL_HDRS) $(INSTALL_PREFIX)/@libdir@/mercury/inc
104
105 .PHONY: clean
106 clean:
107
108
109
110 1.1 dev-lang/mercury-extras/files/mercury-extras-10.04.1-no-java-grade-no-erlang-grade.patch
111
112 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/files/mercury-extras-10.04.1-no-java-grade-no-erlang-grade.patch?rev=1.1&view=markup
113 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/files/mercury-extras-10.04.1-no-java-grade-no-erlang-grade.patch?rev=1.1&content-type=text/plain
114
115 Index: mercury-extras-10.04.1-no-java-grade-no-erlang-grade.patch
116 ===================================================================
117 diff -urN mercury-extras-10.04.1.orig/cgi/Mmakefile mercury-extras-10.04.1/cgi/Mmakefile
118 --- mercury-extras-10.04.1.orig/cgi/Mmakefile 2004-07-30 19:01:07.000000000 +1200
119 +++ mercury-extras-10.04.1/cgi/Mmakefile 2010-09-06 19:41:29.000000000 +1200
120 @@ -12,6 +12,9 @@
121
122 MAIN_TARGET = $(LIBRARY)
123
124 +LIBGRADES := $(filter-out java,$(LIBGRADES))
125 +LIBGRADES := $(filter-out erlang,$(LIBGRADES))
126 +
127 MCFLAGS-mercury_www = --no-warn-nothing-exported
128
129 depend: mercury_www.depend
130 diff -urN mercury-extras-10.04.1.orig/complex_numbers/Mmakefile mercury-extras-10.04.1/complex_numbers/Mmakefile
131 --- mercury-extras-10.04.1.orig/complex_numbers/Mmakefile 2003-01-16 23:44:11.000000000 +1300
132 +++ mercury-extras-10.04.1/complex_numbers/Mmakefile 2010-09-06 19:41:29.000000000 +1200
133 @@ -10,6 +10,9 @@
134
135 MAIN_TARGET = all
136
137 +LIBGRADES := $(filter-out java,$(LIBGRADES))
138 +LIBGRADES := $(filter-out erlang,$(LIBGRADES))
139 +
140 all: libcomplex_numbers
141
142 depend: complex_numbers.depend
143 diff -urN mercury-extras-10.04.1.orig/curs/Mmakefile mercury-extras-10.04.1/curs/Mmakefile
144 --- mercury-extras-10.04.1.orig/curs/Mmakefile 2003-01-16 23:44:14.000000000 +1300
145 +++ mercury-extras-10.04.1/curs/Mmakefile 2010-09-06 19:41:29.000000000 +1200
146 @@ -26,7 +26,8 @@
147 # Omit this line if you want to install the default grades.
148 # Edit this line if you want to install with different grades.
149 #
150 -#LIBGRADES = asm_fast.gc hlc.gc
151 +LIBGRADES := $(filter-out java,$(LIBGRADES))
152 +LIBGRADES := $(filter-out erlang,$(LIBGRADES))
153
154 # The following standard libraries must be linked against in any
155 # application using the curs library (i.e. MLLIBS must include
156 diff -urN mercury-extras-10.04.1.orig/curses/Mmakefile mercury-extras-10.04.1/curses/Mmakefile
157 --- mercury-extras-10.04.1.orig/curses/Mmakefile 2003-01-16 23:44:15.000000000 +1300
158 +++ mercury-extras-10.04.1/curses/Mmakefile 2010-09-06 19:41:29.000000000 +1200
159 @@ -13,6 +13,9 @@
160 # this line to include the appropriate curses library for your OS.
161 MLLIBS = -lncurses
162
163 +LIBGRADES := $(filter-out java,$(LIBGRADES))
164 +LIBGRADES := $(filter-out erlang,$(LIBGRADES))
165 +
166 -include ../Mmake.params
167
168 default_target: libmcurses
169 diff -urN mercury-extras-10.04.1.orig/dynamic_linking/Mmakefile mercury-extras-10.04.1/dynamic_linking/Mmakefile
170 --- mercury-extras-10.04.1.orig/dynamic_linking/Mmakefile 2005-01-25 20:49:05.000000000 +1300
171 +++ mercury-extras-10.04.1/dynamic_linking/Mmakefile 2010-09-06 19:41:29.000000000 +1200
172 @@ -17,6 +17,9 @@
173 CFLAGS = -g
174 MLFLAGS += --no-strip
175
176 +LIBGRADES := $(filter-out java,$(LIBGRADES))
177 +LIBGRADES := $(filter-out erlang,$(LIBGRADES))
178 +
179 -include ../Mmake.params
180
181 main_target: libdl
182 diff -urN mercury-extras-10.04.1.orig/graphics/mercury_glut/Mmakefile mercury-extras-10.04.1/graphics/mercury_glut/Mmakefile
183 --- mercury-extras-10.04.1.orig/graphics/mercury_glut/Mmakefile 2006-03-30 14:52:44.000000000 +1200
184 +++ mercury-extras-10.04.1/graphics/mercury_glut/Mmakefile 2010-09-06 19:41:29.000000000 +1200
185 @@ -10,6 +10,9 @@
186
187 MAIN_TARGET = libmercury_glut
188
189 +LIBGRADES := $(filter-out java,$(LIBGRADES))
190 +LIBGRADES := $(filter-out erlang,$(LIBGRADES))
191 +
192 # The following libraries are for X on Linux (Debian) using Mesa.
193
194 # Libaries required by X windows.
195 diff -urN mercury-extras-10.04.1.orig/graphics/mercury_opengl/Mmakefile mercury-extras-10.04.1/graphics/mercury_opengl/Mmakefile
196 --- mercury-extras-10.04.1.orig/graphics/mercury_opengl/Mmakefile 2007-10-11 19:21:31.000000000 +1300
197 +++ mercury-extras-10.04.1/graphics/mercury_opengl/Mmakefile 2010-09-06 19:41:29.000000000 +1200
198 @@ -15,6 +15,9 @@
199
200 MAIN_TARGET = libmercury_opengl
201
202 +LIBGRADES := $(filter-out java,$(LIBGRADES))
203 +LIBGRADES := $(filter-out erlang,$(LIBGRADES))
204 +
205 # Specify what libraries we need to link against for OpenGL on this system.
206 # (The following works on Debian with mesa as the OpenGL implementation).
207 GL_LIBS = -lGL -lGLU -L/usr/X11R6/lib -lX11 -lXt -lICE -lXext -lSM
208 diff -urN mercury-extras-10.04.1.orig/graphics/mercury_tcltk/Mmakefile mercury-extras-10.04.1/graphics/mercury_tcltk/Mmakefile
209 --- mercury-extras-10.04.1.orig/graphics/mercury_tcltk/Mmakefile 2005-08-15 16:11:42.000000000 +1200
210 +++ mercury-extras-10.04.1/graphics/mercury_tcltk/Mmakefile 2010-09-06 19:41:29.000000000 +1200
211 @@ -21,6 +21,9 @@
212
213 MAIN_TARGET = $(LIBRARY)
214
215 +LIBGRADES := $(filter-out java,$(LIBGRADES))
216 +LIBGRADES := $(filter-out erlang,$(LIBGRADES))
217 +
218 depend: mercury_tcltk.depend
219
220 install: libmercury_tcltk.install
221 diff -urN mercury-extras-10.04.1.orig/lazy_evaluation/Mmakefile mercury-extras-10.04.1/lazy_evaluation/Mmakefile
222 --- mercury-extras-10.04.1.orig/lazy_evaluation/Mmakefile 2003-01-16 23:44:17.000000000 +1300
223 +++ mercury-extras-10.04.1/lazy_evaluation/Mmakefile 2010-09-06 19:41:29.000000000 +1200
224 @@ -4,6 +4,9 @@
225 # Public License - see the file COPYING.LIB in the Mercury distribution.
226 #-----------------------------------------------------------------------------#
227 INSTALL_PREFIX := $(INSTALL_PREFIX)/extras
228 +LIBGRADES := $(filter-out java,$(LIBGRADES))
229 +LIBGRADES := $(filter-out erlang,$(LIBGRADES))
230 +
231 -include ../Mmake.params
232 default_target: all
233 depend: lazy_list.depend lazy_list_test.depend
234 diff -urN mercury-extras-10.04.1.orig/moose/Mmakefile mercury-extras-10.04.1/moose/Mmakefile
235 --- mercury-extras-10.04.1.orig/moose/Mmakefile 2003-01-16 23:44:20.000000000 +1300
236 +++ mercury-extras-10.04.1/moose/Mmakefile 2010-09-06 19:41:29.000000000 +1200
237 @@ -6,6 +6,8 @@
238
239 # GRADE = asm_fast.gc.debug
240 # GRADE = asm_fast.gc.prof
241 +LIBGRADES := $(filter-out java,$(LIBGRADES))
242 +LIBGRADES := $(filter-out erlang,$(LIBGRADES))
243
244 # MCFLAGS = -O6
245 # MCFLAGS = --intermodule-optimization -O6
246 diff -urN mercury-extras-10.04.1.orig/odbc/Mmakefile mercury-extras-10.04.1/odbc/Mmakefile
247 --- mercury-extras-10.04.1.orig/odbc/Mmakefile 2006-04-03 18:19:54.000000000 +1200
248 +++ mercury-extras-10.04.1/odbc/Mmakefile 2010-09-06 19:41:29.000000000 +1200
249 @@ -8,6 +8,8 @@
250
251 #-----------------------------------------------------------------------------#
252 # Configuration
253 +LIBGRADES := $(filter-out java,$(LIBGRADES))
254 +LIBGRADES := $(filter-out erlang,$(LIBGRADES))
255
256 # The driver manager.
257 # Legal values for MODBC_DRIVER are MODBC_IODBC, MODBC_UNIX, and MODBC_MS.
258 diff -urN mercury-extras-10.04.1.orig/posix/Mmakefile mercury-extras-10.04.1/posix/Mmakefile
259 --- mercury-extras-10.04.1.orig/posix/Mmakefile 2008-09-02 21:45:54.000000000 +1200
260 +++ mercury-extras-10.04.1/posix/Mmakefile 2010-09-06 19:41:29.000000000 +1200
261 @@ -8,6 +8,9 @@
262
263 -include ../Mmake.params
264
265 +LIBGRADES := $(filter-out java,$(LIBGRADES))
266 +LIBGRADES := $(filter-out erlang,$(LIBGRADES))
267 +
268 # The following is needed (on some systems) to enable declarations of
269 # Posix functions in standard C header files.
270 MGNUCFLAGS = --no-ansi
271 diff -urN mercury-extras-10.04.1.orig/quickcheck/Mmakefile mercury-extras-10.04.1/quickcheck/Mmakefile
272 --- mercury-extras-10.04.1.orig/quickcheck/Mmakefile 2003-01-16 23:44:24.000000000 +1300
273 +++ mercury-extras-10.04.1/quickcheck/Mmakefile 2010-09-06 19:41:29.000000000 +1200
274 @@ -10,6 +10,9 @@
275
276 MAIN_TARGET = all
277
278 +LIBGRADES := $(filter-out java,$(LIBGRADES))
279 +LIBGRADES := $(filter-out erlang,$(LIBGRADES))
280 +
281 .PHONY: depend
282 depend: qcheck.depend test_qcheck.depend
283
284 diff -urN mercury-extras-10.04.1.orig/xml/Mmakefile mercury-extras-10.04.1/xml/Mmakefile
285 --- mercury-extras-10.04.1.orig/xml/Mmakefile 2002-03-06 23:10:31.000000000 +1300
286 +++ mercury-extras-10.04.1/xml/Mmakefile 2010-09-06 19:41:29.000000000 +1200
287 @@ -8,6 +8,9 @@
288
289 INSTALL_PREFIX := $(INSTALL_PREFIX)/extras
290
291 +LIBGRADES := $(filter-out java,$(LIBGRADES))
292 +LIBGRADES := $(filter-out erlang,$(LIBGRADES))
293 +
294 .PHONY: default_target
295 default_target: tryit libxml
296
297
298
299
300 1.1 dev-lang/mercury-extras/files/mercury-extras-10.04.1-mercury-glut.patch
301
302 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/files/mercury-extras-10.04.1-mercury-glut.patch?rev=1.1&view=markup
303 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/files/mercury-extras-10.04.1-mercury-glut.patch?rev=1.1&content-type=text/plain
304
305 Index: mercury-extras-10.04.1-mercury-glut.patch
306 ===================================================================
307 diff -urN mercury-extras-10.04.1.orig/graphics/mercury_glut/Mmakefile mercury-extras-10.04.1/graphics/mercury_glut/Mmakefile
308 --- mercury-extras-10.04.1.orig/graphics/mercury_glut/Mmakefile 2006-03-30 14:52:44.000000000 +1200
309 +++ mercury-extras-10.04.1/graphics/mercury_glut/Mmakefile 2010-09-06 19:38:06.000000000 +1200
310 @@ -13,10 +13,10 @@
311 # The following libraries are for X on Linux (Debian) using Mesa.
312
313 # Libaries required by X windows.
314 -X_LIBS = -lX11 -lXext -lXt -lXi -lSM -lICE -L/usr/X11R6/lib
315 +#X_LIBS = -lX11 -lXext -lXt -lXi -lSM -lICE -L/usr/X11R6/lib
316
317 # Libraries required by OpenGL.
318 -GL_LIBS = -lGL -LGL
319 +#GL_LIBS = -lGL -LGL
320
321 MCFLAGS-mercury_glut+=--no-warn-nothing-exported --no-warn-interface-imports
322
323 @@ -26,7 +26,7 @@
324 MGNUCFLAGS = --pic-reg
325 EXTRA_MLFLAGS = -shared
326
327 -MLLIBS = -lglut $(X_LIBS) $(GL_LIBS)
328 +MLLIBS = -lglut
329
330 depend: mercury_glut.depend
331
332
333
334
335 1.1 dev-lang/mercury-extras/files/mercury-extras-10.04.1-dynamic-linking.patch
336
337 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/files/mercury-extras-10.04.1-dynamic-linking.patch?rev=1.1&view=markup
338 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/files/mercury-extras-10.04.1-dynamic-linking.patch?rev=1.1&content-type=text/plain
339
340 Index: mercury-extras-10.04.1-dynamic-linking.patch
341 ===================================================================
342 diff -urN mercury-extras-10.04.1.orig/dynamic_linking/Mmakefile mercury-extras-10.04.1/dynamic_linking/Mmakefile
343 --- mercury-extras-10.04.1.orig/dynamic_linking/Mmakefile 2005-01-25 20:49:05.000000000 +1300
344 +++ mercury-extras-10.04.1/dynamic_linking/Mmakefile 2010-09-06 19:35:05.000000000 +1200
345 @@ -11,7 +11,7 @@
346 MLFLAGS = --shared
347
348 # Link in the `-ldl' library (this may not be needed on some systems)
349 -MLLIBS = -ldl
350 +MLLIBS = -L/usr/@libdir@ -ldl
351
352 # enable C-level debugging
353 CFLAGS = -g
354
355
356
357 1.1 dev-lang/mercury-extras/files/mercury-extras-10.04.1-mercury-opengl.patch
358
359 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/files/mercury-extras-10.04.1-mercury-opengl.patch?rev=1.1&view=markup
360 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/files/mercury-extras-10.04.1-mercury-opengl.patch?rev=1.1&content-type=text/plain
361
362 Index: mercury-extras-10.04.1-mercury-opengl.patch
363 ===================================================================
364 diff -urN mercury-extras-10.04.1.orig/graphics/mercury_opengl/Mmakefile mercury-extras-10.04.1/graphics/mercury_opengl/Mmakefile
365 --- mercury-extras-10.04.1.orig/graphics/mercury_opengl/Mmakefile 2007-10-11 19:21:31.000000000 +1300
366 +++ mercury-extras-10.04.1/graphics/mercury_opengl/Mmakefile 2010-09-06 19:40:05.000000000 +1200
367 @@ -17,7 +17,8 @@
368
369 # Specify what libraries we need to link against for OpenGL on this system.
370 # (The following works on Debian with mesa as the OpenGL implementation).
371 -GL_LIBS = -lGL -lGLU -L/usr/X11R6/lib -lX11 -lXt -lICE -lXext -lSM
372 +GL_LIBS = `pkg-config --libs gl` `pkg-config --libs glu`
373 +GL_CFLAGS = `pkg-config --cflags gl` `pkg-config --cflags glu`
374
375 # Don't issue a warning because mercury_opengl doesn't export anything.
376 MCFLAGS-mercury_opengl = --no-warn-nothing-exported
377 @@ -26,7 +27,7 @@
378 # implemented completely.
379 MCFLAGS-mogl = --no-warn-inferred-erroneous
380
381 -MCFLAGS = --halt-at-warn --intermodule-optimization
382 +MCFLAGS = --halt-at-warn --intermodule-optimization $(GL_CFLAGS)
383
384 MLLIBS = $(GL_LIBS) $(EXTRA_MLLIBS)
385
386
387
388
389 1.1 dev-lang/mercury-extras/files/mercury-extras-10.04.1-iodbc.patch
390
391 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/files/mercury-extras-10.04.1-iodbc.patch?rev=1.1&view=markup
392 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/files/mercury-extras-10.04.1-iodbc.patch?rev=1.1&content-type=text/plain
393
394 Index: mercury-extras-10.04.1-iodbc.patch
395 ===================================================================
396 diff -urN mercury-extras-10.04.1.orig/odbc/Mmakefile mercury-extras-10.04.1/odbc/Mmakefile
397 --- mercury-extras-10.04.1.orig/odbc/Mmakefile 2006-04-03 18:19:54.000000000 +1200
398 +++ mercury-extras-10.04.1/odbc/Mmakefile 2010-09-06 19:44:01.000000000 +1200
399 @@ -12,7 +12,7 @@
400 # The driver manager.
401 # Legal values for MODBC_DRIVER are MODBC_IODBC, MODBC_UNIX, and MODBC_MS.
402 # Feel free to add more (and handle them in odbc.m).
403 -MODBC_DRIVER=MODBC_UNIX
404 +MODBC_DRIVER=MODBC_IODBC
405
406 # The database.
407 # Legal values for MODBC_DB are MODBC_MYSQL and MODBC_SQL_SERVER.
408 @@ -41,17 +41,20 @@
409 # The following are for Debian.
410
411 # for unixODBC
412 - MLLIBS=-lodbc -lpthread -lltdl -ldl
413 -
414 + MLLIBS=`iodbc-config --libs`
415 + ODBC_CFLAGS=`iodbc-config --cflags`
416 # for iODBC
417 # MLLIBS=-liodbc l-pthread -ldl
418 # note: on a DEC Alpha using OSF1 remove the -ldl.
419 endif
420
421 -MAIN_TARGET=odbc_test
422 +MAIN_TARGET=libodbc
423
424 .PHONY: depend
425 -depend: odbc_test.depend
426 +depend: odbc.depend
427 +
428 +.PHONY: install
429 +install: libodbc.install
430
431 .PHONY: check
432 check:
433 @@ -62,7 +65,7 @@
434 # `--no-ansi' is needed because the ODBC header files include C++-style
435 # "//" comments. `--no-ansi' allows recognition of C++-style "//" comments,
436 # presuming you have gcc version 2.7.1 or greater.
437 -MGNUCFLAGS=--no-ansi -D$(MODBC_DRIVER) -D$(MODBC_DB) -I$(ODBC_INCL_DIR)
438 +MGNUCFLAGS=--no-ansi -D$(MODBC_DRIVER) -D$(MODBC_DB) $(ODBC_CFLAGS)
439
440 #-----------------------------------------------------------------------------#
441 #-----------------------------------------------------------------------------#
442 diff -urN mercury-extras-10.04.1.orig/odbc/odbc.m mercury-extras-10.04.1/odbc/odbc.m
443 --- mercury-extras-10.04.1.orig/odbc/odbc.m 2006-08-31 23:09:50.000000000 +1200
444 +++ mercury-extras-10.04.1/odbc/odbc.m 2010-09-06 19:44:01.000000000 +1200
445 @@ -2000,8 +2000,8 @@
446 ** Arbitrary size, only needs to hold a
447 ** descriptive string like ""SQL Server"".
448 */
449 - String new_dsn;
450 - String new_desc;
451 + LPSTR new_dsn;
452 + LPSTR new_desc;
453 SWORD dsn_len;
454 SWORD desc_len;
455 SQLRETURN rc;
456 @@ -2335,7 +2335,7 @@
457 SQLSMALLINT msg_len;
458 UCHAR message[SQL_MAX_MESSAGE_LENGTH];
459 UCHAR sql_state[SQL_SQLSTATE_SIZE + 1];
460 - String mercury_message;
461 + LPSTR mercury_message;
462 MR_Word new_message;
463
464 MR_ASSERT_IMPLY(connection_handle == SQL_NULL_HDBC,
465
466
467
468 1.1 dev-lang/mercury-extras/files/mercury-extras-10.04.1-mercury-tcltk.patch
469
470 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/files/mercury-extras-10.04.1-mercury-tcltk.patch?rev=1.1&view=markup
471 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/files/mercury-extras-10.04.1-mercury-tcltk.patch?rev=1.1&content-type=text/plain
472
473 Index: mercury-extras-10.04.1-mercury-tcltk.patch
474 ===================================================================
475 diff -urN mercury-extras-10.04.1.orig/graphics/mercury_tcltk/Mmakefile mercury-extras-10.04.1/graphics/mercury_tcltk/Mmakefile
476 --- mercury-extras-10.04.1.orig/graphics/mercury_tcltk/Mmakefile 2005-08-15 16:11:42.000000000 +1200
477 +++ mercury-extras-10.04.1/graphics/mercury_tcltk/Mmakefile 2010-09-06 19:39:01.000000000 +1200
478 @@ -8,10 +8,7 @@
479
480 # You may need to modify the line below
481
482 -MLLIBS = -ltk8.4 -ltcl8.4 -L/usr/X11R6/lib -lX11 -lXmu -lXext -lm -ldl \
483 - -lXt -lICE -lSM
484 -
485 -MLFLAGS = -R/usr/X11R6/lib
486 +MLLIBS = -ltk -ltcl
487
488 # On some Linux machines you may need to let mgnuc know where the
489 # tcl/tk header files are.
490 diff -urN mercury-extras-10.04.1.orig/graphics/mercury_tcltk/mtcltk.m mercury-extras-10.04.1/graphics/mercury_tcltk/mtcltk.m
491 --- mercury-extras-10.04.1.orig/graphics/mercury_tcltk/mtcltk.m 2007-08-21 14:47:37.000000000 +1200
492 +++ mercury-extras-10.04.1/graphics/mercury_tcltk/mtcltk.m 2010-09-06 19:39:01.000000000 +1200
493 @@ -154,7 +154,7 @@
494 MR_incr_hp(argv_word, argc + 1);
495 argv = (char **) argv_word;
496
497 - for (i = 0, l = Args; l != list_empty(); l = list_tail(l), i++) {
498 + for (i = 0, l = Args; l != MR_list_empty(); l = MR_list_tail(l), i++) {
499 argv[i] = (char *) MR_list_head(l);
500 }
501
502
503
504
505 1.1 dev-lang/mercury-extras/files/mercury-extras-10.04.1-curs.patch
506
507 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/files/mercury-extras-10.04.1-curs.patch?rev=1.1&view=markup
508 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/files/mercury-extras-10.04.1-curs.patch?rev=1.1&content-type=text/plain
509
510 Index: mercury-extras-10.04.1-curs.patch
511 ===================================================================
512 diff -urN mercury-extras-10.04.1.orig/curs/curs.m mercury-extras-10.04.1/curs/curs.m
513 --- mercury-extras-10.04.1.orig/curs/curs.m 2006-04-21 15:37:10.000000000 +1200
514 +++ mercury-extras-10.04.1/curs/curs.m 2010-09-06 19:34:04.000000000 +1200
515 @@ -31,6 +31,8 @@
516 :- import_module io.
517 :- import_module string.
518
519 +:- include_module curs__panel.
520 +
521 %-----------------------------------------------------------------------------%
522
523 % Start a curses session (colour, unbuffered input, no echoing,
524 @@ -210,90 +212,6 @@
525 :- func cyan = colour.
526 :- func white = colour.
527
528 - %-------------------------------------------------------------------------%
529 - %-------------------------------------------------------------------------%
530 -
531 - % Panels are windows over the main display; they may be
532 - % stacked, moved, ordered and hidden. Contents of panels
533 - % closer to the top of the stack obscure the parts of panels
534 - % they overlap that are lower in the stack.
535 - %
536 - :- module panel.
537 - :- interface.
538 -
539 - :- type panel.
540 -
541 - % new(Rows, Cols, Row, Col, Attr, Panel) creates a new panel
542 - % Panel whose size is given by (Rows, Cols) and whose position
543 - % on the display is given by (Row, Col). The new panel starts
544 - % visible and at the top of the stack. The default attributes
545 - % for the panel are set to Attr.
546 - %
547 - :- pred new(int::in, int::in, int::in, int::in, attr::in, panel::out,
548 - io::di, io::uo) is det.
549 -
550 - % Destroy a panel.
551 - %
552 - :- pred delete(panel::in, io::di, io::uo) is det.
553 -
554 - % Raise/lower a panel to the top/bottom of the stack.
555 - %
556 - :- pred raise(panel::in, io::di, io::uo) is det.
557 - :- pred lower(panel::in, io::di, io::uo) is det.
558 -
559 - % Hide/reveal a panel (revealing places it at the top of the stack).
560 - %
561 - :- pred hide(panel::in, io::di, io::uo) is det.
562 - :- pred reveal(panel::in, io::di, io::uo) is det.
563 -
564 - % Move a panel to (Row, Col) on the display.
565 - %
566 - :- pred relocate(panel::in, int::in, int::in, io::di, io::uo) is det.
567 -
568 - % Clear a panel.
569 - %
570 - :- pred clear(panel::in, io::di, io::uo) is det.
571 -
572 - % Move the virtual cursor to given row and column; (0, 0) are the
573 - % coordinates for the upper left hand corner of the panel.
574 - %
575 - :- pred move(panel::in, int::in, int::in, io::di, io::uo) is det.
576 -
577 - % Add a char/string to a panel with the given attributes.
578 - % Note that char codes are passed rather than plain chars.
579 - %
580 - :- pred addch(panel::in, attr::in, int::in, io::di, io::uo) is det.
581 - :- pred addstr(panel::in, attr::in, string::in, io::di, io::uo) is det.
582 -
583 - % Turn on/off or set attributes that will be applied by default.
584 - %
585 - :- pred attr_on(panel::in, attr::in, io::di, io::uo) is det.
586 - :- pred attr_off(panel::in, attr::in, io::di, io::uo) is det.
587 - :- pred attr_set(panel::in, attr::in, io::di, io::uo) is det.
588 -
589 - % Update the display (also calls doupdate).
590 - % NOTE: doupdate does not call update_panels.
591 - %
592 - :- pred update_panels(io::di, io::uo) is det.
593 -
594 - % Draws a border around the inside edge of the display.
595 - %
596 - :- pred border(panel::in, io::di, io::uo) is det.
597 -
598 - % Draws an horizontal line of length N moving to the right.
599 - %
600 - :- pred hline(panel::in, int::in, int::in, io::di, io::uo) is det.
601 -
602 - % Draws a vertical line of length N moving down.
603 - %
604 - :- pred vline(panel::in, int::in, int::in, io::di, io::uo) is det.
605 -
606 - :- end_module panel.
607 -
608 - %-------------------------------------------------------------------------%
609 - %-------------------------------------------------------------------------%
610 -
611 -%-----------------------------------------------------------------------------%
612 %-----------------------------------------------------------------------------%
613
614 :- implementation.
615 @@ -1044,210 +962,4 @@
616 IO = IO0;
617 ").
618
619 - %-------------------------------------------------------------------------%
620 - %-------------------------------------------------------------------------%
621 -
622 - :- module panel.
623 -
624 - :- implementation.
625 -
626 - %-------------------------------------------------------------------------%
627 -
628 - :- pragma foreign_decl("C", "
629 -
630 - #include <ncurses.h>
631 - #include <panel.h>
632 -
633 - ").
634 -
635 - :- pragma foreign_type("C", panel, "PANEL *").
636 -
637 - %-------------------------------------------------------------------------%
638 -
639 - :- pragma foreign_proc("C",
640 - new(Rows::in, Cols::in, Row::in, Col::in, Attr::in, Panel::out,
641 - IO0::di, IO::uo),
642 - [will_not_call_mercury, promise_pure],
643 - "
644 - WINDOW *w = newwin(Rows, Cols, Row, Col);
645 - scrollok(w, TRUE);
646 - wattrset(w, Attr);
647 - wcolor_set(w, Attr, NULL);
648 - wclear(w);
649 - Panel = new_panel(w);
650 -
651 - IO = IO0;
652 - ").
653 -
654 - %-------------------------------------------------------------------------%
655 -
656 - :- pragma foreign_proc("C",
657 - delete(Panel::in, IO0::di, IO::uo),
658 - [will_not_call_mercury, promise_pure],
659 - "
660 - delwin(panel_window(Panel));
661 - del_panel(Panel);
662 -
663 - IO = IO0;
664 - ").
665 -
666 - %-------------------------------------------------------------------------%
667 -
668 - :- pragma foreign_proc("C",
669 - raise(Panel::in, IO0::di, IO::uo),
670 - [will_not_call_mercury, promise_pure],
671 - "
672 - top_panel(Panel);
673 - IO = IO0;
674 - ").
675 -
676 - %-------------------------------------------------------------------------%
677 -
678 - :- pragma foreign_proc("C",
679 - lower(Panel::in, IO0::di, IO::uo),
680 - [will_not_call_mercury, promise_pure],
681 - "
682 - bottom_panel(Panel);
683 - IO = IO0;
684 - ").
685 -
686 - %-------------------------------------------------------------------------%
687 -
688 - :- pragma foreign_proc("C",
689 - hide(Panel::in, IO0::di, IO::uo),
690 - [will_not_call_mercury, promise_pure],
691 - "
692 - hide_panel(Panel);
693 - IO = IO0;
694 - ").
695 -
696 - %-------------------------------------------------------------------------%
697 -
698 - :- pragma foreign_proc("C",
699 - reveal(Panel::in, IO0::di, IO::uo),
700 - [will_not_call_mercury, promise_pure],
701 - "
702 - show_panel(Panel);
703 - IO = IO0;
704 - ").
705 -
706 - %-------------------------------------------------------------------------%
707 -
708 - :- pragma foreign_proc("C",
709 - relocate(Panel::in, Row::in, Col::in, IO0::di, IO::uo),
710 - [will_not_call_mercury, promise_pure],
711 - "
712 - move_panel(Panel, Row, Col);
713 - IO = IO0;
714 - ").
715 -
716 - %-------------------------------------------------------------------------%
717 -
718 - :- pragma foreign_proc("C",
719 - clear(Panel::in, IO0::di, IO::uo),
720 - [will_not_call_mercury, promise_pure],
721 - "
722 - wclear(panel_window(Panel));
723 - IO = IO0;
724 - ").
725 -
726 - %-------------------------------------------------------------------------%
727 -
728 - :- pragma foreign_proc("C",
729 - move(Panel::in, Row::in, Col::in, IO0::di, IO::uo),
730 - [will_not_call_mercury, promise_pure],
731 - "
732 - wmove(panel_window(Panel), Row, Col);
733 - IO = IO0;
734 - ").
735 -
736 - %-------------------------------------------------------------------------%
737 -
738 - :- pragma foreign_proc("C",
739 - addch(Panel::in, Attr::in, CharCode::in, IO0::di, IO::uo),
740 - [will_not_call_mercury, promise_pure],
741 - "
742 - waddch(panel_window(Panel), (chtype)Attr | (chtype)CharCode);
743 - IO = IO0;
744 - ").
745 -
746 - %-------------------------------------------------------------------------%
747 -
748 - addstr(Panel, Attr, Str, !IO) :-
749 - string.foldl(
750 - ( pred(Char::in, !.IO::di, !:IO::uo) is det :-
751 - addch(Panel, Attr, char.to_int(Char), !IO)
752 - ),
753 - Str, !IO
754 - ).
755 -
756 - %-------------------------------------------------------------------------%
757 -
758 - :- pragma foreign_proc("C",
759 - attr_on(Panel::in, Attr::in, IO0::di, IO::uo),
760 - [will_not_call_mercury, promise_pure],
761 - "
762 - wattron(panel_window(Panel), Attr);
763 - IO = IO0;
764 - ").
765 -
766 - :- pragma foreign_proc("C",
767 - attr_off(Panel::in, Attr::in, IO0::di, IO::uo),
768 - [will_not_call_mercury, promise_pure],
769 - "
770 - wattroff(panel_window(Panel), Attr);
771 - IO = IO0;
772 - ").
773 -
774 - :- pragma foreign_proc("C",
775 - attr_set(Panel::in, Attr::in, IO0::di, IO::uo),
776 - [will_not_call_mercury, promise_pure],
777 - "
778 - wattrset(panel_window(Panel), Attr);
779 - IO = IO0;
780 - ").
781 -
782 - %-------------------------------------------------------------------------%
783 -
784 - :- pragma foreign_proc("C",
785 - update_panels(IO0::di, IO::uo),
786 - [will_not_call_mercury, promise_pure],
787 - "
788 - update_panels();
789 - doupdate();
790 - IO = IO0;
791 - ").
792 -
793 - %-------------------------------------------------------------------------%
794 -
795 - :- pragma foreign_proc("C",
796 - border(Panel::in, IO0::di, IO::uo),
797 - [will_not_call_mercury, promise_pure],
798 - "
799 - wborder(panel_window(Panel), 0, 0, 0, 0, 0, 0, 0, 0);
800 - IO = IO0;
801 - ").
802 -
803 - :- pragma foreign_proc("C",
804 - hline(Panel::in, C::in, N::in, IO0::di, IO::uo),
805 - [will_not_call_mercury, promise_pure],
806 - "
807 - whline(panel_window(Panel), C, N);
808 - IO = IO0;
809 - ").
810 -
811 - :- pragma foreign_proc("C",
812 - vline(Panel::in, C::in, N::in, IO0::di, IO::uo),
813 - [will_not_call_mercury, promise_pure],
814 - "
815 - wvline(panel_window(Panel), C, N);
816 - IO = IO0;
817 - ").
818 -
819 - %-------------------------------------------------------------------------%
820 - :- end_module panel.
821 - %-------------------------------------------------------------------------%
822 - %-------------------------------------------------------------------------%
823 -
824 -%-----------------------------------------------------------------------------%
825 %-----------------------------------------------------------------------------%
826
827
828
829 1.1 dev-lang/mercury-extras/files/mercury-extras-10.04.1-lex.patch
830
831 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/files/mercury-extras-10.04.1-lex.patch?rev=1.1&view=markup
832 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/files/mercury-extras-10.04.1-lex.patch?rev=1.1&content-type=text/plain
833
834 Index: mercury-extras-10.04.1-lex.patch
835 ===================================================================
836 diff -urN lex/Mmakefile lex/Mmakefile
837 --- lex/Mmakefile 1970-01-01 12:00:00.000000000 +1200
838 +++ lex/Mmakefile 2010-09-06 19:36:37.000000000 +1200
839 @@ -0,0 +1,29 @@
840 +# Copyright (C) 2001 Ralph Becket <rbeck@×××××××××.com>
841 +# Copyright (C) 2002 The University of Melbourne
842 +
843 +# To build, do the following:
844 +#
845 +# $ mmake depend
846 +# $ mmake all
847 +# $ mmake install
848 +#
849 +# If you have problems, try the following instead:
850 +#
851 +# $ mmake depend
852 +# $ mmake all
853 +# $ mmake liblex.install
854 +# $ mmake libregex.install
855 +
856 +MAIN_TARGET = all
857 +
858 +LIBGRADES := $(filter-out java,$(LIBGRADES))
859 +LIBGRADES := $(filter-out erlang,$(LIBGRADES))
860 +
861 +.PHONEY: all depend install
862 +
863 +all: liblex libregex
864 +
865 +depend: lex.depend regex.depend
866 +
867 +install:
868 + $(MMAKE) liblex.install