Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/scotch/files: Makefile.inc mmkt-typo.patch metis-header.patch shared-libs.patch
Date: Thu, 03 Sep 2009 11:50:23
Message-Id: E1MjFe5-0000Zu-Tw@stork.gentoo.org
1 patrick 09/09/03 16:58:49
2
3 Added: Makefile.inc mmkt-typo.patch metis-header.patch
4 shared-libs.patch
5 Log:
6 Initial import of scotch, dependency of OpenFoam. Ebuild by Richard Westwell and Oliver Borm. Fixes #220823
7 (Portage version: 2.2_rc40/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 sci-libs/scotch/files/Makefile.inc
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/scotch/files/Makefile.inc?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/scotch/files/Makefile.inc?rev=1.1&content-type=text/plain
14
15 Index: Makefile.inc
16 ===================================================================
17 EXE =
18 LIB = .a
19 OBJ = .o
20
21 MAKE = make
22 AR = ar
23 ARFLAGS = -ruv
24 CAT = cat
25 CC = gcc
26 CCP = mpicc
27 CFLAGS = -g -O3 -I. -fPIC -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_PTHREAD
28 LDFLAGS = -lz -lm -lrt
29 CP = cp
30 LEX = flex
31 LN = ln
32 MKDIR = mkdir
33 MV = mv
34 RANLIB = ranlib
35 YACC = bison -y
36
37
38
39 1.1 sci-libs/scotch/files/mmkt-typo.patch
40
41 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/scotch/files/mmkt-typo.patch?rev=1.1&view=markup
42 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/scotch/files/mmkt-typo.patch?rev=1.1&content-type=text/plain
43
44 Index: mmkt-typo.patch
45 ===================================================================
46 --- scotch-5.1.6.dfsg.orig/src/libscotch/library_graph_io_mmkt_f.c 2008-03-14 18:15:59.000000000 +0000
47 +++ scotch-5.1.6.dfsg/src/libscotch/library_graph_io_mmkt_f.c 2008-07-21 15:12:48.000000000 +0000
48 @@ -121,7 +121,7 @@
49 */
50
51 FORTRAN ( \
52 -SCOTCHFGRAPHGEOMSAVEMMKT, scotchfgraphgeomsavechac, ( \
53 +SCOTCHFGRAPHGEOMSAVEMMKT, scotchfgraphgeomsavemmkt, ( \
54 const SCOTCH_Graph * const grafptr, \
55 const SCOTCH_Geom * const geomptr, \
56 const int * const filegrfptr, \
57
58
59
60 1.1 sci-libs/scotch/files/metis-header.patch
61
62 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/scotch/files/metis-header.patch?rev=1.1&view=markup
63 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/scotch/files/metis-header.patch?rev=1.1&content-type=text/plain
64
65 Index: metis-header.patch
66 ===================================================================
67 --- scotch-5.1.6.dfsg/src/libscotchmetis/metis.h~ 2007-09-03 11:14:42.000000000 -0400
68 +++ scotch-5.1.6.dfsg/src/libscotchmetis/metis.h 2008-08-26 15:09:30.000000000 -0400
69 @@ -55,6 +55,8 @@
70 /** **/
71 /************************************************************/
72
73 +typedef int idxtype;
74 +
75 /*
76 ** The function prototypes.
77 */
78
79
80
81 1.1 sci-libs/scotch/files/shared-libs.patch
82
83 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/scotch/files/shared-libs.patch?rev=1.1&view=markup
84 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/scotch/files/shared-libs.patch?rev=1.1&content-type=text/plain
85
86 Index: shared-libs.patch
87 ===================================================================
88 --- scotch-5.1.6.dfsg/src/libscotch/Makefile~ 2008-05-29 09:01:12.000000000 +0000
89 +++ scotch-5.1.6.dfsg/src/libscotch/Makefile 2008-07-21 14:34:37.000000000 +0000
90 @@ -55,8 +55,8 @@
91 $(MAKE) SCOTCHLIB=scotch \
92 scotch.h \
93 scotchf.h \
94 - libscotch$(LIB) \
95 libscotcherr$(LIB) \
96 + libscotch$(LIB) \
97 libscotcherrexit$(LIB)
98
99 ptscotch : clean
100 @@ -2127,6 +2127,8 @@
101 vmesh_separate_zr$(OBJ) \
102 vmesh_separate_st$(OBJ) \
103 vmesh_store$(OBJ)
104 + $(CC) -shared -Wl,-soname,lib$(SCOTCHLIB)-5.1.so -L. -lscotcherr -lz -lpthread -lm -lrt -o lib$(SCOTCHLIB)-5.1.so $^
105 + ln -s lib$(SCOTCHLIB)-5.1.so lib$(SCOTCHLIB).so
106 $(AR) $(ARFLAGS) lib$(SCOTCHLIB)$(LIB) $(?)
107 -$(RANLIB) lib$(SCOTCHLIB)$(LIB)
108
109 @@ -2139,9 +2141,13 @@
110 -$(RANLIB) $(@)
111
112 libscotcherr$(LIB) : library_error$(OBJ)
113 + $(CC) -shared -Wl,-soname,libscotcherr-5.1.so -o libscotcherr-5.1.so $^
114 + ln -s libscotcherr-5.1.so libscotcherr.so
115 $(AR) $(ARFLAGS) $(@) $(?)
116 -$(RANLIB) $(@)
117
118 libscotcherrexit$(LIB) : library_error_exit$(OBJ)
119 + $(CC) -shared -Wl,-soname,libscotcherrexit-5.1.so -o libscotcherrexit-5.1.so $^
120 + ln -s libscotcherrexit-5.1.so libscotcherrexit.so
121 $(AR) $(ARFLAGS) $(@) $(?)
122 -$(RANLIB) $(@)
123 --- scotch-5.0.6.dfsg/src/libscotchmetis/Makefile~ 2008-05-07 16:23:07.000000000 +0000
124 +++ scotch-5.0.6.dfsg/src/libscotchmetis/Makefile 2008-07-18 19:45:15.000000000 +0000
125 @@ -120,5 +120,7 @@
126 metis_graph_order_f$(OBJ) \
127 metis_graph_part$(OBJ) \
128 metis_graph_part_f$(OBJ)
129 + $(CC) -shared -Wl,-soname,libscotchmetis-5.1.so -L../libscotch -lscotch -o libscotchmetis-5.1.so $^
130 + ln -s libscotchmetis-5.1.so libscotchmetis.so
131 $(AR) $(ARFLAGS) $(@) $(^)
132 -$(RANLIB) $(@)