# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit gcc UNZIP_DIR=${PN}_${PV} DESCRIPTION="Mike's Arbitrary Precision Math Library" HOMEPAGE="http://www.tc.umn.edu/~ringx004/mapm-main.html" SRC_URI="http://www.tc.umn.edu/~ringx004/${P}.tar.gz" LICENSE="Freeware" DEPEND="" SLOT="0" KEYWORDS="x86 ~ppc ~sparc" S=${WORKDIR}/${UNZIP_DIR} src_unpack() { unpack ${A} } src_compile() { cd ${S} ./make_linux_shared_lib || die } src_install() { # Install library dodir usr/lib cp ${S}/libmapm.so.0 ${D}/usr/lib dosym /usr/lib/libmapm.so.0 usr/lib/libmapm.so # Install documentation dodir usr/share/doc/${P} cp README article.pdf algorithms.used commentary.txt cpp_function.ref function.ref history.txt struct.ref ${D}/usr/share/doc/${P} }