smatch: upgraded package to upstream

Upgraded sys-devel/smatch to version 1.57 on amd64

BUG=chromium-os:37416
TEST="sudo emerge smatch" in chroot

Change-Id: Ib547cbd94c46551ef231cf7b650d323edce57bef
Reviewed-on: https://gerrit.chromium.org/gerrit/40086
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Tested-by: Simon Que <sque@chromium.org>
Commit-Queue: Simon Que <sque@chromium.org>
This commit is contained in:
Simon Que 2012-12-21 10:32:06 -08:00 committed by Gerrit
parent 29f18e70c4
commit fe7911fff0
3 changed files with 67 additions and 0 deletions

View File

@ -0,0 +1,12 @@
DEFINED_PHASES=compile install prepare
DEPEND=dev-db/sqlite
DESCRIPTION=static analysis tool for C
EAPI=4
HOMEPAGE=http://smatch.sourceforge.net/
KEYWORDS=amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86
LICENSE=OSL-1.1
RDEPEND=dev-db/sqlite
SLOT=0
SRC_URI=mirror://gentoo/smatch-1.57.tar.gz
_eclasses_=multilib 5f4ad6cf85e365e8f0c6050ddd21659e toolchain-funcs 6526ac6fc9aedf391efb91fcd75ace68
_md5_=41f4cff63e0f1f24e7e040fe095ffce2

View File

@ -0,0 +1 @@
DIST smatch-1.57.tar.gz 491677 RMD160 dd3dbec7b81d5bde65bbeda2e58a55a40c537d2e SHA1 7c279f116e7ea9548a459dfccacd5acbbc63fd91 SHA256 3ca08158f066887aa821da45962e4999ca60b459f3f13eb5ffc4d68c4b94cadb

View File

@ -0,0 +1,54 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-devel/smatch/smatch-1.57.ebuild,v 1.1 2012/12/20 02:46:28 vapier Exp $
EAPI="4"
inherit multilib toolchain-funcs
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="git://repo.or.cz/${PN}.git
http://repo.or.cz/r/${PN}.git"
inherit git-2
fi
DESCRIPTION="static analysis tool for C"
HOMEPAGE="http://smatch.sourceforge.net/"
if [[ ${PV} == "9999" ]] ; then
SRC_URI=""
#KEYWORDS=""
else
# The repo.or.cz site does not produce stable tarballs,
# so we have to cache our own copy of the snapshot.
#SRC_URI="http://repo.or.cz/w/smatch.git/snapshot/${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI="mirror://gentoo/${P}.tar.gz"
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}"
S=${WORKDIR}/${PN}
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
}
src_install() {
# default install target installs a lot of sparse cruft
dobin smatch
insinto /usr/share/smatch/smatch_data
doins smatch_data/*
dodoc FAQ README
}