1 |
commit: 4c8ef1bc7fda02d8b1981765943a30b8e27f4d6e |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 29 12:52:28 2013 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 29 12:52:28 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=4c8ef1bc |
7 |
|
8 |
sci-libs/cgnslib: Version Bump |
9 |
|
10 |
Package-Manager: portage-2.2.7 |
11 |
|
12 |
--- |
13 |
sci-libs/cgnslib/ChangeLog | 8 +- |
14 |
sci-libs/cgnslib/cgnslib-3.2.1.ebuild | 49 ++++++++ |
15 |
sci-libs/cgnslib/files/cgnslib-3.2.1-cmake.patch | 149 +++++++++++++++++++++++ |
16 |
sci-libs/cgnslib/metadata.xml | 5 +- |
17 |
4 files changed, 209 insertions(+), 2 deletions(-) |
18 |
|
19 |
diff --git a/sci-libs/cgnslib/ChangeLog b/sci-libs/cgnslib/ChangeLog |
20 |
index ec92de8..6925f15 100644 |
21 |
--- a/sci-libs/cgnslib/ChangeLog |
22 |
+++ b/sci-libs/cgnslib/ChangeLog |
23 |
@@ -1,7 +1,13 @@ |
24 |
# ChangeLog for sci-libs/cgnslib |
25 |
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
26 |
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
27 |
# $Header: $ |
28 |
|
29 |
+*cgnslib-3.2.1 (29 Dec 2013) |
30 |
+ |
31 |
+ 29 Dec 2013; Justin Lecher <jlec@g.o> +cgnslib-3.2.1.ebuild, |
32 |
+ +files/cgnslib-3.2.1-cmake.patch, metadata.xml: |
33 |
+ Version Bump |
34 |
+ |
35 |
22 May 2012; Justin Lecher <jlec@g.o> cgnslib-2.5.4.ebuild, |
36 |
metadata.xml: |
37 |
Add missing eutils.eclass, bump to EAPI=4, remove unnecessary bits |
38 |
|
39 |
diff --git a/sci-libs/cgnslib/cgnslib-3.2.1.ebuild b/sci-libs/cgnslib/cgnslib-3.2.1.ebuild |
40 |
new file mode 100644 |
41 |
index 0000000..1738762 |
42 |
--- /dev/null |
43 |
+++ b/sci-libs/cgnslib/cgnslib-3.2.1.ebuild |
44 |
@@ -0,0 +1,49 @@ |
45 |
+# Copyright 1999-2013 Gentoo Foundation |
46 |
+# Distributed under the terms of the GNU General Public License v2 |
47 |
+# $Header: $ |
48 |
+ |
49 |
+EAPI=5 |
50 |
+ |
51 |
+FORTRAN_NEEDED="fortran" |
52 |
+ |
53 |
+inherit cmake-utils fortran-2 versionator |
54 |
+ |
55 |
+MY_P="${PN}_$(replace_version_separator 3 '-')" |
56 |
+MY_S="${PN}_$(get_version_component_range 1-2)" |
57 |
+ |
58 |
+DESCRIPTION="The CFD General Notation System (CGNS) is a standard for CFD data" |
59 |
+HOMEPAGE="http://www.cgns.org/" |
60 |
+SRC_URI="mirror://sourceforge/project/cgns/${MY_S}/${MY_P}.tar.gz" |
61 |
+ |
62 |
+LICENSE="ZLIB" |
63 |
+SLOT="0" |
64 |
+KEYWORDS="~amd64 ~x86" |
65 |
+IUSE="fortran hdf5 legacy mpi szip zlib" |
66 |
+ |
67 |
+DEPEND=" |
68 |
+ hdf5? ( >=sci-libs/hdf5-1.8[mpi=] ) |
69 |
+ szip? ( sci-libs/szip ) |
70 |
+ zlib? ( sys-libs/zlib )" |
71 |
+RDEPEND="${DEPEND}" |
72 |
+ |
73 |
+S="${WORKDIR}"/${PN}_${PV} |
74 |
+ |
75 |
+PATCHES=( |
76 |
+ "${FILESDIR}"/${P}-cmake.patch |
77 |
+) |
78 |
+ |
79 |
+pkg_setup() { |
80 |
+ use fortran && fortran-2_pkg_setup |
81 |
+} |
82 |
+ |
83 |
+src_configure() { |
84 |
+ local mycmakeargs=( |
85 |
+ -DCGNS_ENABLE_64BIT=ON |
86 |
+ $(usex x86 -DCGNS_ENABLE_LFS=ON) |
87 |
+ $(cmake-utils_use fortran CGNS_ENABLE_FORTRAN) |
88 |
+ $(cmake-utils_use hdf5 CGNS_ENABLE_HDF5) |
89 |
+ $(cmake-utils_use legacy CGNS_ENABLE_LEGACY) |
90 |
+ $(cmake-utils_use mpi HDF5_NEED_MPI) |
91 |
+ ) |
92 |
+ cmake-utils_src_configure |
93 |
+} |
94 |
|
95 |
diff --git a/sci-libs/cgnslib/files/cgnslib-3.2.1-cmake.patch b/sci-libs/cgnslib/files/cgnslib-3.2.1-cmake.patch |
96 |
new file mode 100644 |
97 |
index 0000000..bf8ea5f |
98 |
--- /dev/null |
99 |
+++ b/sci-libs/cgnslib/files/cgnslib-3.2.1-cmake.patch |
100 |
@@ -0,0 +1,149 @@ |
101 |
+ CMakeLists.txt | 20 +-------------- |
102 |
+ src/CMakeLists.txt | 72 +++++++++++++++++++++++++++--------------------------- |
103 |
+ 2 files changed, 37 insertions(+), 55 deletions(-) |
104 |
+ |
105 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
106 |
+index d9c1b3c..d4c2bf7 100644 |
107 |
+--- a/CMakeLists.txt |
108 |
++++ b/CMakeLists.txt |
109 |
+@@ -81,7 +81,7 @@ if (CGNS_ENABLE_LFS) |
110 |
+ if (HAVE_OPEN64) |
111 |
+ add_definitions(-DHAVE_LSEEK64) |
112 |
+ endif (HAVE_OPEN64) |
113 |
+- if (HAVE_OPEN64) |
114 |
++ if (HAVE_LSEEK64) |
115 |
+ add_definitions(-DHAVE_LSEEK64) |
116 |
+ endif (HAVE_LSEEK64) |
117 |
+ endif (WIN32) |
118 |
+@@ -254,24 +254,6 @@ else (CGNS_ENABLE_HDF5 AND HDF5_NEED_MPI) |
119 |
+ mark_as_advanced(FORCE CGNS_ENABLE_PARALLEL) |
120 |
+ endif (CGNS_ENABLE_HDF5 AND HDF5_NEED_MPI) |
121 |
+ |
122 |
+-#################### |
123 |
+-# RPATH Management # |
124 |
+-#################### |
125 |
+- |
126 |
+-# use, i.e. don't skip the full RPATH for the build tree |
127 |
+-set(CMAKE_SKIP_BUILD_RPATH FALSE) |
128 |
+- |
129 |
+-# when building, don't use the install RPATH already |
130 |
+-# (but later on when installing) |
131 |
+-set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) |
132 |
+- |
133 |
+-# the RPATH to be used when installing |
134 |
+-set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") |
135 |
+- |
136 |
+-# add the automatically determined parts of the RPATH |
137 |
+-# which point to directories outside the build tree to the install RPATH |
138 |
+-set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) |
139 |
+- |
140 |
+ ######## |
141 |
+ # CGNS # |
142 |
+ ######## |
143 |
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt |
144 |
+index 3c12c6d..694da42 100644 |
145 |
+--- a/src/CMakeLists.txt |
146 |
++++ b/src/CMakeLists.txt |
147 |
+@@ -69,7 +69,7 @@ set(SYSCFLAGS "") |
148 |
+ set(CFGFLAGS "") |
149 |
+ set(LIBS "") |
150 |
+ |
151 |
+-file(TO_NATIVE_PATH ${CMAKE_INSTALL_PREFIX}/lib LIBDIR) |
152 |
++file(TO_NATIVE_PATH ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX} LIBDIR) |
153 |
+ file(TO_NATIVE_PATH ${CMAKE_INSTALL_PREFIX}/include INCLUDEDIR) |
154 |
+ file(TO_NATIVE_PATH ${CMAKE_C_COMPILER} CC) |
155 |
+ if (WIN32) |
156 |
+@@ -102,42 +102,42 @@ set(ZLIBLIB "") |
157 |
+ set(MPIINC "") |
158 |
+ set(MPILIBS "") |
159 |
+ |
160 |
+-macro(native_paths INPUT_PATH_VARIABLE RESULT_VARIABLE) |
161 |
+- set(${RESULT_VARIABLE} "") |
162 |
+- foreach(PATH ${${INPUT_PATH_VARIABLE}}) |
163 |
+- file(TO_NATIVE_PATH ${PATH} NATIVE_PATH) |
164 |
+- list(APPEND ${RESULT_VARIABLE} ${NATIVE_PATH}) |
165 |
+- endforeach(PATH ${${INPUT_PATH_VARIABLE}}) |
166 |
+-endmacro(native_paths) |
167 |
++macro(native_paths INPUT_PATH_VARIABLE RESULT_VARIABLE) |
168 |
++ set(${RESULT_VARIABLE} "") |
169 |
++ foreach(PATH ${${INPUT_PATH_VARIABLE}}) |
170 |
++ file(TO_NATIVE_PATH ${PATH} NATIVE_PATH) |
171 |
++ list(APPEND ${RESULT_VARIABLE} ${NATIVE_PATH}) |
172 |
++ endforeach(PATH ${${INPUT_PATH_VARIABLE}}) |
173 |
++endmacro(native_paths) |
174 |
+ |
175 |
+ if (CGNS_ENABLE_HDF5) |
176 |
+ set(BUILDHDF5 1) |
177 |
+- if (HDF5_INCLUDE_PATH) |
178 |
+- native_paths(HDF5_INCLUDE_PATH HDF5INC) |
179 |
+- endif (HDF5_INCLUDE_PATH) |
180 |
+- if (HDF5_LIBRARY) |
181 |
+- native_paths(HDF5_LIBRARY HDF5LIB) |
182 |
+- endif (HDF5_LIBRARY) |
183 |
+- if (HDF5_NEED_SZIP) |
184 |
+- set(H5NEEDSZIP 1) |
185 |
+- if (SZIP_LIBRARY) |
186 |
+- native_paths(SZIP_LIBRARY SZIPLIB) |
187 |
+- endif (SZIP_LIBRARY) |
188 |
+- endif (HDF5_NEED_SZIP) |
189 |
+- if (HDF5_NEED_ZLIB) |
190 |
+- set(H5NEEDZLIB 1) |
191 |
+- if (ZLIB_LIBRARY) |
192 |
+- native_paths(${ZLIB_LIBRARY} ZLIBLIB) |
193 |
+- endif (ZLIB_LIBRARY) |
194 |
+- endif (HDF5_NEED_ZLIB) |
195 |
+- if (HDF5_NEED_MPI) |
196 |
+- set(H5NEEDMPI 1) |
197 |
+- if (MPI_INC) |
198 |
+- native_paths(MPI_INC MPIINC) |
199 |
+- endif (MPI_INC) |
200 |
+- if (MPI_LIBS) |
201 |
+- native_paths(MPI_LIBS MPILIBS) |
202 |
+- endif (MPI_LIBS) |
203 |
++ if (HDF5_INCLUDE_PATH) |
204 |
++ native_paths(HDF5_INCLUDE_PATH HDF5INC) |
205 |
++ endif (HDF5_INCLUDE_PATH) |
206 |
++ if (HDF5_LIBRARY) |
207 |
++ native_paths(HDF5_LIBRARY HDF5LIB) |
208 |
++ endif (HDF5_LIBRARY) |
209 |
++ if (HDF5_NEED_SZIP) |
210 |
++ set(H5NEEDSZIP 1) |
211 |
++ if (SZIP_LIBRARY) |
212 |
++ native_paths(SZIP_LIBRARY SZIPLIB) |
213 |
++ endif (SZIP_LIBRARY) |
214 |
++ endif (HDF5_NEED_SZIP) |
215 |
++ if (HDF5_NEED_ZLIB) |
216 |
++ set(H5NEEDZLIB 1) |
217 |
++ if (ZLIB_LIBRARY) |
218 |
++ native_paths(${ZLIB_LIBRARY} ZLIBLIB) |
219 |
++ endif (ZLIB_LIBRARY) |
220 |
++ endif (HDF5_NEED_ZLIB) |
221 |
++ if (HDF5_NEED_MPI) |
222 |
++ set(H5NEEDMPI 1) |
223 |
++ if (MPI_INC) |
224 |
++ native_paths(MPI_INC MPIINC) |
225 |
++ endif (MPI_INC) |
226 |
++ if (MPI_LIBS) |
227 |
++ native_paths(MPI_LIBS MPILIBS) |
228 |
++ endif (MPI_LIBS) |
229 |
+ if (CGNS_ENABLE_PARALLEL) |
230 |
+ set(BUILDPARALLEL 1) |
231 |
+ endif (CGNS_ENABLE_PARALLEL) |
232 |
+@@ -251,7 +251,7 @@ if(CGNS_BUILD_SHARED) |
233 |
+ endif(CGNS_BUILD_SHARED) |
234 |
+ |
235 |
+ # Set the install path of the static library |
236 |
+-install(TARGETS cgns_static ARCHIVE DESTINATION lib) |
237 |
++install(TARGETS cgns_static ARCHIVE DESTINATION lib${LIB_SUFFIX}) |
238 |
+ # Set the install path of the shared library |
239 |
+ if(CGNS_BUILD_SHARED) |
240 |
+ # for windows, need to install both cgnsdll.dll and cgnsdll.lib |
241 |
+@@ -259,7 +259,7 @@ if(CGNS_BUILD_SHARED) |
242 |
+ install(TARGETS cgns_shared ARCHIVE DESTINATION lib) |
243 |
+ install(TARGETS cgns_shared RUNTIME DESTINATION lib) |
244 |
+ else (WIN32 OR CYGWIN) |
245 |
+- install(TARGETS cgns_shared LIBRARY DESTINATION lib) |
246 |
++ install(TARGETS cgns_shared LIBRARY DESTINATION lib${LIB_SUFFIX}) |
247 |
+ endif (WIN32 OR CYGWIN) |
248 |
+ endif(CGNS_BUILD_SHARED) |
249 |
+ |
250 |
|
251 |
diff --git a/sci-libs/cgnslib/metadata.xml b/sci-libs/cgnslib/metadata.xml |
252 |
index d369d06..7065822 100644 |
253 |
--- a/sci-libs/cgnslib/metadata.xml |
254 |
+++ b/sci-libs/cgnslib/metadata.xml |
255 |
@@ -1,5 +1,8 @@ |
256 |
<?xml version="1.0" encoding="UTF-8"?> |
257 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
258 |
<pkgmetadata> |
259 |
- <herd>sci</herd> |
260 |
+ <herd>sci</herd> |
261 |
+ <use> |
262 |
+ <flag name="legacy">Enable or disable building legacy code (3.0 compatible)</flag> |
263 |
+ </use> |
264 |
</pkgmetadata> |