summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-09-08 22:10:32 +0000
committerMike Frysinger <vapier@gentoo.org>2011-09-08 22:10:32 +0000
commit3d95879c69eb1ed8d0d4c945ff81f213075ea7aa (patch)
tree04b28f8c5a03847a5cc5073f641452db2050ed5e /sys-devel/smatch
parentVersion bump. Add linux context manager using netlink. (diff)
downloadgentoo-2-3d95879c69eb1ed8d0d4c945ff81f213075ea7aa.tar.gz
gentoo-2-3d95879c69eb1ed8d0d4c945ff81f213075ea7aa.tar.bz2
gentoo-2-3d95879c69eb1ed8d0d4c945ff81f213075ea7aa.zip
Initial ebuild.
(Portage version: 2.2.0_alpha51/cvs/Linux x86_64)
Diffstat (limited to 'sys-devel/smatch')
-rw-r--r--sys-devel/smatch/ChangeLog10
-rw-r--r--sys-devel/smatch/metadata.xml6
-rw-r--r--sys-devel/smatch/smatch-9999.ebuild48
3 files changed, 64 insertions, 0 deletions
diff --git a/sys-devel/smatch/ChangeLog b/sys-devel/smatch/ChangeLog
new file mode 100644
index 000000000000..b0e4f328b427
--- /dev/null
+++ b/sys-devel/smatch/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sys-devel/smatch
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/smatch/ChangeLog,v 1.1 2011/09/08 22:10:32 vapier Exp $
+
+*smatch-9999 (08 Sep 2011)
+
+ 08 Sep 2011; Mike Frysinger <vapier@gentoo.org> +smatch-9999.ebuild,
+ +metadata.xml:
+ Initial ebuild.
+
diff --git a/sys-devel/smatch/metadata.xml b/sys-devel/smatch/metadata.xml
new file mode 100644
index 000000000000..f8824b4cf31c
--- /dev/null
+++ b/sys-devel/smatch/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>kernel-misc</herd>
+ <herd>toolchain</herd>
+</pkgmetadata>
diff --git a/sys-devel/smatch/smatch-9999.ebuild b/sys-devel/smatch/smatch-9999.ebuild
new file mode 100644
index 000000000000..6a2ce508c7b3
--- /dev/null
+++ b/sys-devel/smatch/smatch-9999.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/smatch/smatch-9999.ebuild,v 1.1 2011/09/08 22:10:32 vapier Exp $
+
+EAPI="2"
+
+inherit multilib toolchain-funcs
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="git://repo.or.cz/smatch.git"
+ inherit git
+fi
+
+DESCRIPTION="static analysis tool for C"
+HOMEPAGE="http://smatch.sourceforge.net/"
+
+if [[ ${PV} == "9999" ]] ; then
+ SRC_URI=""
+ #KEYWORDS=""
+else
+ SRC_URI=""
+ KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+fi
+
+LICENSE="OSL-1.1"
+SLOT="0"
+IUSE=""
+
+RDEPEND="dev-db/sqlite"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ sed -i \
+ -e '/^PREFIX=/s:=.*:=/usr:' \
+ -e '/^CFLAGS =/{s:=:+=:;s:-O2 -finline-functions:${CPPFLAGS}:}' \
+ Makefile || die
+}
+
+src_compile() {
+ emake PREFIX=/usr V=1 CC="$(tc-getCC)" smatch || die
+}
+
+src_install() {
+ # default install target installs a lot of sparse cruft
+ dobin smatch || die
+ insinto /usr/share/smatch/smatch_data
+ doins smatch_data/* || die
+ dodoc FAQ README
+}