summaryrefslogtreecommitdiff
path: root/dev-util/cyclo
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-util/cyclo
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-util/cyclo')
-rw-r--r--dev-util/cyclo/Manifest3
-rw-r--r--dev-util/cyclo/cyclo-2.1.0.ebuild48
-rw-r--r--dev-util/cyclo/metadata.xml15
3 files changed, 66 insertions, 0 deletions
diff --git a/dev-util/cyclo/Manifest b/dev-util/cyclo/Manifest
new file mode 100644
index 000000000000..ffce66480a69
--- /dev/null
+++ b/dev-util/cyclo/Manifest
@@ -0,0 +1,3 @@
+DIST cyclo-2.1.0.tar.gz 27120 BLAKE2B ead104641bd7b4d1522007fa1ddd9839c8eaf9b78c1d1c1af4c7b8f49faa31c41759993890e7efbbf854fce44daca326e224989174411d74b3f58de9edb5dc3d SHA512 19cf4116e55ba3dff6e49536fed7e5a8da4cc2b691874b5356e67763652785b3f349cb309629e9aca66be15f1c4632ece8bcd5cc3b69373a5a7923eab8058382
+EBUILD cyclo-2.1.0.ebuild 1045 BLAKE2B 7746c2b7d67200c056454f5e96ad6bfe6e8fae98d199b50e743f0def1f29f685b8f37a70c66ad314c33a6807900d12272aed698c43a1790c7b192bc60fedee45 SHA512 471e26f0e828075db53f14b093150e84af1897a468893d1d6d480f16c9bfa961769b7b30978dca58cc3a863e7aa42fc868c49a7bc3ebc5e6c90f68b5459ef718
+MISC metadata.xml 426 BLAKE2B 6309e178465751dee1cd84a71c1402fd5fff423db131e43f0639e98b67b762effb4e091650aacad503ae5bc3557db3dce3204620c5992c2d87f78bce40c51427 SHA512 fdfe058a00119d456af23e314426ead9fa02903e9c3b91c9176cd2dd611b46e876e8c3787a9d6937682b6b3d65eb5f688348f7cbffd9197a666042f02bacb6ac
diff --git a/dev-util/cyclo/cyclo-2.1.0.ebuild b/dev-util/cyclo/cyclo-2.1.0.ebuild
new file mode 100644
index 000000000000..7f3353155ed8
--- /dev/null
+++ b/dev-util/cyclo/cyclo-2.1.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Computes cyclomatic complexity metrics on C source code."
+HOMEPAGE="https://github.com/sarnold/cyclo"
+
+if [[ ${PV} = 9999* ]]; then
+ EGIT_REPO_URI="https://github.com/sarnold/cyclo.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/sarnold/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE="debug"
+
+DEPEND="sys-devel/flex"
+
+src_compile() {
+ local my_opts
+ my_opts="CC=$(tc-getCC) CXX=$(tc-getCXX)"
+
+ if ! use debug ; then
+ DBG="" emake ${my_opts} || die "make failed"
+ else
+ export STRIP_MASK="*/bin/*"
+ if [ -n "${DEBUG}" ] ; then
+ DBG="${DEBUG}" emake ${my_opts} \
+ || die "make debug failed"
+ else
+ emake ${my_opts} || die "make debug failed"
+ fi
+ fi
+}
+
+src_test() {
+ make -f Makefile.test test
+}
+
+src_install() {
+ emake PREFIX=/usr DESTDIR="${ED}" install
+}
diff --git a/dev-util/cyclo/metadata.xml b/dev-util/cyclo/metadata.xml
new file mode 100644
index 000000000000..aefcf1b14858
--- /dev/null
+++ b/dev-util/cyclo/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>nerdboy@gentoo.org</email>
+ <name>Steve Arnold</name>
+</maintainer>
+<maintainer type="person">
+ <email>blueness@gentoo.org</email>
+ <name>Anthony G. Basile</name>
+</maintainer>
+<upstream>
+ <remote-id type="github">sarnold/cyclo</remote-id>
+</upstream>
+</pkgmetadata>