Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/charm/
Date: Sun, 08 Sep 2019 06:43:51
Message-Id: 1567924448.453637079cf5bc064925452d35976fd66ee46ec9.mgorny@gentoo
1 commit: 453637079cf5bc064925452d35976fd66ee46ec9
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 8 06:34:08 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 8 06:34:08 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45363707
7
8 sys-cluster/charm: Drop old revs of 6.5.1
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 sys-cluster/charm/charm-6.5.1-r1.ebuild | 207 -------------------------------
13 sys-cluster/charm/charm-6.5.1-r2.ebuild | 208 --------------------------------
14 2 files changed, 415 deletions(-)
15
16 diff --git a/sys-cluster/charm/charm-6.5.1-r1.ebuild b/sys-cluster/charm/charm-6.5.1-r1.ebuild
17 deleted file mode 100644
18 index 4f82e15a3eb..00000000000
19 --- a/sys-cluster/charm/charm-6.5.1-r1.ebuild
20 +++ /dev/null
21 @@ -1,207 +0,0 @@
22 -# Copyright 1999-2015 Gentoo Foundation
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=5
26 -
27 -PYTHON_COMPAT=( python2_7 )
28 -
29 -inherit eutils flag-o-matic fortran-2 multilib toolchain-funcs python-single-r1
30 -
31 -DESCRIPTION="Message-passing parallel language and runtime system"
32 -HOMEPAGE="http://charm.cs.uiuc.edu/"
33 -SRC_URI="http://charm.cs.uiuc.edu/distrib/${P}.tar.gz"
34 -
35 -LICENSE="charm"
36 -SLOT="0"
37 -KEYWORDS="~amd64 ~x86"
38 -IUSE="charmdebug charmtracing charmproduction cmkopt doc examples mlogft mpi numa smp static-libs syncft tcp"
39 -
40 -RDEPEND="mpi? ( virtual/mpi )"
41 -DEPEND="
42 - ${RDEPEND}
43 - doc? (
44 - >=app-text/poppler-0.12.3-r3[utils]
45 - dev-tex/latex2html
46 - virtual/tex-base
47 - >=dev-python/beautifulsoup-4[${PYTHON_USEDEP}]
48 - dev-python/lxml[${PYTHON_USEDEP}]
49 - media-libs/netpbm
50 - ${PYTHON_DEPS}
51 - )"
52 -
53 -REQUIRED_USE="
54 - doc? ( ${PYTHON_REQUIRED_USE} )
55 - cmkopt? ( !charmdebug !charmtracing )
56 - charmproduction? ( !charmdebug !charmtracing )"
57 -
58 -FORTRAN_STANDARD="90"
59 -
60 -get_opts() {
61 - local CHARM_OPTS
62 -
63 - # TCP instead of default UDP for socket comunication
64 - # protocol
65 - CHARM_OPTS+="$(usex tcp ' tcp' '')"
66 -
67 - # enable direct SMP support using shared memory
68 - CHARM_OPTS+="$(usex smp ' smp' '')"
69 -
70 - CHARM_OPTS+="$(usex mlogft ' mlogft' '')"
71 - CHARM_OPTS+="$(usex syncft ' syncft' '')"
72 -
73 - # Build shared libraries by default.
74 - CHARM_OPTS+=" --build-shared"
75 -
76 - if use charmproduction; then
77 - CHARM_OPTS+=" --with-production"
78 - else
79 - if use charmdebug; then
80 - CHARM_OPTS+=" --enable-charmdebug"
81 - fi
82 -
83 - if use charmtracing; then
84 - CHARM_OPTS+=" --enable-tracing --enable-tracing-commthread"
85 - fi
86 - fi
87 -
88 - CHARM_OPTS+="$(usex numa ' --with-numa' '')"
89 - echo $CHARM_OPTS
90 -}
91 -
92 -src_prepare() {
93 - sed \
94 - -e "/CMK_CF90/s:f90:$(usex mpi "mpif90" "$(tc-getFC)"):g" \
95 - -e "/CMK_CXX/s:g++:$(usex mpi "mpic++" "$(tc-getCXX)"):g" \
96 - -e "/CMK_CC/s:gcc:$(usex mpi "mpicc" "$(tc-getCC)"):g" \
97 - -e '/CMK_F90_MODINC/s:-p:-I:g' \
98 - -e "/CMK_LD/s:\"$: ${LDFLAGS} \":g" \
99 - -i src/arch/$(usex mpi "mpi" "net")-linux*/*sh || die
100 -
101 - sed \
102 - -e "s:-o conv-cpm:${LDFLAGS} &:g" \
103 - -e "s:-o charmxi:${LDFLAGS} &:g" \
104 - -e "s:-o charmrun-silent:${LDFLAGS} &:g" \
105 - -e "s:-o charmrun-notify:${LDFLAGS} &:g" \
106 - -e "s:-o charmrun:${LDFLAGS} &:g" \
107 - -e "s:-o charmd_faceless:${LDFLAGS} &:g" \
108 - -e "s:-o charmd:${LDFLAGS} &:g" \
109 - -i \
110 - src/scripts/Makefile \
111 - src/arch/net/charmrun/Makefile || die
112 -
113 - # CMK optimization
114 - use cmkopt && append-cppflags -DCMK_OPTIMIZE=1
115 -
116 - # Fix QA notice. Filed report with upstream.
117 - append-cflags -DALLOCA_H
118 -
119 - epatch "${FILESDIR}/charm-6.5.1-cleanup-config.patch"
120 - epatch "${FILESDIR}/charm-6.5.1-CkReductionMgr.patch"
121 - epatch "${FILESDIR}/charm-6.5.1-fix-string-parsing.patch"
122 - epatch "${FILESDIR}/charm-6.5.1-fix-navmenuGenerator.patch"
123 -}
124 -
125 -src_compile() {
126 - local mybuildoptions="$(usex mpi "mpi" "net")-linux$(usex amd64 "-amd64" '') $(get_opts) ${MAKEOPTS} ${CFLAGS}"
127 -
128 - # Build charmm++ first.
129 - einfo "running ./build charm++ ${mybuildoptions}"
130 - ./build charm++ ${mybuildoptions} || die "Failed to build charm++"
131 -
132 - # make pdf/html docs
133 - if use doc; then
134 - python-single-r1_pkg_setup
135 - python_fix_shebang "${S}/doc"
136 - einfo "forcing ${EPYTHON}"
137 - emake -j1 -C doc/charm++
138 - fi
139 -}
140 -
141 -src_test() {
142 - make -C tests/charm++ test TESTOPTS="++local" || die
143 -}
144 -
145 -src_install() {
146 - # Make charmc play well with gentoo before we move it into /usr/bin. This
147 - # patch cannot be applied during src_prepare() because the charmc wrapper
148 - # is used during building.
149 - epatch "${FILESDIR}/charm-6.5.1-charmc-gentoo.patch"
150 -
151 - sed -e "s|gentoo-include|${P}|" \
152 - -e "s|gentoo-libdir|$(get_libdir)|g" \
153 - -e "s|VERSION|${P}/VERSION|" \
154 - -i ./src/scripts/charmc || die "failed patching charmc script"
155 -
156 - # In the following, some of the files are symlinks to ../tmp which we need
157 - # to dereference first (see bug 432834).
158 -
159 - local i
160 -
161 - # Install binaries.
162 - for i in bin/*; do
163 - if [[ -L ${i} ]]; then
164 - i=$(readlink -e "${i}") || die
165 - fi
166 - dobin "${i}"
167 - done
168 -
169 - # Install headers.
170 - insinto /usr/include/${P}
171 - for i in include/*; do
172 - if [[ -L ${i} ]]; then
173 - i=$(readlink -e "${i}") || die
174 - fi
175 - doins "${i}"
176 - done
177 -
178 - # Install static libs. Charm has a lot of .o "libs" that it requires at
179 - # runtime.
180 - if use static-libs; then
181 - for i in lib/*.{a,o}; do
182 - if [[ -L ${i} ]]; then
183 - i=$(readlink -e "${i}") || die
184 - fi
185 - dolib "${i}"
186 - done
187 - fi
188 -
189 - # Install shared libs.
190 - for i in lib_so/*; do
191 - if [[ -L ${i} ]]; then
192 - i=$(readlink -e "${i}") || die
193 - fi
194 - dolib.so "${i}"
195 - done
196 -
197 - # Basic docs.
198 - dodoc CHANGES README
199 -
200 - # Install examples.
201 - if use examples; then
202 - find examples/ -name 'Makefile' | xargs sed \
203 - -r "s:(../)+bin/charmc:/usr/bin/charmc:" -i || \
204 - die "Failed to fix examples"
205 - find examples/ -name 'Makefile' | xargs sed \
206 - -r "s:./charmrun:./charmrun ++local:" -i || \
207 - die "Failed to fix examples"
208 - insinto /usr/share/doc/${PF}/examples
209 - doins -r examples/charm++/*
210 - fi
211 -
212 - # Install pdf/html docs
213 - if use doc; then
214 - cd "${S}/doc/charm++"
215 - # Install pdfs.
216 - insinto /usr/share/doc/${PF}/pdf
217 - doins *.pdf
218 - # Install html.
219 - docinto html
220 - dohtml -r manual/*
221 - fi
222 -}
223 -
224 -pkg_postinst() {
225 - einfo "Please test your charm installation by copying the"
226 - einfo "content of /usr/share/doc/${PF}/examples to a"
227 - einfo "temporary location and run 'make test'."
228 -}
229
230 diff --git a/sys-cluster/charm/charm-6.5.1-r2.ebuild b/sys-cluster/charm/charm-6.5.1-r2.ebuild
231 deleted file mode 100644
232 index b66af8c38b2..00000000000
233 --- a/sys-cluster/charm/charm-6.5.1-r2.ebuild
234 +++ /dev/null
235 @@ -1,208 +0,0 @@
236 -# Copyright 1999-2015 Gentoo Foundation
237 -# Distributed under the terms of the GNU General Public License v2
238 -
239 -EAPI=5
240 -
241 -PYTHON_COMPAT=( python2_7 )
242 -
243 -inherit eutils flag-o-matic fortran-2 multilib toolchain-funcs python-single-r1
244 -
245 -DESCRIPTION="Message-passing parallel language and runtime system"
246 -HOMEPAGE="http://charm.cs.uiuc.edu/"
247 -SRC_URI="http://charm.cs.uiuc.edu/distrib/${P}.tar.gz"
248 -
249 -LICENSE="charm"
250 -SLOT="0"
251 -KEYWORDS="~amd64 ~x86"
252 -IUSE="charmdebug charmtracing charmproduction cmkopt doc examples mlogft mpi numa smp static-libs syncft tcp"
253 -
254 -RDEPEND="mpi? ( virtual/mpi )"
255 -DEPEND="
256 - ${RDEPEND}
257 - doc? (
258 - >=app-text/poppler-0.12.3-r3[utils]
259 - dev-tex/latex2html
260 - virtual/tex-base
261 - >=dev-python/beautifulsoup-4[${PYTHON_USEDEP}]
262 - dev-python/lxml[${PYTHON_USEDEP}]
263 - media-libs/netpbm
264 - ${PYTHON_DEPS}
265 - )"
266 -
267 -REQUIRED_USE="
268 - doc? ( ${PYTHON_REQUIRED_USE} )
269 - cmkopt? ( !charmdebug !charmtracing )
270 - charmproduction? ( !charmdebug !charmtracing )"
271 -
272 -FORTRAN_STANDARD="90"
273 -
274 -get_opts() {
275 - local CHARM_OPTS
276 -
277 - # TCP instead of default UDP for socket comunication
278 - # protocol
279 - CHARM_OPTS+="$(usex tcp ' tcp' '')"
280 -
281 - # enable direct SMP support using shared memory
282 - CHARM_OPTS+="$(usex smp ' smp' '')"
283 -
284 - CHARM_OPTS+="$(usex mlogft ' mlogft' '')"
285 - CHARM_OPTS+="$(usex syncft ' syncft' '')"
286 -
287 - # Build shared libraries by default.
288 - CHARM_OPTS+=" --build-shared"
289 -
290 - if use charmproduction; then
291 - CHARM_OPTS+=" --with-production"
292 - else
293 - if use charmdebug; then
294 - CHARM_OPTS+=" --enable-charmdebug"
295 - fi
296 -
297 - if use charmtracing; then
298 - CHARM_OPTS+=" --enable-tracing --enable-tracing-commthread"
299 - fi
300 - fi
301 -
302 - CHARM_OPTS+="$(usex numa ' --with-numa' '')"
303 - echo $CHARM_OPTS
304 -}
305 -
306 -src_prepare() {
307 - sed \
308 - -e "/CMK_CF90/s:f90:$(usex mpi "mpif90" "$(tc-getFC)"):g" \
309 - -e "/CMK_CXX/s:g++:$(usex mpi "mpic++" "$(tc-getCXX)"):g" \
310 - -e "/CMK_CC/s:gcc:$(usex mpi "mpicc" "$(tc-getCC)"):g" \
311 - -e '/CMK_F90_MODINC/s:-p:-I:g' \
312 - -e "/CMK_LD/s:\"$: ${LDFLAGS} \":g" \
313 - -i src/arch/$(usex mpi "mpi" "net")-linux*/*sh || die
314 -
315 - sed \
316 - -e "s:-o conv-cpm:${LDFLAGS} &:g" \
317 - -e "s:-o charmxi:${LDFLAGS} &:g" \
318 - -e "s:-o charmrun-silent:${LDFLAGS} &:g" \
319 - -e "s:-o charmrun-notify:${LDFLAGS} &:g" \
320 - -e "s:-o charmrun:${LDFLAGS} &:g" \
321 - -e "s:-o charmd_faceless:${LDFLAGS} &:g" \
322 - -e "s:-o charmd:${LDFLAGS} &:g" \
323 - -i \
324 - src/scripts/Makefile \
325 - src/arch/net/charmrun/Makefile || die
326 -
327 - # CMK optimization
328 - use cmkopt && append-cppflags -DCMK_OPTIMIZE=1
329 -
330 - # Fix QA notice. Filed report with upstream.
331 - append-cflags -DALLOCA_H
332 -
333 - epatch "${FILESDIR}/charm-6.5.1-cleanup-config.patch"
334 - epatch "${FILESDIR}/charm-6.5.1-CkReductionMgr.patch"
335 - epatch "${FILESDIR}/charm-6.5.1-fix-string-parsing.patch"
336 - epatch "${FILESDIR}/charm-6.5.1-fix-navmenuGenerator.patch"
337 - epatch "${FILESDIR}/charm-6.5.1-static-library-fix.patch"
338 -}
339 -
340 -src_compile() {
341 - local mybuildoptions="$(usex mpi "mpi" "net")-linux$(usex amd64 "-amd64" '') $(get_opts) ${MAKEOPTS} -j1 ${CFLAGS}"
342 -
343 - # Build charmm++ first.
344 - einfo "running ./build charm++ ${mybuildoptions}"
345 - ./build charm++ ${mybuildoptions} || die "Failed to build charm++"
346 -
347 - # make pdf/html docs
348 - if use doc; then
349 - python-single-r1_pkg_setup
350 - python_fix_shebang "${S}/doc"
351 - einfo "forcing ${EPYTHON}"
352 - emake -j1 -C doc/charm++
353 - fi
354 -}
355 -
356 -src_test() {
357 - make -C tests/charm++ test TESTOPTS="++local" || die
358 -}
359 -
360 -src_install() {
361 - # Make charmc play well with gentoo before we move it into /usr/bin. This
362 - # patch cannot be applied during src_prepare() because the charmc wrapper
363 - # is used during building.
364 - epatch "${FILESDIR}/charm-6.5.1-charmc-gentoo.patch"
365 -
366 - sed -e "s|gentoo-include|${P}|" \
367 - -e "s|gentoo-libdir|$(get_libdir)|g" \
368 - -e "s|VERSION|${P}/VERSION|" \
369 - -i ./src/scripts/charmc || die "failed patching charmc script"
370 -
371 - # In the following, some of the files are symlinks to ../tmp which we need
372 - # to dereference first (see bug 432834).
373 -
374 - local i
375 -
376 - # Install binaries.
377 - for i in bin/*; do
378 - if [[ -L ${i} ]]; then
379 - i=$(readlink -e "${i}") || die
380 - fi
381 - dobin "${i}"
382 - done
383 -
384 - # Install headers.
385 - insinto /usr/include/${P}
386 - for i in include/*; do
387 - if [[ -L ${i} ]]; then
388 - i=$(readlink -e "${i}") || die
389 - fi
390 - doins "${i}"
391 - done
392 -
393 - # Install static libs. Charm has a lot of .o "libs" that it requires at
394 - # runtime.
395 - if use static-libs; then
396 - for i in lib/*.{a,o}; do
397 - if [[ -L ${i} ]]; then
398 - i=$(readlink -e "${i}") || die
399 - fi
400 - dolib "${i}"
401 - done
402 - fi
403 -
404 - # Install shared libs.
405 - for i in lib_so/*; do
406 - if [[ -L ${i} ]]; then
407 - i=$(readlink -e "${i}") || die
408 - fi
409 - dolib.so "${i}"
410 - done
411 -
412 - # Basic docs.
413 - dodoc CHANGES README
414 -
415 - # Install examples.
416 - if use examples; then
417 - find examples/ -name 'Makefile' | xargs sed \
418 - -r "s:(../)+bin/charmc:/usr/bin/charmc:" -i || \
419 - die "Failed to fix examples"
420 - find examples/ -name 'Makefile' | xargs sed \
421 - -r "s:./charmrun:./charmrun ++local:" -i || \
422 - die "Failed to fix examples"
423 - insinto /usr/share/doc/${PF}/examples
424 - doins -r examples/charm++/*
425 - fi
426 -
427 - # Install pdf/html docs
428 - if use doc; then
429 - cd "${S}/doc/charm++"
430 - # Install pdfs.
431 - insinto /usr/share/doc/${PF}/pdf
432 - doins *.pdf
433 - # Install html.
434 - docinto html
435 - dohtml -r manual/*
436 - fi
437 -}
438 -
439 -pkg_postinst() {
440 - einfo "Please test your charm installation by copying the"
441 - einfo "content of /usr/share/doc/${PF}/examples to a"
442 - einfo "temporary location and run 'make test'."
443 -}