You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-libs/mapm/mapm-4.9.2.ebuild

40 lines
964 B

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/mapm/mapm-4.9.2.ebuild,v 1.3 2008/12/31 03:03:17 darkside Exp $
inherit multilib
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="mapm"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE=""
DEPEND=""
S=${WORKDIR}/${PN}_${PV}
src_unpack() {
unpack ${A}
cd ${S}
sed -i "s:-O2:${CFLAGS}:" make_linux_shared_lib
}
src_compile() {
./make_linux_shared_lib || die
}
src_install() {
dolib.so libmapm.so.0 || die "dolib failed"
dosym libmapm.so.0 /usr/$(get_libdir)/libmapm.so || die "dosym failed"
insinto /usr/include
doins m_apm.h || die "doins headers failed"
dodoc README article.pdf algorithms.used commentary.txt \
cpp_function.ref function.ref history.txt struct.ref
}