summaryrefslogtreecommitdiff
path: root/dev-util/coverity
diff options
context:
space:
mode:
authorBertrand Jacquin <beber@meleeweb.net>2013-11-21 15:09:18 +0100
committerBertrand Jacquin <beber@meleeweb.net>2013-11-21 15:27:33 +0100
commit78ed7785d418fad321e6064e0b57347b9a2ba65b (patch)
treef727cf8f9617f78026c155fac4a12f5fb4fa305c /dev-util/coverity
parentprofiles/enlightenment: KEYWORD EFL version bump (diff)
downloadportage-78ed7785d418fad321e6064e0b57347b9a2ba65b.tar.xz
dev-util/coverity: Coverity provides the results of analysis on open source coding projects
Package-Manager: portage-2.2.7
Diffstat (limited to 'dev-util/coverity')
-rw-r--r--dev-util/coverity/ChangeLog6
-rw-r--r--dev-util/coverity/Manifest5
-rw-r--r--dev-util/coverity/coverity-6.6.1.ebuild67
-rw-r--r--dev-util/coverity/metadata.xml8
4 files changed, 86 insertions, 0 deletions
diff --git a/dev-util/coverity/ChangeLog b/dev-util/coverity/ChangeLog
new file mode 100644
index 00000000..9644c09e
--- /dev/null
+++ b/dev-util/coverity/ChangeLog
@@ -0,0 +1,6 @@
+*coverity-6.6.1 (21 Nov 2013)
+
+ 21 Nov 2013; Bertrand Jacquin <beber@meleeweb.net> +coverity-6.6.1.ebuild,
+ +metadata.xml:
+ dev-util/coverity: Coverity provides the results of analysis on open source
+ coding projects
diff --git a/dev-util/coverity/Manifest b/dev-util/coverity/Manifest
new file mode 100644
index 00000000..4b987d04
--- /dev/null
+++ b/dev-util/coverity/Manifest
@@ -0,0 +1,5 @@
+DIST cov-analysis-linux32-6.6.1.tar.gz 98083730 SHA256 62f5e1f1a7ccef03ba5ee94f15ba7c5d0713ad27ca1d5e5554db7ae7bdd92c8b WHIRLPOOL dffaf37126c494f830a294ef13d9e6c3e252c7b6ccff22b6904fe7001713b31ba39ef43b438b2fb122a3cf9fc330295388fb7fe89889439a65dbdd299a8852c4
+DIST cov-analysis-linux64-6.6.1.tar.gz 122969112 SHA256 2066ce0975e34f37ad3c8de9887acc5a27cf0181bbbb75edfba240904a24b5e6 WHIRLPOOL 57cb2af5f5fd3bd1d5d0cf26421bd2daded6a54383159d8698ef71b53140d6b79e8b8615db8bb666141e60a3003f7cca104da702476c5cd749827ed8c3b069af
+EBUILD coverity-6.6.1.ebuild 1717 SHA256 5b0d8e7f0555176f6df0bc8f8441ac6326b2a3c2fcbaa36499ea247d48c5ff89 WHIRLPOOL 4ddf053866e9ea9b73bc2e4cb88b0525b496109ed41381add9595f8f72782c6437778cefd162c017e44bb911a55a7271a56076303d865a657e01d7c09afa1150
+MISC ChangeLog 221 SHA256 d827fd6457835c862b8114adf3e539cf84fe0d010aaa761b30fbf9fc63557c7d WHIRLPOOL 5d2eb1821f22543cdf6b94be43639a9ee1cc07d1afc90cd316766b6119361c2242af975fe18ca51903633bae8e70d8e813905c366e515990d7090db83ca698ab
+MISC metadata.xml 254 SHA256 c56bc3d6780712c960298c70bb86867aeb6661e97a317cc624516b0e16b72fcc WHIRLPOOL 2ebbfaa14ef0c1847284fe64a79f052cd7e73b25a724fba728c084aaaf2dd0692e068eedcf42ccef7e205077f00c35780ded7ec69118dc01ddb988b4802e46ae
diff --git a/dev-util/coverity/coverity-6.6.1.ebuild b/dev-util/coverity/coverity-6.6.1.ebuild
new file mode 100644
index 00000000..7e897f65
--- /dev/null
+++ b/dev-util/coverity/coverity-6.6.1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+DESCRIPTION="Coverity provides the results of analysis on open source coding projects"
+HOMEPAGE="http://www.coverity.com"
+SRC_URI="amd64? ( https://scan.coverity.com/build_tool/cov-analysis-linux64-${PV}.tar.gz )
+ x86? ( https://scan.coverity.com/build_tool/cov-analysis-linux32-${PV}.tar.gz )"
+
+LICENSE="coverity-PLA"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+RESTRICT="fetch"
+
+QA_PREBUILT="opt/coverity/bin/*"
+
+use amd64 && S="${WORKDIR}/cov-analysis-linux64-${PV}"
+use x86 && S="${WORKDIR}/cov-analysis-linux-${PV}"
+
+pkg_nofetch() {
+ eerror "Please go to https://scan.coverity.com/download"
+ eerror "and download ${A}"
+ eerror "then put the file in ${DISTDIR}"
+}
+
+src_prepare () {
+ echo "PATH='/opt/${PN}/bin'" > "${T}/99${PN}"
+ echo "ROOTPATH='/opt/${PN}/bin'" >> "${T}/99${PN}"
+
+ # Cleanup
+ find . -type f -name '*.DS_Store' -exec rm {} +
+
+ # Already available in /usr/portage/licenses
+ rm -r doc/*/licenses
+ rm doc/*/CoverityLicense.pdf
+}
+
+src_install () {
+ doenvd "${T}/99${PN}"
+
+ insinto "/opt/${PN}"
+ doins -r bin config dtd jars VERSION*
+
+ if ! has nodoc ${FEATURES} ; then
+ dodoc -r doc/*
+ fi
+
+ fperms 755 /opt/coverity/bin/cov-*
+}
+
+pkg_postinst() {
+ elog "Coverity build tool comes pre-configured for gcc, msvc and java."
+ elog "For other compiler, run cov-configure as described in"
+ elog "https://communities.coverity.com/thread/2726#5328"
+ elog
+ elog "See also: https://communities.coverity.com/message/4838#4838"
+ elog
+ elog "You need to run env-update and source /etc/profile in any open shells"
+ elog "to get coverity in PATH"
+}
diff --git a/dev-util/coverity/metadata.xml b/dev-util/coverity/metadata.xml
new file mode 100644
index 00000000..933498d8
--- /dev/null
+++ b/dev-util/coverity/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>beber@meleeweb.net</email>
+ <name>Bertrand Jacquin</name>
+ </maintainer>
+</pkgmetadata>