From f1c5144b87fe9654f5ca1251d8cef60cde871ade Mon Sep 17 00:00:00 2001 From: Patrick Lauer Date: Tue, 8 Jan 2013 05:48:00 +0000 Subject: Adding patch to make things work with gmp-5.1, #447928 (Portage version: 2.2.0_alpha149/cvs/Linux x86_64, unsigned Manifest commit) --- dev-libs/ppl/ChangeLog | 11 ++-- dev-libs/ppl/files/ppl-fix-gmp-5.1.0.patch | 41 ++++++++++++++ dev-libs/ppl/ppl-0.12.1-r1.ebuild | 85 ++++++++++++++++++++++++++++++ 3 files changed, 134 insertions(+), 3 deletions(-) create mode 100644 dev-libs/ppl/files/ppl-fix-gmp-5.1.0.patch create mode 100644 dev-libs/ppl/ppl-0.12.1-r1.ebuild (limited to 'dev-libs/ppl') diff --git a/dev-libs/ppl/ChangeLog b/dev-libs/ppl/ChangeLog index f89746166352..7adf4009f504 100644 --- a/dev-libs/ppl/ChangeLog +++ b/dev-libs/ppl/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-libs/ppl -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/ppl/ChangeLog,v 1.51 2012/04/29 06:51:32 dirtyepic Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/ppl/ChangeLog,v 1.52 2013/01/08 05:48:00 patrick Exp $ + +*ppl-0.12.1-r1 (08 Jan 2013) + + 08 Jan 2013; Patrick Lauer + +files/ppl-fix-gmp-5.1.0.patch, +ppl-0.12.1-r1.ebuild: + Adding patch to make things work with gmp-5.1, #447928 *ppl-0.12.1 (29 Apr 2012) @@ -199,4 +205,3 @@ 21 Sep 2008; Mike Frysinger +ppl-0.10_pre27.ebuild: Initial ebuild based on work from Zhang Le for gcc-4.4+. - diff --git a/dev-libs/ppl/files/ppl-fix-gmp-5.1.0.patch b/dev-libs/ppl/files/ppl-fix-gmp-5.1.0.patch new file mode 100644 index 000000000000..ff2423e93c79 --- /dev/null +++ b/dev-libs/ppl/files/ppl-fix-gmp-5.1.0.patch @@ -0,0 +1,41 @@ +--- src/p_std_bits.cc.org 2012-12-30 00:37:03.033948083 +0100 ++++ src/mp_std_bits.cc 2012-12-30 00:44:12.893019313 +0100 +@@ -25,6 +25,9 @@ + #include "ppl-config.h" + #include "mp_std_bits.defs.hh" + ++#if __GNU_MP_VERSION < 5 \ ++ || (__GNU_MP_VERSION == 5 && __GNU_MP_VERSION_MINOR < 1) ++ + const bool std::numeric_limits::is_specialized; + const int std::numeric_limits::digits; + const int std::numeric_limits::digits10; +@@ -70,3 +73,6 @@ + const bool std::numeric_limits::traps; + const bool std::numeric_limits::tininess_before; + const std::float_round_style std::numeric_limits::round_style; ++ ++#endif // __GNU_MP_VERSION < 5 ++ // || (__GNU_MP_VERSION == 5 && __GNU_MP_VERSION_MINOR < 1) +--- src/mp_std_bits.defs.hh.org 2012-12-30 00:37:03.037948187 +0100 ++++ src/mp_std_bits.defs.hh 2012-12-30 00:42:32.002424189 +0100 +@@ -38,6 +38,9 @@ + #endif // defined(PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS) + void swap(mpq_class& x, mpq_class& y); + ++#if __GNU_MP_VERSION < 5 \ ++ || (__GNU_MP_VERSION == 5 && __GNU_MP_VERSION_MINOR < 1) ++ + namespace std { + + #ifdef PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS +@@ -164,6 +167,9 @@ + + } // namespace std + ++#endif // __GNU_MP_VERSION < 5 ++ // || (__GNU_MP_VERSION == 5 && __GNU_MP_VERSION_MINOR < 1) ++ + #include "mp_std_bits.inlines.hh" + + #endif // !defined(PPL_mp_std_bits_defs_hh) diff --git a/dev-libs/ppl/ppl-0.12.1-r1.ebuild b/dev-libs/ppl/ppl-0.12.1-r1.ebuild new file mode 100644 index 000000000000..5e9f20c2c2a1 --- /dev/null +++ b/dev-libs/ppl/ppl-0.12.1-r1.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/ppl/ppl-0.12.1-r1.ebuild,v 1.1 2013/01/08 05:48:00 patrick Exp $ + +EAPI="3" + +inherit eutils + +DESCRIPTION="The Parma Polyhedra Library provides numerical abstractions for analysis of complex systems" +HOMEPAGE="http://bugseng.com/products/ppl" +SRC_URI="http://bugseng.com/products/ppl/download/ftp/releases/${PV}/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~sparc-solaris" +IUSE="doc lpsol pch static-libs test" + +RDEPEND=">=dev-libs/gmp-4.1.3[cxx] + lpsol? ( sci-mathematics/glpk ) + ! /dev/null; then + emake check || die "tests failed" + fi +} + +src_install() { + emake DESTDIR="${D}" install || die + use static-libs || rm -f "${D}"/usr/lib*/libppl*.la + + local docsdir="${ED}/usr/share/doc/${PF}" + rm "${docsdir}"/gpl* "${docsdir}"/fdl* || die + + if ! use doc; then + rm -r "${docsdir}"/*-html/ || die + fi + + dodoc NEWS README* STANDARDS TODO +} + +pkg_postinst() { + echo + ewarn "After an upgrade of PPL it is important that you rebuild" + ewarn "dev-libs/cloog-ppl." + ewarn + ewarn "If you use gcc-config to switch to an older compiler version than" + ewarn "the one PPL was built with, PPL must be rebuilt with that version." + ewarn + ewarn "In both cases failure to do this will get you this error when" + ewarn "graphite flags are used:" + ewarn + ewarn " sorry, unimplemented: Graphite loop optimizations cannot be used" + ewarn + echo +} -- cgit v1.2.3-65-gdbad