Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/arpack: ChangeLog arpack-96-r2.ebuild
Date: Fri, 02 Nov 2007 13:14:37
Message-Id: E1InwM3-0006iS-Nz@stork.gentoo.org
1 bicatali 07/11/02 13:14:31
2
3 Modified: ChangeLog
4 Added: arpack-96-r2.ebuild
5 Log:
6 Added a patch fixing proper symbol duplication with lapack and blas pkg-config.
7 (Portage version: 2.1.3.16)
8
9 Revision Changes Path
10 1.4 sci-libs/arpack/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/arpack/ChangeLog?rev=1.4&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/arpack/ChangeLog?rev=1.4&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/arpack/ChangeLog?r1=1.3&r2=1.4
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-libs/arpack/ChangeLog,v
19 retrieving revision 1.3
20 retrieving revision 1.4
21 diff -u -r1.3 -r1.4
22 --- ChangeLog 26 Sep 2007 19:26:47 -0000 1.3
23 +++ ChangeLog 2 Nov 2007 13:14:31 -0000 1.4
24 @@ -1,6 +1,14 @@
25 # ChangeLog for sci-libs/arpack
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/arpack/ChangeLog,v 1.3 2007/09/26 19:26:47 bicatali Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/arpack/ChangeLog,v 1.4 2007/11/02 13:14:31 bicatali Exp $
29 +
30 +*arpack-96-r2 (02 Nov 2007)
31 +
32 + 02 Nov 2007; Sébastien Fabbro <bicatali@g.o>
33 + +files/arpack-arscnd.patch, +arpack-96-r2.ebuild:
34 + Added a patch fixing proper symbol duplication with lapack, thanks to
35 + Radice David <david.e.pi.3.14@×××××.com> (bug #197796) and added blas
36 + pkg-config support.
37
38 *arpack-96-r1 (26 Sep 2007)
39
40
41
42
43 1.1 sci-libs/arpack/arpack-96-r2.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/arpack/arpack-96-r2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/arpack/arpack-96-r2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: arpack-96-r2.ebuild
49 ===================================================================
50 # Copyright 1999-2007 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sci-libs/arpack/arpack-96-r2.ebuild,v 1.1 2007/11/02 13:14:31 bicatali Exp $
53
54 inherit eutils autotools fortran
55
56 DESCRIPTION="Arnoldi package library to solve large scale eigenvalue problems."
57 HOMEPAGE="http://www.caam.rice.edu/software/ARPACK"
58 SRC_URI="http://www.caam.rice.edu/software/ARPACK/SRC/${PN}${PV}.tar.gz
59 http://www.caam.rice.edu/software/ARPACK/SRC/patch.tar.gz
60 http://www.caam.rice.edu/software/ARPACK/SRC/p${PN}${PV}.tar.gz
61 http://www.caam.rice.edu/software/ARPACK/SRC/ppatch.tar.gz
62 doc? ( http://www.caam.rice.edu/software/ARPACK/SRC/ug.ps.gz
63 http://www.caam.rice.edu/software/ARPACK/DOCS/tutorial.ps.gz )"
64
65 LICENSE="RiceBSD"
66 SLOT="0"
67 KEYWORDS="~amd64 ~x86"
68 IUSE="mpi doc examples"
69
70 DEPEND="virtual/blas
71 dev-util/pkgconfig
72 mpi? ( virtual/mpi )"
73
74 S="${WORKDIR}/ARPACK"
75
76 FORTRAN="gfortran ifc g77"
77
78 RESTRICT="mirror"
79
80 src_unpack() {
81 unpack ${A}
82 cd "${S}"
83 epatch "${FILESDIR}"/${PN}-autotools.patch
84 epatch "${FILESDIR}"/${PN}-arscnd.patch
85
86 BLAS_LIBS="$(pkg-config --libs blas)"
87 # fix examples library paths
88 sed -i \
89 -e '/^include/d' \
90 -e "s/\$(ALIBS)/-larpack ${BLAS_LIBS}/g" \
91 -e 's/$(FC)/$(F77)/g' \
92 -e 's/$(FFLAGS)/$(FFLAGS) $(LDFLAGS)/g' \
93 EXAMPLES/*/makefile || die "sed failed"
94
95 sed -i \
96 -e '/^include/d' \
97 -e "s/\$(PLIBS)/-larpack -lparpack ${BLAS_LIBS} -lmpi/g" \
98 -e 's/_$(PLAT)//g' \
99 -e 's/$(PFC)/mpif77/g' \
100 -e 's/$(PFFLAGS)/$(FFLAGS) $(LDFLAGS)/g' \
101 PARPACK/EXAMPLES/MPI/makefile || die "sed failed"
102
103 eautoreconf
104 }
105
106 src_compile() {
107 econf \
108 --with-blas="${BLAS_LIBS}" \
109 $(use_enable mpi) \
110 || "econf failed"
111 emake || "emake failed"
112 }
113
114 src_test() {
115 cd "${S}"/EXAMPLES/SIMPLE
116 emake simple FC=${FORTRANC} LDFLAGS="-L${S}/.libs"
117 local prog=
118 for p in ss ds sn dn cn zn; do
119 prog=${p}simp
120 LD_LIBRARY_PATH="${S}/.libs" ./${prog} || die "${prog} test failed"
121 rm -f ${prog}
122 done
123 if use mpi; then
124 cd "${S}"/PARPACK/EXAMPLES/MPI
125 ${FORTRANC} ${FFLAGS} -c ../../../LAPACK/dpttrf.f dpttrf.o || die "compiling dpttrf failed"
126 ${FORTRANC} ${FFLAGS} -c ../../../LAPACK/dpttrs.f dpttrs.o || die "compiling dpttrs failed"
127 emake pdndrv FC=mpif77 LDFLAGS="-L${S}/.libs -L${S}/PARPACK/.libs dpttrf.o dpttrs.o"
128 for p in 1 3; do
129 prog=pdndrv${p}
130 LD_LIBRARY_PATH="${S}/.libs:${S}/PARPACK/.libs" ./${prog} || die "${prog} test failed"
131 rm -f ${prog}
132 done
133 fi
134 }
135
136 src_install() {
137 emake DESTDIR="${D}" install || die "emake install failed"
138
139 dodoc README DOCUMENTS/*.doc || die "dodoc failed"
140 newdoc DOCUMENTS/README README.doc || die "newdoc failed"
141 if use doc; then
142 dodoc "${WORKDIR}"/*.ps || die "dodoc postscript failed"
143 fi
144 if use examples; then
145 insinto /usr/share/doc/${PF}
146 doins -r EXAMPLES || die "doins examples failed"
147 if use mpi; then
148 insinto /usr/share/doc/${PF}/EXAMPLES/PARPACK
149 doins -r PARPACK/EXAMPLES/MPI || die "doins mpi examples failed"
150 fi
151 fi
152 }
153
154
155
156 --
157 gentoo-commits@g.o mailing list