1 |
commit: 4db9da2f8a4b3dfbad41cefc0e665022a0c798bc |
2 |
Author: Amy Liffey <amynka <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 4 10:53:46 2017 +0000 |
4 |
Commit: Amy Liffey <amynka <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 4 10:54:26 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4db9da2f |
7 |
|
8 |
dev-libs/mapm: eapi bump to 6 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.1 |
11 |
|
12 |
dev-libs/mapm/mapm-4.9.5-r1.ebuild | 43 ++++++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 43 insertions(+) |
14 |
|
15 |
diff --git a/dev-libs/mapm/mapm-4.9.5-r1.ebuild b/dev-libs/mapm/mapm-4.9.5-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..e90f39c4851 |
18 |
--- /dev/null |
19 |
+++ b/dev-libs/mapm/mapm-4.9.5-r1.ebuild |
20 |
@@ -0,0 +1,43 @@ |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+ |
26 |
+inherit eutils toolchain-funcs |
27 |
+ |
28 |
+DESCRIPTION="Mike's Arbitrary Precision Math Library" |
29 |
+HOMEPAGE="http://www.tc.umn.edu/~ringx004/mapm-main.html" |
30 |
+SRC_URI="http://www.tc.umn.edu/~ringx004/${P}.tar.gz" |
31 |
+ |
32 |
+LICENSE="mapm-4.9.5" |
33 |
+SLOT="0" |
34 |
+KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
35 |
+IUSE="" |
36 |
+ |
37 |
+DEPEND="" |
38 |
+RDEPEND="" |
39 |
+ |
40 |
+S="${WORKDIR}/${PN}_${PV}" |
41 |
+ |
42 |
+PATCHES=( "${FILESDIR}/${PV}-missing_include.patch" ) |
43 |
+ |
44 |
+src_compile() { |
45 |
+ $(tc-getCC) -c -Wall ${CFLAGS} -fPIC map*.c || die "compiling sources failed" |
46 |
+ $(tc-getCC) -shared ${LDFLAGS} -Wl,--soname=libmapm.so -o libmapm.so.0 map*.o || die "linking sources failed" |
47 |
+} |
48 |
+ |
49 |
+src_install() { |
50 |
+ dolib.so libmapm.so.0 |
51 |
+ dosym libmapm.so.0 /usr/$(get_libdir)/libmapm.so |
52 |
+ |
53 |
+ insinto /usr/include |
54 |
+ doins m_apm.h |
55 |
+ |
56 |
+ insinto /usr/share/doc/${PF}/examples |
57 |
+ doins calc.c validate.c primenum.c cpp_demo.cpp |
58 |
+ |
59 |
+ cd DOCS || die |
60 |
+ dodoc README article.pdf algorithms.used commentary.txt \ |
61 |
+ cpp_function.ref function.ref history.txt struct.ref |
62 |
+ |
63 |
+} |