# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-libs/atlas/atlas-3.6.0.ebuild,v 1.1 2004/02/25 14:29:15 aliz Exp $ IUSE="" DESCRIPTION="Automatically Tuned Linear Algebra Software (BLAS implementation)" HOMEPAGE="http://math-atlas.sourceforge.net/" SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2" LICENSE="BSD" SLOT="0" KEYWORDS="~x86 ~sparc ~amd64" DEPEND="virtual/glibc" S=${WORKDIR}/ATLAS src_compile() { # create a file answer to be redirected to make echo "023" > answer echo "" >> answer echo "" >> answer echo "" >> answer echo "" >> answer echo "" >> answer echo "" >> answer echo "" >> answer echo "" >> answer echo "" >> answer echo "" >> answer echo "" >> answer echo "" >> answer make < answer || die TMPSTR=$(ls Make.Linux*) ATLAS_ARCH=${TMPSTR#'Make.'} make install arch=${ATLAS_ARCH} CCFLAG0="${CFLAGS}" \ MMFLAGS="${CFLAGS}" XCCFLAGS='$(CDEFS) $(CCFLAG0)' || die } src_install () { # almost completely copied from the atlas-3.2.1-r1 ebuild cd ${S}/lib/${ATLAS_ARCH} insinto /usr/lib dolib.a libatlas.a libcblas.a libf77blas.a liblapack.a cd ${S}/include insinto /usr/include doins cblas.h clapack.h cd ${S} dodoc README INSTALL.txt dodoc doc/*.txt insinto /usr/share/doc/${PN}-${PV} doins doc/*.ps dodoc bin/${ATLAS_ARCH}/INSTALL_LOG/SUMMARY.LOG }