From d7b08d0bbb2c520785a0b9d78473535abfab4d22 Mon Sep 17 00:00:00 2001 From: Tiziano Müller Date: Mon, 2 Mar 2009 13:39:48 +0000 Subject: Version bump (added fix to add #include , doing compilation manually since original script ignores LDFLAGS and doesn't set soname). Package-Manager: portage-2.1.6.7/cvs/Linux x86_64 --- dev-libs/mapm/ChangeLog | 11 ++++-- dev-libs/mapm/Manifest | 5 ++- dev-libs/mapm/files/4.9.5-missing_include.patch | 12 +++++++ dev-libs/mapm/mapm-4.9.5.ebuild | 45 +++++++++++++++++++++++++ 4 files changed, 70 insertions(+), 3 deletions(-) create mode 100644 dev-libs/mapm/files/4.9.5-missing_include.patch create mode 100644 dev-libs/mapm/mapm-4.9.5.ebuild (limited to 'dev-libs/mapm') diff --git a/dev-libs/mapm/ChangeLog b/dev-libs/mapm/ChangeLog index 87487e94cbe4..b761bc6d4901 100644 --- a/dev-libs/mapm/ChangeLog +++ b/dev-libs/mapm/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-libs/mapm -# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/mapm/ChangeLog,v 1.6 2008/12/31 03:03:17 darkside Exp $ +# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/mapm/ChangeLog,v 1.7 2009/03/02 13:39:48 dev-zero Exp $ + +*mapm-4.9.5 (02 Mar 2009) + + 02 Mar 2009; Tiziano Müller + +files/4.9.5-missing_include.patch, +mapm-4.9.5.ebuild: + Version bump (added fix to add #include , doing compilation + manually since original script ignores LDFLAGS and doesn't set soname). 31 Dec 2008; Jeremy Olexa mapm-4.9.2.ebuild: add ~amd64 kw, bug 253126 diff --git a/dev-libs/mapm/Manifest b/dev-libs/mapm/Manifest index 4f1ce8279bbe..b77f1dfbe9c4 100644 --- a/dev-libs/mapm/Manifest +++ b/dev-libs/mapm/Manifest @@ -1,6 +1,9 @@ +AUX 4.9.5-missing_include.patch 390 RMD160 0b2ab2f8e36d6c2ff8e83284610cb0250f8f63a9 SHA1 f7fb32a2b3b6ecc4cce2d7ab9909d527c190880d SHA256 8bb3d482b568729311d342bdeb7e588bcdcae0cf6fc3fb4ebd480df3f0770e64 DIST mapm-4.9.2.tar.gz 161575 RMD160 59763de606943e684addbc88c84e7ba073a2cfad SHA1 e6270b4b88fb1e02acd5699c9c2d6c8a1824153d SHA256 2c92d315853b1630dd4c147ddd8d45f9b2314807d7622dc01afd8c853ed27ff7 +DIST mapm-4.9.5.tar.gz 162943 RMD160 f4e39962410ea4f9a0d85a3e07b7421e9795d6cb SHA1 99dab13404ee30e7a830204da0a66cbae265a8b5 SHA256 5ee2bb31a3006d0d94d19ebebd618e0a738f7ab5fcb17f2eb31cc2b8f0d9dac9 DIST mapm-4.9.tar.gz 158300 RMD160 c2fe9d232a294a71c39c2d6e29beae78fec61972 SHA1 664fe9343c2b0f13ef27f06bbcd84839f0166eb5 SHA256 3581f415970539302799da8f9e25b89eadfef8934eb9542d38cac60348a188d2 EBUILD mapm-4.9.2.ebuild 964 RMD160 f7f9826485e9a45b550b6399c13c0e873a0cbee2 SHA1 046d6cc44eb8959c847afd0155629e54fb094120 SHA256 52cb134d49869ec079a05bdc556fdac3035540ab017043ca4f7a6ae9c2af1910 +EBUILD mapm-4.9.5.ebuild 1173 RMD160 54b5fca6c63b4e37b890f1f8bebf38129d67369c SHA1 e56164cce6e9aa5443ad4fb6f550032ca7b6b663 SHA256 dbcf1992d03a76a7b21afb1c5533b78243395e06b62c44197390259f34f68862 EBUILD mapm-4.9.ebuild 848 RMD160 1abd17a90f6274215a8487bb017955e65f598612 SHA1 46ca987909f37e39db1f3bfbc132acb7f113c9f3 SHA256 271476296779379402b2e93d96a527b6527dd23bb0c304fc0ef3e618f335d28d -MISC ChangeLog 870 RMD160 5645fb9fae369c0bfc7bddd557d93991f3e10c36 SHA1 90159c38eb8a146fdb1480a03dee94b6f138a6f0 SHA256 2f888b5f6812f9fe0e059b49795121308746d943dc6951bcea2eb95c050e2124 +MISC ChangeLog 1155 RMD160 a404f15237bae35b2e782f05abc254495f33fe19 SHA1 2e922c75cdc44e30f3853304511505d270c07b0a SHA256 db89a083d3dcf3790384f9193f4c53eb176a8d16269831959922b587e5bbd166 MISC metadata.xml 233 RMD160 d81ec1a0582856aeac5ef3bfec5c80d9850216f6 SHA1 9b94f113e7f382076b1749c2a856e409c96cade3 SHA256 dce03f6cdd96135caf3c971a5ca4a8c916f44532fe8cfb6df88b7bdade407e8b diff --git a/dev-libs/mapm/files/4.9.5-missing_include.patch b/dev-libs/mapm/files/4.9.5-missing_include.patch new file mode 100644 index 000000000000..e03b122ea0dc --- /dev/null +++ b/dev-libs/mapm/files/4.9.5-missing_include.patch @@ -0,0 +1,12 @@ +diff -Naur mapm_4.9.5.orig/m_apm.h mapm_4.9.5/m_apm.h +--- mapm_4.9.5.orig/m_apm.h 2009-03-02 11:55:18.914770612 +0100 ++++ mapm_4.9.5/m_apm.h 2009-03-02 11:56:19.585923499 +0100 +@@ -159,6 +159,8 @@ + #ifndef M__APM__INCLUDED + #define M__APM__INCLUDED + ++#include ++ + #ifdef __cplusplus + /* Comment this line out if you've compiled the library as C++. */ + #define APM_CONVERT_FROM_C diff --git a/dev-libs/mapm/mapm-4.9.5.ebuild b/dev-libs/mapm/mapm-4.9.5.ebuild new file mode 100644 index 000000000000..07e28396cc89 --- /dev/null +++ b/dev-libs/mapm/mapm-4.9.5.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/mapm/mapm-4.9.5.ebuild,v 1.1 2009/03/02 13:39:48 dev-zero Exp $ + +EAPI="2" + +inherit eutils multilib toolchain-funcs + +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 ~x86 ~ppc ~sparc" +IUSE="" + +DEPEND="" +RDEPEND="" + +S="${WORKDIR}/${PN}_${PV}" + +src_prepare() { + epatch "${FILESDIR}/${PV}-missing_include.patch" +} + +src_compile() { + $(tc-getCC) -c -Wall ${CFLAGS} -fPIC map*.c || die "compiling sources failed" + $(tc-getCC) -shared ${LDFLAGS} -Wl,--soname=libmapm.so -o libmapm.so.0 map*.o || die "linking sources failed" +} + +src_install() { + dolib.so libmapm.so.0 +# dosym libmapm.so.0 /usr/$(get_libdir)/libmapm.so + + insinto /usr/include + doins m_apm.h + + insinto /usr/share/doc/${PF}/examples + doins calc.c validate.c primenum.c cpp_demo.cpp + + cd DOCS + dodoc README article.pdf algorithms.used commentary.txt \ + cpp_function.ref function.ref history.txt struct.ref + +} -- cgit v1.2.3-65-gdbad