diff options
author | Mark Loeser <halcy0n@gentoo.org> | 2009-04-19 20:23:11 +0000 |
---|---|---|
committer | Mark Loeser <halcy0n@gentoo.org> | 2009-04-19 20:23:11 +0000 |
commit | 24f0c919334373b793cd9abcb14f5810a90dd9a8 (patch) | |
tree | 65a902b2f0b3191a29af5d35e8b26eb273d29b38 /dev-cpp/libmxmlplus | |
parent | Patch so that -fpermissive is not needed to build. Thanks to Wilfried Holzke... (diff) | |
download | gentoo-2-24f0c919334373b793cd9abcb14f5810a90dd9a8.tar.gz gentoo-2-24f0c919334373b793cd9abcb14f5810a90dd9a8.tar.bz2 gentoo-2-24f0c919334373b793cd9abcb14f5810a90dd9a8.zip |
Fix ebuild to respect CXXFLAGS, thanks to Diego E. 'Flameeyes' Pettenò <flameeyes AT gentoo DOT org> for reporting; bug #240167
(Portage version: 2.2_rc30/cvs/Linux i686)
Diffstat (limited to 'dev-cpp/libmxmlplus')
3 files changed, 70 insertions, 2 deletions
diff --git a/dev-cpp/libmxmlplus/ChangeLog b/dev-cpp/libmxmlplus/ChangeLog index c772f99bf84c..68b5bf229b6f 100644 --- a/dev-cpp/libmxmlplus/ChangeLog +++ b/dev-cpp/libmxmlplus/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for dev-cpp/libmxmlplus -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libmxmlplus/ChangeLog,v 1.6 2008/09/06 21:28:24 halcy0n Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libmxmlplus/ChangeLog,v 1.7 2009/04/19 20:23:11 halcy0n Exp $ + +*libmxmlplus-0.9.2_p20080323-r1 (19 Apr 2009) + + 19 Apr 2009; Mark Loeser <halcy0n@gentoo.org> + +files/libmxmlplus-0.9.2_p20080323-respect-cxxflags.patch, + +libmxmlplus-0.9.2_p20080323-r1.ebuild: + Fix ebuild to respect CXXFLAGS, thanks to Diego E. 'Flameeyes' Pettenò + <flameeyes AT gentoo DOT org> for reporting; bug #240167 06 Sep 2008; Mark Loeser <halcy0n@gentoo.org> libmxmlplus-0.9.2_p20080323.ebuild: diff --git a/dev-cpp/libmxmlplus/files/libmxmlplus-0.9.2_p20080323-respect-cxxflags.patch b/dev-cpp/libmxmlplus/files/libmxmlplus-0.9.2_p20080323-respect-cxxflags.patch new file mode 100644 index 000000000000..ae200ade5447 --- /dev/null +++ b/dev-cpp/libmxmlplus/files/libmxmlplus-0.9.2_p20080323-respect-cxxflags.patch @@ -0,0 +1,16 @@ +diff -ur libmxmlplus-0.9.2_p20080323-orig/configure.ac libmxmlplus-0.9.2_p20080323/configure.ac +--- libmxmlplus-0.9.2_p20080323-orig/configure.ac 2009-04-19 16:14:53.000000000 -0400 ++++ libmxmlplus-0.9.2_p20080323/configure.ac 2009-04-19 16:17:12.000000000 -0400 +@@ -63,12 +63,6 @@ + AC_ARG_ENABLE(doc, + AS_HELP_STRING(--enable-doc, Enable compilation of deocumentation) ) + +-if test x$enable_debug = xyes; then +- CXXFLAGS="-g" +-else +- CXXFLAGS="-O2" +-fi +- + dnl-------------------------------- + dnl settings for makefiles + dnl diff --git a/dev-cpp/libmxmlplus/libmxmlplus-0.9.2_p20080323-r1.ebuild b/dev-cpp/libmxmlplus/libmxmlplus-0.9.2_p20080323-r1.ebuild new file mode 100644 index 000000000000..27a1e2b1ff2d --- /dev/null +++ b/dev-cpp/libmxmlplus/libmxmlplus-0.9.2_p20080323-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libmxmlplus/libmxmlplus-0.9.2_p20080323-r1.ebuild,v 1.1 2009/04/19 20:23:11 halcy0n Exp $ + +inherit eutils autotools + +DESCRIPTION="Minimal XML DOM Library" +SRC_URI="mirror://gentoo/${P}.tar.lzma" +HOMEPAGE="http://mxml.sourceforge.net/" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +DEPEND="doc? ( app-doc/doxygen ) + app-arch/lzma-utils" +RDEPEND="" + +src_unpack() +{ + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-respect-cxxflags.patch + eautoreconf +} + +src_compile() { + econf \ + --enable-shared \ + $(use_enable doc) \ + --disable-dependency-tracking || die "econf failed" + emake || die "emake failed" +} + +src_install () { + emake DESTDIR="${D}" install || die "emake install failed" + + dodoc AUTHORS ChangeLog NEWS README RELNOTES TODO + + if use doc; then + dodir /usr/share/doc/${PF} + dohtml -r "${S}/doc/html"/* + fi +} |