# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="A library that performs singular value decomposition" HOMEPAGE="http://tedlab.mit.edu/~dr/SVDLIBC" SRC_URI="http://tedlab.mit.edu/~dr/SVDLIBC/${PN}.tgz" MY_PN="SVDLIBC" S="${WORKDIR}/${MY_PN}" LICENSE="" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="" RDEPEND="" src_unpack() { unpack ${A} cd "${S}" einfo sed -i "4i \HOSTTYPE=linux" Makefile || die "Setting hostname in Makefile failed" sed -i "s/gcc.*$/gcc/" Makefile || die "Removing default CFLAGS settings failed" } src_compile() { emake || die "Make failed" } src_install() { dobin linux/svd dolib linux/libsvd.a dodoc Manual/index.html dodoc Manual/SVD_F_DB.html dodoc Manual/SVD_F_DT.html dodoc Manual/SVD_F_SB.html dodoc Manual/SVD_F_ST.html dodoc Manual/SVD_F_STH.html dodoc Manual/svdlib.h }