/[gentoo-x86]/sci-libs/blas-atlas/blas-atlas-3.6.0-r2.ebuild
Gentoo

Diff of /sci-libs/blas-atlas/blas-atlas-3.6.0-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.8 Revision 1.9
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-atlas/Attic/blas-atlas-3.6.0-r2.ebuild,v 1.8 2007/07/22 15:36:23 opfer Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-atlas/Attic/blas-atlas-3.6.0-r2.ebuild,v 1.9 2007/10/10 10:02:14 markusle Exp $
4 4
5inherit eutils toolchain-funcs 5inherit eutils toolchain-funcs
6 6
7DESCRIPTION="Automatically Tuned Linear Algebra Software BLAS implementation" 7DESCRIPTION="Automatically Tuned Linear Algebra Software BLAS implementation"
8HOMEPAGE="http://math-atlas.sourceforge.net/" 8HOMEPAGE="http://math-atlas.sourceforge.net/"
37} 37}
38 38
39src_unpack() { 39src_unpack() {
40 unpack ${A} 40 unpack ${A}
41 41
42 cd ${S} 42 cd "${S}"
43 43
44 epatch ${FILESDIR}/unbuffered.patch 44 epatch "${FILESDIR}"/unbuffered.patch
45 epatch ${DISTDIR}/atlas3.6.0-shared-libs.1.patch.bz2 45 epatch "${DISTDIR}"/atlas3.6.0-shared-libs.1.patch.bz2
46 epatch ${FILESDIR}/${PV}-ppc-configure.patch 46 epatch "${FILESDIR}"/${PV}-ppc-configure.patch
47 sed -i -e "s:ASM:ASM VOLATILE:" include/contrib/camm_dpa.h || die "sed failed to fix clobbering" 47 sed -i -e "s:ASM:ASM VOLATILE:" include/contrib/camm_dpa.h || die "sed failed to fix clobbering"
48 cp ${FILESDIR}/war ${S} 48 cp "${FILESDIR}"/war "${S}"
49 chmod a+x ${S}/war 49 chmod a+x "${S}"/war
50} 50}
51 51
52atlas_fail() { 52atlas_fail() {
53 eerror 53 eerror
54 eerror "ATLAS auto-config failed." 54 eerror "ATLAS auto-config failed."
122 fi 122 fi
123} 123}
124 124
125src_install () { 125src_install () {
126 dodir ${RPATH}/atlas 126 dodir ${RPATH}/atlas
127 cd ${S}/gentoo/libs 127 cd "${S}"/gentoo/libs
128 cp -P libatlas* ${D}/${DESTTREE}/lib 128 cp -P libatlas* "${D}/${DESTTREE}"/lib
129 cp -P *blas* ${D}/${RPATH}/atlas #the rest really 129 cp -P *blas* "${D}/${RPATH}"/atlas #the rest really
130 130
131 eselect blas add $(get_libdir) ${FILESDIR}/eselect.blas atlas 131 eselect blas add $(get_libdir) "${FILESDIR}"/eselect.blas atlas
132 eselect cblas add $(get_libdir) ${FILESDIR}/eselect.cblas atlas 132 eselect cblas add $(get_libdir) "${FILESDIR}"/eselect.cblas atlas
133 133
134 if [ -d ${S}/gentoo/threaded-libs ] 134 if [ -d "${S}"/gentoo/threaded-libs ]
135 then 135 then
136 dodir ${RPATH}/threaded-atlas 136 dodir ${RPATH}/threaded-atlas
137 cd ${S}/gentoo/threaded-libs 137 cd "${S}"/gentoo/threaded-libs
138 cp -P * ${D}/${RPATH}/threaded-atlas 138 cp -P * "${D}/${RPATH}"/threaded-atlas
139 eselect blas add $(get_libdir) ${FILESDIR}/eselect.blas-threaded threaded-atlas 139 eselect blas add $(get_libdir) "${FILESDIR}"/eselect.blas-threaded threaded-atlas
140 eselect cblas add $(get_libdir) ${FILESDIR}/eselect.cblas-threaded threaded-atlas 140 eselect cblas add $(get_libdir) "${FILESDIR}"/eselect.cblas-threaded threaded-atlas
141 fi 141 fi
142 142
143 insinto ${DESTTREE}/include/atlas 143 insinto ${DESTTREE}/include/atlas
144 doins ${S}/include/cblas.h ${S}/include/atlas_misc.h 144 doins "${S}"/include/cblas.h "${S}"/include/atlas_misc.h
145 doins ${S}/include/atlas_enum.h 145 doins "${S}"/include/atlas_enum.h
146 146
147 # These headers contain the architecture-specific optimizations determined 147 # These headers contain the architecture-specific optimizations determined
148 # by ATLAS. The atlas-lapack build is much shorter if they are available, 148 # by ATLAS. The atlas-lapack build is much shorter if they are available,
149 # so save them: 149 # so save them:
150 doins ${S}/include/${ATLAS_ARCH}/*.h 150 doins "${S}"/include/${ATLAS_ARCH}/*.h
151 151
152 #some docs 152 #some docs
153 cd ${S} 153 cd "${S}"
154 dodoc README doc/{AtlasCredits.txt,ChangeLog} 154 dodoc README doc/{AtlasCredits.txt,ChangeLog}
155 use doc && dodoc doc/*.ps 155 use doc && dodoc doc/*.ps
156} 156}
157 157
158pkg_postinst() { 158pkg_postinst() {
170 fi 170 fi
171 171
172 elog 172 elog
173 elog "Fortran users link using -lblas" 173 elog "Fortran users link using -lblas"
174 elog 174 elog
175 elog "C users compile against the header ${ROOT}usr/include/atlas/cblas.h and" 175 elog "C users compile against the header "${ROOT}"usr/include/atlas/cblas.h and"
176 elog "link using -lcblas" 176 elog "link using -lcblas"
177 elog 177 elog
178 elog "If using threaded ATLAS, you may also need to link with -lpthread." 178 elog "If using threaded ATLAS, you may also need to link with -lpthread."
179 elog 179 elog
180 elog "Configuration now uses eselect rather than blas-config." 180 elog "Configuration now uses eselect rather than blas-config."

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20