diff options
author | Mark Loeser <halcy0n@gentoo.org> | 2009-04-19 20:53:36 +0000 |
---|---|---|
committer | Mark Loeser <halcy0n@gentoo.org> | 2009-04-19 20:53:36 +0000 |
commit | 7e613303260a34ba57e9ff734fff4fca51516cf0 (patch) | |
tree | 3b9b9179d44ce73aebcb27b314d4cdb64fcd8f8b /dev-libs/tvmet | |
parent | Fix ebuild to respect CXXFLAGS, thanks to Diego E. 'Flameeyes' Pettenò <flam... (diff) | |
download | gentoo-2-7e613303260a34ba57e9ff734fff4fca51516cf0.tar.gz gentoo-2-7e613303260a34ba57e9ff734fff4fca51516cf0.tar.bz2 gentoo-2-7e613303260a34ba57e9ff734fff4fca51516cf0.zip |
Fix build so it respects CXXFLAGS, thanks to Diego E. 'Flameeyes' Pettenò <flameeyes AT gentoo DOT org> for reporting; bug #240229
(Portage version: 2.2_rc30/cvs/Linux i686)
Diffstat (limited to 'dev-libs/tvmet')
-rw-r--r-- | dev-libs/tvmet/ChangeLog | 11 | ||||
-rw-r--r-- | dev-libs/tvmet/files/tvmet-1.7.2-respect-cxxflags.patch | 42 | ||||
-rw-r--r-- | dev-libs/tvmet/tvmet-1.7.2-r1.ebuild | 43 |
3 files changed, 94 insertions, 2 deletions
diff --git a/dev-libs/tvmet/ChangeLog b/dev-libs/tvmet/ChangeLog index abe0fe4aca1e..0da8eb2d4359 100644 --- a/dev-libs/tvmet/ChangeLog +++ b/dev-libs/tvmet/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-libs/tvmet -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/tvmet/ChangeLog,v 1.2 2008/06/07 15:11:49 dev-zero Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/tvmet/ChangeLog,v 1.3 2009/04/19 20:53:36 halcy0n Exp $ + +*tvmet-1.7.2-r1 (19 Apr 2009) + + 19 Apr 2009; Mark Loeser <halcy0n@gentoo.org> + +files/tvmet-1.7.2-respect-cxxflags.patch, +tvmet-1.7.2-r1.ebuild: + Fix build so it respects CXXFLAGS, thanks to Diego E. 'Flameeyes' Pettenò + <flameeyes AT gentoo DOT org> for reporting; bug #240229 07 Jun 2008; Tiziano Müller <dev-zero@gentoo.org> files/1.7.2-docs_missing_destdir.patch, tvmet-1.7.2.ebuild: diff --git a/dev-libs/tvmet/files/tvmet-1.7.2-respect-cxxflags.patch b/dev-libs/tvmet/files/tvmet-1.7.2-respect-cxxflags.patch new file mode 100644 index 000000000000..2749c9131349 --- /dev/null +++ b/dev-libs/tvmet/files/tvmet-1.7.2-respect-cxxflags.patch @@ -0,0 +1,42 @@ +diff -ur tvmet-1.7.2-orig/configure tvmet-1.7.2/configure +--- tvmet-1.7.2-orig/configure 2009-04-19 16:27:20.000000000 -0400 ++++ tvmet-1.7.2/configure 2009-04-19 16:48:52.000000000 -0400 +@@ -2659,11 +2659,9 @@ + ;; + *:*) # Simple initialization syntax + CXX=`echo "$cxxwith" | sed -n -e 's/.*:\(.*\)/\1/p'` +- CXXFLAGS="" + ;; + *) # Default values + CXX="g++" +- CXXFLAGS="" + ;; + esac + CXX_OPTIMIZE_FLAGS="-DTVMET_OPTIMIZE -O2 -finline-limit=5000 -ftemplate-depth-200 -fomit-frame-pointer" +@@ -3704,7 +3702,6 @@ + echo "$as_me: failed program was:" >&5 + sed 's/^/| /' conftest.$ac_ext >&5 + +- CXXFLAGS="" + cat >conftest.$ac_ext <<_ACEOF + /* confdefs.h. */ + _ACEOF +@@ -3799,15 +3796,9 @@ + CXXFLAGS=$ac_save_CXXFLAGS + elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then +- CXXFLAGS="-g -O2" ++ CXXFLAGS+="$CXXFLAGS -g -O2" + else +- CXXFLAGS="-g" +- fi +-else +- if test "$GXX" = yes; then +- CXXFLAGS="-O2" +- else +- CXXFLAGS= ++ CXXFLAGS+="$CXXFLAGS -g" + fi + fi + ac_ext=cpp + diff --git a/dev-libs/tvmet/tvmet-1.7.2-r1.ebuild b/dev-libs/tvmet/tvmet-1.7.2-r1.ebuild new file mode 100644 index 000000000000..564270427feb --- /dev/null +++ b/dev-libs/tvmet/tvmet-1.7.2-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/tvmet/tvmet-1.7.2-r1.ebuild,v 1.1 2009/04/19 20:53:36 halcy0n Exp $ + +inherit eutils + +DESCRIPTION="Tiny Vector Matrix library using Expression Templates" +HOMEPAGE="http://tvmet.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug doc test" + +DEPEND="doc? ( app-doc/doxygen ) + test? ( dev-util/cppunit )" +RDEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/${P}-respect-cxxflags.patch" + epatch "${FILESDIR}/${PV}-docs_missing_destdir.patch" + + sed -i \ + -e 's|^GENERATE_LATEX.*|GENERATE_LATEX = NO|' \ + doc/Doxyfile.in || die "sed failed" +} + +src_compile() { + econf \ + $(use_enable debug) \ + $(use_enable doc docs) \ + $(use_enable test cppunit) \ + || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc AUTHORS ChangeLog NEWS README THANKS +} |