summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2012-05-31 14:09:52 +0000
committerTim Harder <radhermit@gentoo.org>2012-05-31 14:09:52 +0000
commitdbc66906d9669b50e81e34df62a1d8aa751f47f3 (patch)
treed2d3c14b3d241ba4d56c1cd563a06353c1985e0d /dev-util
parentVersion bump. (diff)
downloadgentoo-2-dbc66906d9669b50e81e34df62a1d8aa751f47f3.tar.gz
gentoo-2-dbc66906d9669b50e81e34df62a1d8aa751f47f3.tar.bz2
gentoo-2-dbc66906d9669b50e81e34df62a1d8aa751f47f3.zip
Respect CFLAGS.
(Portage version: 2.2.0_alpha108/cvs/Linux x86_64)
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/ccglue/ChangeLog6
-rw-r--r--dev-util/ccglue/ccglue-0.5.1.ebuild9
-rw-r--r--dev-util/ccglue/files/ccglue-0.5.1-cflags.patch13
3 files changed, 26 insertions, 2 deletions
diff --git a/dev-util/ccglue/ChangeLog b/dev-util/ccglue/ChangeLog
index b28f74121fee..2eb04f6d0b7d 100644
--- a/dev-util/ccglue/ChangeLog
+++ b/dev-util/ccglue/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-util/ccglue
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/ccglue/ChangeLog,v 1.6 2012/05/31 14:04:38 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/ccglue/ChangeLog,v 1.7 2012/05/31 14:09:52 radhermit Exp $
+
+ 31 May 2012; Tim Harder <radhermit@gentoo.org> ccglue-0.5.1.ebuild,
+ +files/ccglue-0.5.1-cflags.patch:
+ Respect CFLAGS.
*ccglue-0.5.1 (31 May 2012)
diff --git a/dev-util/ccglue/ccglue-0.5.1.ebuild b/dev-util/ccglue/ccglue-0.5.1.ebuild
index c5af73217e91..ae37563fcd78 100644
--- a/dev-util/ccglue/ccglue-0.5.1.ebuild
+++ b/dev-util/ccglue/ccglue-0.5.1.ebuild
@@ -1,9 +1,11 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/ccglue/ccglue-0.5.1.ebuild,v 1.1 2012/05/31 14:04:38 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/ccglue/ccglue-0.5.1.ebuild,v 1.2 2012/05/31 14:09:52 radhermit Exp $
EAPI=4
+inherit autotools eutils
+
DESCRIPTION="Produce cross-reference files from cscope and ctags for use with app-vim/cctree"
HOMEPAGE="http://ccglue.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${PN}-release-${PV}.tar.bz2"
@@ -14,3 +16,8 @@ KEYWORDS="~amd64 ~x86"
IUSE=""
S=${WORKDIR}/${PN}_v${PV}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-cflags.patch
+ eautoreconf
+}
diff --git a/dev-util/ccglue/files/ccglue-0.5.1-cflags.patch b/dev-util/ccglue/files/ccglue-0.5.1-cflags.patch
new file mode 100644
index 000000000000..5d0b294f4ca4
--- /dev/null
+++ b/dev-util/ccglue/files/ccglue-0.5.1-cflags.patch
@@ -0,0 +1,13 @@
+--- ccglue_v0.5.1/configure.in
++++ ccglue_v0.5.1/configure.in
+@@ -19,10 +19,7 @@
+ [want_debug="$enableval"], [want_debug=no])
+
+ if test "x$want_debug" = "xyes"; then
+- CXXFLAGS="$CXXFLAGS -O0 -ggdb"
+ AC_DEFINE([DEBUG], 1, [Define for debugging])
+-else
+- CXXFLAGS="$CXXFLAGS -O2"
+ fi
+
+ AC_CXX_HAVE_SSTREAM