diff options
Diffstat (limited to 'dev-cpp/libmcpp')
-rw-r--r-- | dev-cpp/libmcpp/ChangeLog | 10 | ||||
-rw-r--r-- | dev-cpp/libmcpp/files/libmcpp-2.7-stpcpy-gcc4.3.patch | 12 | ||||
-rw-r--r-- | dev-cpp/libmcpp/libmcpp-2.7.ebuild | 38 |
3 files changed, 58 insertions, 2 deletions
diff --git a/dev-cpp/libmcpp/ChangeLog b/dev-cpp/libmcpp/ChangeLog index 7a68ec5c17f9..c08bcb4d7bb2 100644 --- a/dev-cpp/libmcpp/ChangeLog +++ b/dev-cpp/libmcpp/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-cpp/libmcpp -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libmcpp/ChangeLog,v 1.2 2008/08/23 18:26:45 maekke Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libmcpp/ChangeLog,v 1.3 2009/01/07 15:12:29 b33fc0d3 Exp $ + +*libmcpp-2.7 (07 Jan 2009) + + 07 Jan 2009; Ahmed Ammar <aammar@edge-techno.com> <b33fc0d3@gentoo.org> + +files/libmcpp-2.7-stpcpy-gcc4.3.patch, +libmcpp-2.7.ebuild: + Ebuild bump for libmcpp and new patch for gcc-4.3. 23 Aug 2008; Markus Meier <maekke@gentoo.org> libmcpp-2.6.4.ebuild: add ~amd64, bug #235184 diff --git a/dev-cpp/libmcpp/files/libmcpp-2.7-stpcpy-gcc4.3.patch b/dev-cpp/libmcpp/files/libmcpp-2.7-stpcpy-gcc4.3.patch new file mode 100644 index 000000000000..34ff1bb56c2d --- /dev/null +++ b/dev-cpp/libmcpp/files/libmcpp-2.7-stpcpy-gcc4.3.patch @@ -0,0 +1,12 @@ +diff -Nru mcpp-2.7/src/internal.H mcpp-2.7-1.1/src/internal.H +--- mcpp-2.7/src/internal.H 2008-03-11 17:04:07.000000000 +0100 ++++ mcpp-2.7-1.1/src/internal.H 2008-04-04 10:58:37.000000000 +0200 +@@ -526,7 +526,7 @@ + /* Do the final commands */ + extern void print_heap( void); + /* Print blocks of heap memory */ +-#if ! HOST_HAVE_STPCPY || HOST_COMPILER == GNUC ++#if ! HOST_HAVE_STPCPY + extern char * stpcpy( char * dest, const char * src); + /* Non-Standard library function*/ + #endif diff --git a/dev-cpp/libmcpp/libmcpp-2.7.ebuild b/dev-cpp/libmcpp/libmcpp-2.7.ebuild new file mode 100644 index 000000000000..f3491e587074 --- /dev/null +++ b/dev-cpp/libmcpp/libmcpp-2.7.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libmcpp/libmcpp-2.7.ebuild,v 1.1 2009/01/07 15:12:29 b33fc0d3 Exp $ + +inherit eutils + +MY_P=${P/lib/} + +DESCRIPTION="A portable C++ preprocessor" +HOMEPAGE="http://mcpp.sourceforge.net" +SRC_URI="mirror://sourceforge/mcpp/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86 ~arm" +IUSE="" + +DEPEND="app-arch/gzip" + +S=${WORKDIR}/${MY_P} + +QA_TEXTRELS="usr/lib/libmcpp.so.0.1.0" + +src_unpack() { + unpack ${A} + + cd "${S}" + epatch "${FILESDIR}/${P}-stpcpy-gcc4.3.patch" +} + +src_compile() { + econf --enable-mcpplib + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" +} |