cccc: New package 3.1.4

This commit is contained in:
Linquize 2014-05-09 16:50:36 +02:00
parent 625d7b9043
commit 349d87d47c
3 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,24 @@
diff --git a/cccc/cccc_tbl.cc b/cccc/cccc_tbl.cc
index df98e2b..59f2572 100644
--- a/cccc/cccc_tbl.cc
+++ b/cccc/cccc_tbl.cc
@@ -96,7 +96,7 @@ bool CCCC_Table<T>::remove(T* old_item_ptr)
typename map_t::iterator value_iterator=map_t::find(old_item_ptr->key());
if(value_iterator!=map_t::end())
{
- erase(value_iterator);
+ map_t::erase(value_iterator);
retval=true;
}
return retval;
diff --git a/makefile b/makefile
index 23ad004..2cca469 100644
--- a/makefile
+++ b/makefile
@@ -20,5 +20,5 @@ test :
cd test ; make -f posix.mak
install :
- cd install ; su root -c "make -f install.mak"
+ cd install ; make -f install.mak

View File

@ -0,0 +1,32 @@
{ stdenv, fetchurl }:
let
name = "cccc";
version = "3.1.4";
in
stdenv.mkDerivation {
name = "${name}-${version}";
src = fetchurl {
url = "mirror://sourceforge/${name}/${version}/${name}-${version}.tar.gz";
sha256 = "1gsdzzisrk95kajs3gfxks3bjvfd9g680fin6a9pjrism2lyrcr7";
};
patches = [ ./cccc.patch ];
preConfigure = ''
substituteInPlace install/install.mak --replace /usr/local/bin $out/bin
substituteInPlace install/install.mak --replace MKDIR=mkdir "MKDIR=mkdir -p"
'';
meta = {
description = "C and C++ Code Counter";
longDescription = ''
CCCC is a tool which analyzes C++ and Java files and generates a report
on various metrics of the code. Metrics supported include lines of code, McCabe's
complexity and metrics proposed by Chidamber&Kemerer and Henry&Kafura.
'';
homepage = "http://cccc.sourceforge.net/";
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.linquize ];
};
}

View File

@ -3643,6 +3643,8 @@ let
wrapGCC (ccache.links extraConfig)) {};
ccacheStdenv = lowPrio (overrideGCC stdenv ccacheWrapper);
cccc = callPackage ../development/tools/analysis/cccc { };
cgdb = callPackage ../development/tools/misc/cgdb { };
chromedriver = callPackage ../development/tools/selenium/chromedriver { gconf = gnome.GConf; };