Gentoo Archives: gentoo-commits

From: Jauhien Piatlicki <jauhien@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/gmsh/, sci-libs/gmsh/files/
Date: Mon, 01 Sep 2014 19:47:21
Message-Id: 1409600651.030212b91690534d54e31b67da3e5ae78fae5ff4.jauhien@gentoo
1 commit: 030212b91690534d54e31b67da3e5ae78fae5ff4
2 Author: Jauhien Piatlicki <jauhien <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 1 19:44:11 2014 +0000
4 Commit: Jauhien Piatlicki <jauhien <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 1 19:44:11 2014 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=030212b9
7
8 sci-libs/gmsh: remove old and live versions
9
10 old version is outdated and has problems with compilation
11 svn repo can not be accessed anonymously
12
13 ---
14 sci-libs/gmsh/ChangeLog | 5 ++
15 sci-libs/gmsh/files/gmsh-2.5.0-libpng-1.5.patch | 10 ---
16 sci-libs/gmsh/files/gmsh-2.5.0-link.patch | 16 -----
17 sci-libs/gmsh/gmsh-2.5.0-r2.ebuild | 95 -------------------------
18 sci-libs/gmsh/gmsh-9999.ebuild | 87 ----------------------
19 5 files changed, 5 insertions(+), 208 deletions(-)
20
21 diff --git a/sci-libs/gmsh/ChangeLog b/sci-libs/gmsh/ChangeLog
22 index 97574bb..9d83124 100644
23 --- a/sci-libs/gmsh/ChangeLog
24 +++ b/sci-libs/gmsh/ChangeLog
25 @@ -2,6 +2,11 @@
26 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
27 # $Header: $
28
29 + 01 Sep 2014; Jauhien Piatlicki <jauhien@g.o> -gmsh-2.5.0-r2.ebuild,
30 + -gmsh-9999.ebuild, -files/gmsh-2.5.0-libpng-1.5.patch,
31 + -files/gmsh-2.5.0-link.patch:
32 + remove old and live versions
33 +
34 01 Sep 2014; Jauhien Piatlicki <jauhien@g.o> gmsh-2.8.5.ebuild:
35 fix sci-mathematics/petsc dependency
36
37
38 diff --git a/sci-libs/gmsh/files/gmsh-2.5.0-libpng-1.5.patch b/sci-libs/gmsh/files/gmsh-2.5.0-libpng-1.5.patch
39 deleted file mode 100644
40 index 7920d99..0000000
41 --- a/sci-libs/gmsh/files/gmsh-2.5.0-libpng-1.5.patch
42 +++ /dev/null
43 @@ -1,10 +0,0 @@
44 ---- a/Graphics/gl2png.cpp
45 -+++ b/Graphics/gl2png.cpp
46 -@@ -16,6 +16,7 @@
47 - #else
48 -
49 - #include <png.h>
50 -+#include <zlib.h>
51 -
52 - #ifndef png_jmpbuf
53 - # define png_jmpbuf(png_ptr) ((png_ptr)->jmpbuf)
54
55 diff --git a/sci-libs/gmsh/files/gmsh-2.5.0-link.patch b/sci-libs/gmsh/files/gmsh-2.5.0-link.patch
56 deleted file mode 100644
57 index f019cae..0000000
58 --- a/sci-libs/gmsh/files/gmsh-2.5.0-link.patch
59 +++ /dev/null
60 @@ -1,16 +0,0 @@
61 - CMakeLists.txt | 2 +-
62 - 1 file changed, 1 insertion(+), 1 deletion(-)
63 -
64 -diff --git a/CMakeLists.txt b/CMakeLists.txt
65 -index 5549d6a..48a106d 100644
66 ---- a/CMakeLists.txt
67 -+++ b/CMakeLists.txt
68 -@@ -879,7 +879,7 @@ elseif(HAVE_QT)
69 - else(HAVE_FLTK)
70 - add_executable(gmsh Common/Main.cpp ${GMSH_SRC})
71 - endif(HAVE_FLTK)
72 --target_link_libraries(gmsh ${LINK_LIBRARIES})
73 -+target_link_libraries(gmsh ${LINK_LIBRARIES} -ldl)
74 -
75 - # increase stack to 16Mb on Windows to avoid overflows in recursive
76 - # tet classification for large 3D Delaunay grids
77
78 diff --git a/sci-libs/gmsh/gmsh-2.5.0-r2.ebuild b/sci-libs/gmsh/gmsh-2.5.0-r2.ebuild
79 deleted file mode 100644
80 index 25db3df..0000000
81 --- a/sci-libs/gmsh/gmsh-2.5.0-r2.ebuild
82 +++ /dev/null
83 @@ -1,95 +0,0 @@
84 -# Copyright 1999-2014 Gentoo Foundation
85 -# Distributed under the terms of the GNU General Public License v2
86 -# $Header: $
87 -
88 -EAPI=5
89 -
90 -inherit cmake-utils fortran-2 toolchain-funcs
91 -
92 -DESCRIPTION="3D finite element mesh generator with built-in pre- and post-processing facilities"
93 -HOMEPAGE="http://www.geuz.org/gmsh/"
94 -SRC_URI="http://www.geuz.org/gmsh/src/${P}-source.tgz"
95 -
96 -## gmsh comes with its own copies of (at least) metis, netgen and tetgen, therefore inform the user of their special licenses
97 -LICENSE="GPL-3 free-noncomm"
98 -SLOT="0"
99 -KEYWORDS="~amd64 ~x86"
100 -## cgns is not compiling ATM, maybe fix cgns lib first
101 -IUSE="blas cgns chaco doc examples jpeg lua med metis mpi netgen opencascade petsc taucs tetgen X"
102 -
103 -RDEPEND="
104 - media-libs/libpng
105 - sys-libs/zlib
106 - virtual/fortran
107 - virtual/glu
108 - virtual/opengl
109 - X? ( x11-libs/fltk:1[opengl] )
110 - blas? ( virtual/blas virtual/lapack sci-libs/fftw:3.0 )
111 - cgns? ( sci-libs/cgnslib )
112 - jpeg? ( virtual/jpeg )
113 - lua? ( dev-lang/lua )
114 - med? ( >=sci-libs/med-2.3.4 )
115 - opencascade? ( sci-libs/opencascade )
116 - petsc? ( sci-mathematics/petsc )
117 - mpi? ( virtual/mpi[cxx] )
118 - taucs? ( sci-libs/taucs )
119 - "
120 -
121 -REQUIRED_USE="
122 - taucs? ( || ( metis ) )
123 - "
124 -
125 -DEPEND="${RDEPEND}
126 - doc? ( virtual/latex-base )"
127 -
128 -S=${WORKDIR}/${P}-source
129 -
130 -PATCHES=(
131 - "${FILESDIR}/${P}-link.patch"
132 - "${FILESDIR}/${P}-libpng-1.5.patch" )
133 -
134 -REQUIRED_USE="taucs? ( metis )"
135 -
136 -src_configure() {
137 - use blas && \
138 - myargs="-DCMAKE_Fortran_COMPILER=$(tc-getF77)"
139 -
140 - mycmakeargs=(
141 - $(cmake-utils_use_enable blas BLAS_LAPACK)
142 - $(cmake-utils_use_enable cgns CGNS)
143 - $(cmake-utils_use_enable chaco CHACO)
144 - $(cmake-utils_use_enable X FLTK)
145 - $(cmake-utils_use_enable X FL_TREE)
146 - $(cmake-utils_use_enable X GRAPHICS)
147 - $(cmake-utils_use_enable med MED)
148 - $(cmake-utils_use_enable metis METIS)
149 - $(cmake-utils_use_enable netgen NETGEN)
150 - $(cmake-utils_use_enable taucs TAUCS)
151 - $(cmake-utils_use_enable tetgen TETGEN)
152 - $(cmake-utils_use_enable opencascade OCC)
153 - $(cmake-utils_use_enable petsc PETSC)
154 - ${myargs}
155 - )
156 -# $(cmake-utils_use_enable tetgen TETGEN_NEW)
157 -
158 - cmake-utils_src_configure
159 -}
160 -
161 -src_compile() {
162 - cmake-utils_src_compile
163 - if use doc ; then
164 - emake pdf -C "${CMAKE_BUILD_DIR}"
165 - fi
166 -}
167 -
168 -src_install() {
169 - cmake-utils_src_install
170 -
171 - # TODO: tutorials get installed twice ATM
172 - use doc && dodoc doc/texinfo/gmsh.pdf
173 -
174 - if use examples ; then
175 - insinto /usr/share/doc/${PF}
176 - doins -r demos tutorial
177 - fi
178 -}
179
180 diff --git a/sci-libs/gmsh/gmsh-9999.ebuild b/sci-libs/gmsh/gmsh-9999.ebuild
181 deleted file mode 100644
182 index fb15737..0000000
183 --- a/sci-libs/gmsh/gmsh-9999.ebuild
184 +++ /dev/null
185 @@ -1,87 +0,0 @@
186 -# Copyright 1999-2014 Gentoo Foundation
187 -# Distributed under the terms of the GNU General Public License v2
188 -# $Header: $
189 -
190 -EAPI=5
191 -
192 -inherit cmake-utils flag-o-matic fortran-2 subversion toolchain-funcs
193 -
194 -DESCRIPTION="A three-dimensional finite element mesh generator with built-in pre- and post-processing facilities"
195 -HOMEPAGE="http://www.geuz.org/gmsh/"
196 -ESVN_REPO_URI="https://geuz.org/svn/gmsh/trunk"
197 -ESVN_USER="gmsh"
198 -ESVN_PASSWORD="gmsh"
199 -
200 -LICENSE="GPL-3 free-noncomm"
201 -SLOT="0"
202 -KEYWORDS=""
203 -IUSE="blas cgns chaco doc examples jpeg med metis mpi opencascade png taucs X zlib"
204 -
205 -RDEPEND="
206 - virtual/fortran
207 - X? ( x11-libs/fltk:1 )
208 - blas? ( virtual/blas virtual/lapack sci-libs/fftw:3.0 )
209 - cgns? ( sci-libs/cgnslib )
210 - jpeg? ( virtual/jpeg )
211 - med? ( >=sci-libs/med-2.3.4 )
212 - mpi? ( sys-cluster/openmpi[cxx] )
213 - opencascade? ( sci-libs/opencascade )
214 - png? ( media-libs/libpng )
215 - zlib? ( sys-libs/zlib )
216 - taucs? ( sci-libs/taucs )"
217 -
218 -DEPEND="${RDEPEND}
219 - dev-util/cmake
220 - dev-vcs/subversion
221 - doc? ( virtual/latex-base )"
222 -
223 -pkg_setup() {
224 - fortran-2_pkg_setup
225 - use taucs && ! use metis && \
226 - die "taucs USE flag requires metis USE flag to be enabled"
227 -}
228 -
229 -src_configure() {
230 - local mycmakeargs=""
231 -
232 - use blas && \
233 - mycmakeargs="${mycmakeargs}
234 - -DCMAKE_Fortran_COMPILER=$(tc-getF77)"
235 -
236 - mycmakeargs="${mycmakeargs}
237 - $(cmake-utils_use_enable blas BLAS_LAPACK)
238 - $(cmake-utils_use_enable cgns CGNS)
239 - $(cmake-utils_use_enable chaco CHACO)
240 - $(cmake-utils_use_enable X FLTK)
241 - $(cmake-utils_use_enable X FL_TREE)
242 - $(cmake-utils_use_enable X GRAPHICS)
243 - $(cmake-utils_use_enable med MED)
244 - $(cmake-utils_use_enable metis METIS)
245 - $(cmake-utils_use_enable taucs TAUCS)
246 - $(cmake-utils_use_enable opencascade OCC)"
247 -
248 -# I'm not sure if this is needed, but it seems to help in some circumstances
249 -# see http://bugs.gentoo.org/show_bug.cgi?id=195980#c18
250 - append-ldflags -ldl -lmpi
251 -
252 - cmake-utils_src_configure ${mycmakeargs} \
253 - || die "cmake configuration failed"
254 -}
255 -
256 -src_install() {
257 - cmake-utils_src_install
258 -
259 - cd "${WORKDIR}"/"${PF}"
260 -
261 - if use doc ; then
262 - cd ${CMAKE_BUILD_DIR}
263 - emake pdf || die "failed to build documentation"
264 - cd "${WORKDIR}"/"${PF}"
265 - dodoc doc/*.txt doc/texinfo/gmsh.pdf
266 - fi
267 -
268 - if use examples ; then
269 - insinto /usr/share/doc/${PF}
270 - doins -r demos tutorial || die "failed to install examples"
271 - fi
272 -}