summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-03-06 20:13:04 +0000
committerMike Frysinger <vapier@gentoo.org>2009-03-06 20:13:04 +0000
commit999273d95d67b8dd564e2df74997f15d5f69a414 (patch)
treeeb89f3120ebad6193e87af08c67808eaf552dc47 /dev-util/cppcheck
parentRemove stupid env variable tests from configure.ac (#260618). (diff)
downloadgentoo-2-999273d95d67b8dd564e2df74997f15d5f69a414.tar.gz
gentoo-2-999273d95d67b8dd564e2df74997f15d5f69a414.tar.bz2
gentoo-2-999273d95d67b8dd564e2df74997f15d5f69a414.zip
initial import
(Portage version: 2.2_rc23/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/cppcheck')
-rw-r--r--dev-util/cppcheck/ChangeLog9
-rw-r--r--dev-util/cppcheck/cppcheck-1.29.ebuild30
-rw-r--r--dev-util/cppcheck/files/cppcheck-1.29-build.patch11
-rw-r--r--dev-util/cppcheck/metadata.xml5
4 files changed, 55 insertions, 0 deletions
diff --git a/dev-util/cppcheck/ChangeLog b/dev-util/cppcheck/ChangeLog
new file mode 100644
index 000000000000..ed8626b7d1b1
--- /dev/null
+++ b/dev-util/cppcheck/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-util/cppcheck
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/cppcheck/ChangeLog,v 1.1 2009/03/06 20:13:04 vapier Exp $
+
+*cppcheck-1.29 (06 Mar 2009)
+
+ 06 Mar 2009; Mike Frysinger <vapier@gentoo.org>
+ +files/cppcheck-1.29-build.patch, +metadata.xml, +cppcheck-1.29.ebuild:
+ Initial import.
diff --git a/dev-util/cppcheck/cppcheck-1.29.ebuild b/dev-util/cppcheck/cppcheck-1.29.ebuild
new file mode 100644
index 000000000000..9e26ff04fb2e
--- /dev/null
+++ b/dev-util/cppcheck/cppcheck-1.29.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/cppcheck/cppcheck-1.29.ebuild,v 1.1 2009/03/06 20:13:04 vapier Exp $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="static analyzer of C/C++ code"
+HOMEPAGE="http://apps.sourceforge.net/trac/cppcheck/"
+SRC_URI="mirror://sourceforge/cppcheck/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-build.patch
+ sed -i \
+ -e '/^CXXFLAGS/s:=:+=:' \
+ -e 's:g++:$(CXX):' \
+ Makefile
+ tc-export CXX
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ dodoc readme.txt
+}
diff --git a/dev-util/cppcheck/files/cppcheck-1.29-build.patch b/dev-util/cppcheck/files/cppcheck-1.29-build.patch
new file mode 100644
index 000000000000..01638dc9fcac
--- /dev/null
+++ b/dev-util/cppcheck/files/cppcheck-1.29-build.patch
@@ -0,0 +1,11 @@
+--- a/Makefile
++++ b/Makefile
+@@ -71,7 +71,7 @@ TESTOBJ = test/testbufferoverrun.o \
+ ###### Targets
+
+ cppcheck: $(OBJECTS)
+- g++ $(CXXFLAGS) -o cppcheck $(OBJECTS)
++ g++ $(CXXFLAGS) -o cppcheck $(OBJECTS) $(LDFLAGS)
+
+ all: cppcheck testrunner tools
+
diff --git a/dev-util/cppcheck/metadata.xml b/dev-util/cppcheck/metadata.xml
new file mode 100644
index 000000000000..20ce219711a2
--- /dev/null
+++ b/dev-util/cppcheck/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+</pkgmetadata>