mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-01 18:42:22 +02:00
sys-devel/smatch: remove unused package
smatch is only used in repohooks which we don't execute.
This commit is contained in:
parent
65c32b545b
commit
41e467a7da
@ -1,12 +0,0 @@
|
|||||||
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 97f470f374f2e94ccab04a2fb21d811e toolchain-funcs 185a06792159ca143528e7010368e8af
|
|
||||||
_md5_=92ede50edb57408857c5a9174c9cb3ca
|
|
@ -1,12 +0,0 @@
|
|||||||
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_=epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 227b041a120d309fdefbebb3b8c1dfa9 ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e toolchain-funcs 185a06792159ca143528e7010368e8af
|
|
||||||
_md5_=edbb06206b485909cdd8ed31955e443f
|
|
@ -1,12 +0,0 @@
|
|||||||
DEFINED_PHASES=compile install prepare test
|
|
||||||
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=http://repo.or.cz/w/smatch.git/snapshot/1.59.tar.gz -> smatch-1.59.tar.gz mirror://gentoo/smatch-1.59.tar.gz
|
|
||||||
_eclasses_=multilib 97f470f374f2e94ccab04a2fb21d811e toolchain-funcs 185a06792159ca143528e7010368e8af
|
|
||||||
_md5_=97d6523a41b3700450988b241659b9a9
|
|
@ -1,10 +0,0 @@
|
|||||||
DEFINED_PHASES=compile install prepare test unpack
|
|
||||||
DEPEND=dev-db/sqlite dev-vcs/git
|
|
||||||
DESCRIPTION=static analysis tool for C
|
|
||||||
EAPI=4
|
|
||||||
HOMEPAGE=http://smatch.sourceforge.net/
|
|
||||||
LICENSE=OSL-1.1
|
|
||||||
RDEPEND=dev-db/sqlite
|
|
||||||
SLOT=0
|
|
||||||
_eclasses_=git-2 195a672bfaf52d868442171c9469bbb6 multilib 97f470f374f2e94ccab04a2fb21d811e toolchain-funcs 185a06792159ca143528e7010368e8af
|
|
||||||
_md5_=97d6523a41b3700450988b241659b9a9
|
|
@ -1,82 +0,0 @@
|
|||||||
# ChangeLog for sys-devel/smatch
|
|
||||||
# Copyright 1999-2016 Gentoo Foundation; Distributed under the GPL v2
|
|
||||||
# (auto-generated from git log)
|
|
||||||
|
|
||||||
*smatch-9999 (09 Aug 2015)
|
|
||||||
*smatch-1.59 (09 Aug 2015)
|
|
||||||
*smatch-1.57-r1 (09 Aug 2015)
|
|
||||||
*smatch-1.57 (09 Aug 2015)
|
|
||||||
|
|
||||||
09 Aug 2015; Robin H. Johnson <robbat2@gentoo.org>
|
|
||||||
+files/smatch-1.57-restrict.patch, +metadata.xml, +smatch-1.57.ebuild,
|
|
||||||
+smatch-1.57-r1.ebuild, +smatch-1.59.ebuild, +smatch-9999.ebuild:
|
|
||||||
proj/gentoo: Initial commit
|
|
||||||
|
|
||||||
This commit represents a new era for Gentoo:
|
|
||||||
Storing the gentoo-x86 tree in Git, as converted from CVS.
|
|
||||||
|
|
||||||
This commit is the start of the NEW history.
|
|
||||||
Any historical data is intended to be grafted onto this point.
|
|
||||||
|
|
||||||
Creation process:
|
|
||||||
1. Take final CVS checkout snapshot
|
|
||||||
2. Remove ALL ChangeLog* files
|
|
||||||
3. Transform all Manifests to thin
|
|
||||||
4. Remove empty Manifests
|
|
||||||
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
|
|
||||||
5.1. Do not touch files with -kb/-ko keyword flags.
|
|
||||||
|
|
||||||
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
|
||||||
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration
|
|
||||||
tests
|
|
||||||
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this
|
|
||||||
project
|
|
||||||
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo
|
|
||||||
developer, wrote Git features for the migration
|
|
||||||
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve
|
|
||||||
cvs2svn
|
|
||||||
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
|
|
||||||
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014
|
|
||||||
work in migration
|
|
||||||
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
|
|
||||||
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on
|
|
||||||
the bikeshed
|
|
||||||
|
|
||||||
24 Aug 2015; Justin Lecher <jlec@gentoo.org> metadata.xml:
|
|
||||||
Use https by default
|
|
||||||
|
|
||||||
Convert all URLs for sites supporting encrypted connections from http to
|
|
||||||
https
|
|
||||||
|
|
||||||
Signed-off-by: Justin Lecher <jlec@gentoo.org>
|
|
||||||
|
|
||||||
24 Aug 2015; Mike Gilbert <floppym@gentoo.org> metadata.xml:
|
|
||||||
Revert DOCTYPE SYSTEM https changes in metadata.xml
|
|
||||||
|
|
||||||
repoman does not yet accept the https version.
|
|
||||||
This partially reverts eaaface92ee81f30a6ac66fe7acbcc42c00dc450.
|
|
||||||
|
|
||||||
Bug: https://bugs.gentoo.org/552720
|
|
||||||
|
|
||||||
01 Oct 2015; Justin Lecher <jlec@gentoo.org> metadata.xml:
|
|
||||||
Add missing remote-id type=sourceforge
|
|
||||||
|
|
||||||
Signed-off-by: Justin Lecher <jlec@gentoo.org>
|
|
||||||
|
|
||||||
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
|
|
||||||
Unify quoting in metadata.xml files for machine processing
|
|
||||||
|
|
||||||
Force unified quoting in all metadata.xml files since lxml does not
|
|
||||||
preserve original use of single and double quotes. Ensuring unified
|
|
||||||
quoting before the process allows distinguishing the GLEP 67-related
|
|
||||||
metadata.xml changes from unrelated quoting changes.
|
|
||||||
|
|
||||||
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
|
|
||||||
Replace all herds with appropriate projects (GLEP 67)
|
|
||||||
|
|
||||||
Replace all uses of herd with appropriate project maintainers, or no
|
|
||||||
maintainers in case of herds requested to be disbanded.
|
|
||||||
|
|
||||||
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
|
|
||||||
Set appropriate maintainer types in metadata.xml (GLEP 67)
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
|||||||
# ChangeLog for sys-devel/smatch
|
|
||||||
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/smatch/ChangeLog,v 1.5 2014/05/03 16:30:04 vapier Exp $
|
|
||||||
|
|
||||||
*smatch-1.59 (03 May 2014)
|
|
||||||
|
|
||||||
03 May 2014; Mike Frysinger <vapier@gentoo.org> +smatch-1.59.ebuild,
|
|
||||||
smatch-9999.ebuild:
|
|
||||||
Version bump #509290 by MJJoker.
|
|
||||||
|
|
||||||
*smatch-1.57-r1 (03 Jan 2013)
|
|
||||||
|
|
||||||
03 Jan 2013; Mike Frysinger <vapier@gentoo.org>
|
|
||||||
+files/smatch-1.57-restrict.patch, +smatch-1.57-r1.ebuild:
|
|
||||||
Ignore __restrict__ field w/patch from ChromiumOS.
|
|
||||||
|
|
||||||
*smatch-1.57 (20 Dec 2012)
|
|
||||||
|
|
||||||
20 Dec 2012; Mike Frysinger <vapier@gentoo.org> +smatch-1.57.ebuild,
|
|
||||||
smatch-9999.ebuild:
|
|
||||||
Version bump.
|
|
||||||
|
|
||||||
21 Sep 2011; Michał Górny <mgorny@gentoo.org> smatch-9999.ebuild:
|
|
||||||
Migrate to git-2.
|
|
||||||
|
|
||||||
*smatch-9999 (08 Sep 2011)
|
|
||||||
|
|
||||||
08 Sep 2011; Mike Frysinger <vapier@gentoo.org> +smatch-9999.ebuild,
|
|
||||||
+metadata.xml:
|
|
||||||
Initial ebuild.
|
|
@ -1,10 +0,0 @@
|
|||||||
AUX smatch-1.57-restrict.patch 406 SHA256 f06b2bafdd32eac4896e0b265af31b00fb09673fde17c053d8a5a8e46666a01d SHA512 fa4816a24a2f0ff4aaf057ac83fc0ba4d9787f0e2daa7e6999700448068460adddce6fcac3efdb7aa69e4d60b9eb34f4ff17056e8037419ac4f5d21b5be5514d WHIRLPOOL 0942edefc918682bd126049340e6dd3d2995e0e6a87b4e081aecef9f2824862dd44a030bf6630a4f5f57ed1b40a475a4ff2f1e30c0479a85ba21fefd9cc0104e
|
|
||||||
DIST smatch-1.57.tar.gz 491677 SHA256 3ca08158f066887aa821da45962e4999ca60b459f3f13eb5ffc4d68c4b94cadb SHA512 031f417c97d58b617b2e375a28f509f71eb2735212a98aee0e21880a28842078ad3c24b5375a03f73d75fec582a9d187ed6a00a0512c4792e5ffce82dfd79b99 WHIRLPOOL 6eb43af471ba08c106fe05dc786422b16b20cb94bf9af2afdde3e9ccea6985bc5c3b39922e135d55b7a1b341187a77a9565b2ef27ff47f7214b6472b10b6d7c0
|
|
||||||
DIST smatch-1.59.tar.gz 495530 SHA256 9c300600aace39fe67fde59421a159d6dffdc5d8ef074762a6a6a7c78e87d472 SHA512 5e18f48dbbe11255a06b427205aefd1f8f5a11bb0b238f9134b89e6f5cb838fcae649a4e87a4a04473a33077c94e88aab46b06e33cc87cfe451fa83b5846ccc7 WHIRLPOOL 5f8c115370acd876cb41c360dcb8916ca1a725aa3714b89261ab69122976440f01b20f8874ffd7dc93ac79479db69ce246a3d5cd8bbedf5c52f430eff0195522
|
|
||||||
EBUILD smatch-1.57-r1.ebuild 1265 SHA256 aff133dbd6ed338c914021f06fecf6222b105227abf0ae8587e38aae396bf762 SHA512 9bca06ace81ada0f3740473758768eb7933faa7a7e05da85ee54f486ff21afa230dd47017dca6d599b6541dac77761d7400fb4d0562211e5e90d12603a24c250 WHIRLPOOL 91382a62d7131011d0b89289a281561ce3b3da3863bd182e25bf19e8cdc3926718fdc8a4c6b5491c5272a3572539516a371bb566eb0185728f7ba70b1d5c8251
|
|
||||||
EBUILD smatch-1.57.ebuild 1216 SHA256 b939f30549c5f0bfb660be6c948cd2dd6f9bb0669f53828b28841d5c9f5074bf SHA512 2938cdeba2a696337e259b33c1f87d75e1477d89ebc139c64631094d94211f6d4c355bc279bae025478a7535b78bbb1d56d62cd71924dcff6904b408d679b664 WHIRLPOOL 031a0ac6bbf67092c20d1ae3407953010b66e5b1feb00aebadb28dd192321b2f1d574216fb24d2e547db989b24e442ea955f9226d5c594d430f8bc4843440141
|
|
||||||
EBUILD smatch-1.59.ebuild 1224 SHA256 2a4a064f56626e24adad3118ef579e019539b070da809e6beb3adf4135051925 SHA512 ced6b61ee0611a51661a97b66e8b3383433aad90c8343c041d687d1dea5350e54c8e54c2ee003ed808665a0bc93a7a048439f3d4c88d472f5dbed3e20cb4f7b2 WHIRLPOOL e43ad166d9bc4451e63829fd733083fb5d29c77112f63a7e179f5e1996d331e7fe15edd24976df1c5f1317615995a9710f6d01ff9543c8c91fe27c62c2faa30a
|
|
||||||
EBUILD smatch-9999.ebuild 1224 SHA256 2a4a064f56626e24adad3118ef579e019539b070da809e6beb3adf4135051925 SHA512 ced6b61ee0611a51661a97b66e8b3383433aad90c8343c041d687d1dea5350e54c8e54c2ee003ed808665a0bc93a7a048439f3d4c88d472f5dbed3e20cb4f7b2 WHIRLPOOL e43ad166d9bc4451e63829fd733083fb5d29c77112f63a7e179f5e1996d331e7fe15edd24976df1c5f1317615995a9710f6d01ff9543c8c91fe27c62c2faa30a
|
|
||||||
MISC ChangeLog 3156 SHA256 28824798cf486a6e39be87abd527afca25fbaaa47a6b9df08e541c3df94b47da SHA512 95134f0dc736dcd9dc22248da18c1212f3fb1680d6283dbaac46d3601f9a581e506a506ba19d1ec68020496d30cdb6c628257c69bdf5f5e7582627f64822b244 WHIRLPOOL 38991c6ada0777524523236f49109a2fec6278fc522d153049eab35b41cefafafd86ad3da482a8dc6004dfa57a2e66f35b14a89fcad0771e9c28dcdc66cf6756
|
|
||||||
MISC ChangeLog-2015 921 SHA256 dc4e50eb76995a83ae54b8b3096f87abae278483569baf9ad9925cb75f091c3e SHA512 7021f3e169ed7dbcd961858b7ae9a607c3dd2586eafe2ba6e005841df92c990590f84c52fd357e5b301c35fc4029f456d88e63430c340d4bedad478b272cba84 WHIRLPOOL 1dc0633fb147143bf14ce35c144c8662f91155a6f7b6e06fd953d6192f4640955510fadadc5f80014f9e0acb59500ce326833b61ce4a79731d31c62d11de2a18
|
|
||||||
MISC metadata.xml 337 SHA256 b33b8b7e322f87875478803f556538720b7256ccfe8a0c857dbca2665e969fe4 SHA512 8d4007163912848eb4e4b525c808e7c69fe5aa93913398db793b6ed73936cc936a25e1fe7dce4a915b4caf6b2796d6dd4d1a52ed6dfbd2e0fb0faf6c0ba1c7e0 WHIRLPOOL 08d226731e1f85f24ddfb3f18eb69af73064c21e06b5ae2c5f2c7d97e5639cf145e6242f6ddcb1e0cc3ab95152d4507974b912ab11e3e00c593511c677651d75
|
|
@ -1,14 +0,0 @@
|
|||||||
send upstream already
|
|
||||||
|
|
||||||
diff --git a/parse.c b/parse.c
|
|
||||||
index 5dd9a06..bf5894d 100644
|
|
||||||
--- a/parse.c
|
|
||||||
+++ b/parse.c
|
|
||||||
@@ -419,6 +419,7 @@ static struct init_keyword {
|
|
||||||
/* Ignored for now.. */
|
|
||||||
{ "restrict", NS_TYPEDEF, .op = &restrict_op},
|
|
||||||
{ "__restrict", NS_TYPEDEF, .op = &restrict_op},
|
|
||||||
+ { "__restrict__", NS_TYPEDEF, .op = &restrict_op},
|
|
||||||
|
|
||||||
/* Storage class */
|
|
||||||
{ "auto", NS_TYPEDEF, .op = &auto_op },
|
|
@ -1,11 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="project">
|
|
||||||
<email>toolchain@gentoo.org</email>
|
|
||||||
<name>Gentoo Toolchain Project</name>
|
|
||||||
</maintainer>
|
|
||||||
<upstream>
|
|
||||||
<remote-id type="sourceforge">smatch</remote-id>
|
|
||||||
</upstream>
|
|
||||||
</pkgmetadata>
|
|
@ -1,55 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="4"
|
|
||||||
|
|
||||||
inherit multilib toolchain-funcs eutils
|
|
||||||
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() {
|
|
||||||
epatch "${FILESDIR}"/${P}-restrict.patch
|
|
||||||
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
|
|
||||||
}
|
|
@ -1,54 +0,0 @@
|
|||||||
# Copyright 1999-2012 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
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
|
|
||||||
}
|
|
@ -1,64 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="4"
|
|
||||||
|
|
||||||
inherit 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
|
|
||||||
else
|
|
||||||
SRC_URI="http://repo.or.cz/w/smatch.git/snapshot/${PV}.tar.gz -> ${P}.tar.gz
|
|
||||||
mirror://gentoo/${P}.tar.gz"
|
|
||||||
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="static analysis tool for C"
|
|
||||||
HOMEPAGE="http://smatch.sourceforge.net/"
|
|
||||||
|
|
||||||
LICENSE="OSL-1.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
RDEPEND="dev-db/sqlite"
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
|
|
||||||
S=${WORKDIR}/${PN}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
sed -i \
|
|
||||||
-e '/^CFLAGS =/{s:=:+=:;s:-O2 -finline-functions:${CPPFLAGS}:}' \
|
|
||||||
Makefile || die
|
|
||||||
}
|
|
||||||
|
|
||||||
_emake() {
|
|
||||||
# gtk/llvm/xml is used by sparse which we don't install
|
|
||||||
emake \
|
|
||||||
PREFIX="${EPREFIX}/usr" \
|
|
||||||
V=1 \
|
|
||||||
AR="$(tc-getAR)" \
|
|
||||||
CC="$(tc-getCC)" \
|
|
||||||
LD='$(CC)' \
|
|
||||||
HAVE_GTK2=no \
|
|
||||||
HAVE_LLVM=no \
|
|
||||||
HAVE_LIBXML=no \
|
|
||||||
"$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
_emake smatch
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
_emake check
|
|
||||||
}
|
|
||||||
|
|
||||||
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
|
|
||||||
}
|
|
@ -1,64 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="4"
|
|
||||||
|
|
||||||
inherit 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
|
|
||||||
else
|
|
||||||
SRC_URI="http://repo.or.cz/w/smatch.git/snapshot/${PV}.tar.gz -> ${P}.tar.gz
|
|
||||||
mirror://gentoo/${P}.tar.gz"
|
|
||||||
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="static analysis tool for C"
|
|
||||||
HOMEPAGE="http://smatch.sourceforge.net/"
|
|
||||||
|
|
||||||
LICENSE="OSL-1.1"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
RDEPEND="dev-db/sqlite"
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
|
|
||||||
S=${WORKDIR}/${PN}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
sed -i \
|
|
||||||
-e '/^CFLAGS =/{s:=:+=:;s:-O2 -finline-functions:${CPPFLAGS}:}' \
|
|
||||||
Makefile || die
|
|
||||||
}
|
|
||||||
|
|
||||||
_emake() {
|
|
||||||
# gtk/llvm/xml is used by sparse which we don't install
|
|
||||||
emake \
|
|
||||||
PREFIX="${EPREFIX}/usr" \
|
|
||||||
V=1 \
|
|
||||||
AR="$(tc-getAR)" \
|
|
||||||
CC="$(tc-getCC)" \
|
|
||||||
LD='$(CC)' \
|
|
||||||
HAVE_GTK2=no \
|
|
||||||
HAVE_LLVM=no \
|
|
||||||
HAVE_LIBXML=no \
|
|
||||||
"$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
_emake smatch
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
_emake check
|
|
||||||
}
|
|
||||||
|
|
||||||
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
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user