From: | "Peter Bienstman (pbienst)" <pbienst@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sci-physics/mpb: ChangeLog mpb-1.4.2-r1.ebuild |
Date: | Fri, 26 Oct 2007 16:33:52 |
Message-Id: | E1IlS81-0005t0-I2@stork.gentoo.org |
1 | pbienst 07/10/26 16:33:45 |
2 | |
3 | Modified: ChangeLog |
4 | Added: mpb-1.4.2-r1.ebuild |
5 | Log: |
6 | Add mpi support. |
7 | (Portage version: 2.1.3.9) |
8 | |
9 | Revision Changes Path |
10 | 1.9 sci-physics/mpb/ChangeLog |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/mpb/ChangeLog?rev=1.9&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/mpb/ChangeLog?rev=1.9&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/mpb/ChangeLog?r1=1.8&r2=1.9 |
15 | |
16 | Index: ChangeLog |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/sci-physics/mpb/ChangeLog,v |
19 | retrieving revision 1.8 |
20 | retrieving revision 1.9 |
21 | diff -u -r1.8 -r1.9 |
22 | --- ChangeLog 21 Aug 2007 20:43:48 -0000 1.8 |
23 | +++ ChangeLog 26 Oct 2007 16:33:44 -0000 1.9 |
24 | @@ -1,6 +1,11 @@ |
25 | # ChangeLog for sci-physics/mpb |
26 | # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 | -# $Header: /var/cvsroot/gentoo-x86/sci-physics/mpb/ChangeLog,v 1.8 2007/08/21 20:43:48 pbienst Exp $ |
28 | +# $Header: /var/cvsroot/gentoo-x86/sci-physics/mpb/ChangeLog,v 1.9 2007/10/26 16:33:44 pbienst Exp $ |
29 | + |
30 | +*mpb-1.4.2-r1 (26 Oct 2007) |
31 | + |
32 | + 26 Oct 2007; <pbienst@g.o> +mpb-1.4.2-r1.ebuild: |
33 | + Add mpi-support. |
34 | |
35 | 21 Aug 2007; <pbienst@g.o> mpb-1.4.2.ebuild: |
36 | Added ~amd64. |
37 | |
38 | |
39 | |
40 | 1.1 sci-physics/mpb/mpb-1.4.2-r1.ebuild |
41 | |
42 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/mpb/mpb-1.4.2-r1.ebuild?rev=1.1&view=markup |
43 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/mpb/mpb-1.4.2-r1.ebuild?rev=1.1&content-type=text/plain |
44 | |
45 | Index: mpb-1.4.2-r1.ebuild |
46 | =================================================================== |
47 | # Copyright 1999-2007 Gentoo Foundation |
48 | # Distributed under the terms of the GNU General Public License v2 |
49 | # $Header: /var/cvsroot/gentoo-x86/sci-physics/mpb/mpb-1.4.2-r1.ebuild,v 1.1 2007/10/26 16:33:45 pbienst Exp $ |
50 | |
51 | inherit fortran |
52 | |
53 | DESCRIPTION="Program for computing the band structures and electromagnetic modes of periodic dielectric structures" |
54 | SRC_URI="http://ab-initio.mit.edu/mpb/${P}.tar.gz" |
55 | HOMEPAGE="http://ab-initio.mit.edu/mpb/" |
56 | |
57 | LICENSE="GPL-2" |
58 | KEYWORDS="~x86 ~amd64" |
59 | IUSE="mpi" |
60 | |
61 | SLOT="0" |
62 | |
63 | DEPEND="virtual/lapack |
64 | dev-scheme/guile |
65 | sci-libs/libctl |
66 | sci-libs/hdf5 |
67 | ~sci-libs/fftw-2.1.5 |
68 | sys-libs/readline |
69 | mpi? ( virtual/mpi )" |
70 | |
71 | RDEPEND="~sci-libs/fftw-2.1.5" |
72 | |
73 | src_unpack() { |
74 | unpack ${A} |
75 | |
76 | epatch "${FILESDIR}"/${P}-gcc4.patch |
77 | |
78 | # Create directories to compile the versions with inversion |
79 | # symmetry, hermitian eps and mpi. |
80 | |
81 | cp -r ${S} ${S}_inv |
82 | cp -r ${S} ${S}_herm |
83 | |
84 | if use mpi; then |
85 | cp -r ${S} ${S}_mpi |
86 | fi |
87 | } |
88 | |
89 | src_compile() { |
90 | # Create the normal version (mpb). |
91 | cd ${S} |
92 | econf || die |
93 | MAKEOPTS="-j1" emake || die # Parallel 'make' gives syntax errors. |
94 | |
95 | # Create the version with inversion symmetry (mpbi). |
96 | cd ${S}_inv |
97 | econf --with-inv-symmetry || die |
98 | MAKEOPTS="-j1" emake || die |
99 | |
100 | # Create the version with hermitian eps (mpbh). |
101 | cd ${S}_herm |
102 | econf --with-hermitian-eps || die |
103 | MAKEOPTS="-j1" emake || die |
104 | |
105 | # Optionally compile mpi version (mpb-mpi). |
106 | if use mpi; then |
107 | cd ${S}_mpi |
108 | econf --with-mpi || die |
109 | MAKEOPTS="-j1" emake || die |
110 | fi |
111 | |
112 | } |
113 | |
114 | src_install() { |
115 | |
116 | cd ${S} |
117 | einstall || die |
118 | |
119 | dodoc README COPYING NEWS AUTHORS COPYRIGHT ChangeLog TODO |
120 | dohtml doc/* |
121 | |
122 | # Install other versions as well. |
123 | |
124 | mv ${S}_inv/mpb-ctl/.mpb ${S}_inv/mpb-ctl/mpbi |
125 | dobin ${S}_inv/mpb-ctl/mpbi || die |
126 | |
127 | mv ${S}_herm/mpb-ctl/.mpb ${S}_herm/mpb-ctl/mpbh |
128 | dobin ${S}_herm/mpb-ctl/mpbh || die |
129 | |
130 | if use mpi; then |
131 | mv ${S}_mpi/mpb-ctl/.mpb ${S}_herm/mpb-ctl/mpb-mpi |
132 | dobin ${S}_herm/mpb-ctl/mpb-mpi || die |
133 | fi |
134 | |
135 | einfo "Several versions of mpb have been installed:" |
136 | einfo "mpb : regular version" |
137 | einfo "mpbi : configured for inversion symmetry" |
138 | einfo "mpbh : configured for hermitian epsilon" |
139 | |
140 | if use mpi; then |
141 | einfo "mpb-mpi : configured for mpi" |
142 | fi |
143 | |
144 | } |
145 | |
146 | |
147 | |
148 | -- |
149 | gentoo-commits@g.o mailing list |