summaryrefslogtreecommitdiff
blob: c7f8532b7106d0a3ac960bdf1ac0100fb00d5ce6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/mapm/mapm-4.9.ebuild,v 1.2 2004/02/03 13:16:22 vapier Exp $

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="x86 ~ppc ~sparc"

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
	dosym libmapm.so.0 /usr/lib/libmapm.so

	insinto /usr/include
	doins m_apm.h

	dodoc README article.pdf algorithms.used commentary.txt \
		cpp_function.ref function.ref history.txt struct.ref
}