# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils MY_PV=${PV/_p*/} MY_P=${PN}_${MY_PV} MY_PATCHV=${PV/_p/-} MY_PATCH=${PN}_${MY_PATCHV} S="${WORKDIR}/${PN}-${MY_PV}" DESCRIPTION="The C Matrix Computations Library" HOMEPAGE="http://www.netlib.org/c/meschach/" SRC_URI="http://ftp.debian.org/debian/pool/main/m/meschach/${MY_P}.orig.tar.gz http://ftp.debian.org/debian/pool/main/m/meschach/${MY_PATCH}.diff.gz" LICENSE="LGPL-2" SLOT="0" KEYWORDS="x86" IUSE="" DEPEND="" src_unpack() { unpack ${A} epatch ${MY_PATCH}.diff } src_compile() { PATH=".:${PATH}" econf \ --with-all \ --with-unroll \ --with-munroll emake || die } src_install() { dodir /usr/include/meschach insinto /usr/include/meschach doins *.h dolib libmeschach.a libmeschach.so }