Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Florian Franzmann (668d091a36ff8ddca4186aa3f047f553763a277b)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Florian Franzmann <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Florian Franzmann (668d091a36ff8ddca4186aa3f047f553763a277b)
  • Date: Wed, 21 Mar 2012 09:34:02 -0500

GIT changes to master grimoire by Florian Franzmann
<siflfran AT hawo.stw.uni-erlangen.de>:

ChangeLog | 3 +
devel/kwstyle/BUILD | 1
devel/kwstyle/DEPENDS | 1
devel/kwstyle/DETAILS | 28 +++++++++++
devel/kwstyle/HISTORY | 3 +
devel/kwstyle/PRE_BUILD | 3 +
devel/kwstyle/gcc-4.6.patch | 112
++++++++++++++++++++++++++++++++++++++++++++
7 files changed, 151 insertions(+)

New commits:
commit 668d091a36ff8ddca4186aa3f047f553763a277b
Author: Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
Commit: Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>

devel/kwstyle: new spell, a C/C++ style checker

diff --git a/ChangeLog b/ChangeLog
index a379d13..20dae7f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2012-03-21 Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
+ * devel/kwstyle: new spell, a C/C++ style checker
+
2012-03-18 Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
* utils/chrpath: new spell, a tool for modifying the dynamic library
load
path
diff --git a/devel/kwstyle/BUILD b/devel/kwstyle/BUILD
new file mode 100755
index 0000000..e013b8d
--- /dev/null
+++ b/devel/kwstyle/BUILD
@@ -0,0 +1 @@
+cmake_build
diff --git a/devel/kwstyle/DEPENDS b/devel/kwstyle/DEPENDS
new file mode 100755
index 0000000..f148724
--- /dev/null
+++ b/devel/kwstyle/DEPENDS
@@ -0,0 +1 @@
+depends -sub CXX gcc
diff --git a/devel/kwstyle/DETAILS b/devel/kwstyle/DETAILS
new file mode 100755
index 0000000..05b6d55
--- /dev/null
+++ b/devel/kwstyle/DETAILS
@@ -0,0 +1,28 @@
+ SPELL=kwstyle
+ VERSION=070515
+ SOURCE="KWStyle-snapshot-${VERSION}.zip"
+ SOURCE_URL[0]=http://public.kitware.com/KWStyle/download/${SOURCE}
+
SOURCE_HASH=sha512:42d4fcb9e90259f2063c016898b1284698f4a4ef015b86d87d4acbb3c1c53af54e2aaa21238ad0187bab0e0f1e19aa4f2a4121b3699d55c5387fc93bc3686c5a
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/KWStyle"
+ WEB_SITE="http://public.kitware.com/KWStyle/index.htm";
+ LICENSE[0]=BSD
+ ENTERED=20120321
+ SHORT="a style checker for source code"
+cat << EOF
+KWStyle is a style checker for source code.
+
+KWStyle is integrated in the software process to ensure that the code written
+by several users is consistent and can be viewed/printed as it was written
+by one person.
+
+KWStyle is primarily checking C/C++ source code but can be easily extended
+to other languages. It assumes that the code is syntaxically correct, i.e
+it compiles on a standard compiler.
+
+
+Among the fearures provided by KWStyle:
+
+- Several Indentation checking - Copyright Header correctness - Maximum line
+length - Encapsulation preservation - Internal variable checking via regular
+expressions - New line at the end of file
+EOF
diff --git a/devel/kwstyle/HISTORY b/devel/kwstyle/HISTORY
new file mode 100644
index 0000000..69b7d06
--- /dev/null
+++ b/devel/kwstyle/HISTORY
@@ -0,0 +1,3 @@
+2012-03-21 Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
+ * BUILD, DEPENDS, DETAILS, gcc-4.6.patch, PRE_BUILD: spell created
+
diff --git a/devel/kwstyle/PRE_BUILD b/devel/kwstyle/PRE_BUILD
new file mode 100755
index 0000000..454b7f5
--- /dev/null
+++ b/devel/kwstyle/PRE_BUILD
@@ -0,0 +1,3 @@
+default_pre_build &&
+cd ${SOURCE_DIRECTORY} &&
+patch -p1 < ${SCRIPT_DIRECTORY}/gcc-4.6.patch
diff --git a/devel/kwstyle/gcc-4.6.patch b/devel/kwstyle/gcc-4.6.patch
new file mode 100644
index 0000000..9810853
--- /dev/null
+++ b/devel/kwstyle/gcc-4.6.patch
@@ -0,0 +1,112 @@
+diff -Naupr KWStyle/kwsCheckBlackList.cxx KWStyle.fixed/kwsCheckBlackList.cxx
+--- KWStyle/kwsCheckBlackList.cxx 2006-04-05 19:36:48.000000000 +0200
++++ KWStyle.fixed/kwsCheckBlackList.cxx 2012-03-21 15:19:21.529638741
+0100
+@@ -12,6 +12,7 @@
+
+ =========================================================================*/
+ #include "kwsParser.h"
++#include <cstring>
+
+ namespace kws {
+
+diff -Naupr KWStyle/kwsCheckHeader.cxx KWStyle.fixed/kwsCheckHeader.cxx
+--- KWStyle/kwsCheckHeader.cxx 2007-02-26 11:30:42.000000000 +0100
++++ KWStyle.fixed/kwsCheckHeader.cxx 2012-03-21 15:18:37.392886548 +0100
+@@ -12,6 +12,7 @@
+
+ =========================================================================*/
+ #include "kwsParser.h"
++#include <cstring>
+
+ namespace kws {
+
+diff -Naupr KWStyle/kwsCheckOperator.cxx KWStyle.fixed/kwsCheckOperator.cxx
+--- KWStyle/kwsCheckOperator.cxx 2006-10-26 18:58:28.000000000 +0200
++++ KWStyle.fixed/kwsCheckOperator.cxx 2012-03-21 15:18:59.113256725 +0100
+@@ -12,6 +12,7 @@
+
+ =========================================================================*/
+ #include "kwsParser.h"
++#include <cstring>
+
+ namespace kws {
+
+diff -Naupr KWStyle/kwsGenerator.cxx KWStyle.fixed/kwsGenerator.cxx
+--- KWStyle/kwsGenerator.cxx 2007-05-11 12:49:08.000000000 +0200
++++ KWStyle.fixed/kwsGenerator.cxx 2012-03-21 15:18:20.016590395 +0100
+@@ -13,6 +13,7 @@
+ =========================================================================*/
+ #include "kwsGenerator.h"
+ #include "kwsXMLReader.h"
++#include <cstring>
+
+ namespace kws {
+
+diff -Naupr KWStyle/kwsParser.cxx KWStyle.fixed/kwsParser.cxx
+--- KWStyle/kwsParser.cxx 2007-05-14 09:50:00.000000000 +0200
++++ KWStyle.fixed/kwsParser.cxx 2012-03-21 15:17:47.672039095 +0100
+@@ -14,6 +14,7 @@
+ #include "kwsParser.h"
+
+ #include <kwssys/ios/sstream>
++#include <cstring>
+
+ namespace kws {
+
+diff -Naupr KWStyle/kwsStyle.cxx KWStyle.fixed/kwsStyle.cxx
+--- KWStyle/kwsStyle.cxx 2007-05-11 12:05:46.000000000 +0200
++++ KWStyle.fixed/kwsStyle.cxx 2012-03-21 15:19:37.945918495 +0100
+@@ -23,6 +23,7 @@
+ #include <sstream>
+ #include "kwsXMLReader.h"
+ #include <vector>
++#include <cstring>
+
+ #if defined(WIN32) && !defined(__CYGWIN__)
+ #include <direct.h> // mkdir needs it
+diff -Naupr KWStyle/kwsTestFile.h KWStyle.fixed/kwsTestFile.h
+--- KWStyle/kwsTestFile.h 2006-04-05 19:38:20.000000000 +0200
++++ KWStyle.fixed/kwsTestFile.h 2012-03-21 15:20:07.010413761 +0100
+@@ -16,6 +16,8 @@
+
+ #include "itkXMLDefs.h"
+
++#include <cstdlib>
++
+ namespace kws
+ {
+
+diff -Naupr KWStyle/kwsXMLReader.cxx KWStyle.fixed/kwsXMLReader.cxx
+--- KWStyle/kwsXMLReader.cxx 2007-01-07 17:31:16.000000000 +0100
++++ KWStyle.fixed/kwsXMLReader.cxx 2012-03-21 15:18:07.216372224 +0100
+@@ -12,6 +12,7 @@
+
+ =========================================================================*/
+ #include "kwsXMLReader.h"
++#include <cstring>
+
+ namespace kws{
+
+diff -Naupr KWStyle/metaCommand.cxx KWStyle.fixed/metaCommand.cxx
+--- KWStyle/metaCommand.cxx 2006-07-27 15:14:40.000000000 +0200
++++ KWStyle.fixed/metaCommand.cxx 2012-03-21 15:17:27.183689859 +0100
+@@ -18,6 +18,7 @@
+
+ #include <stdio.h>
+ #include <string>
++#include <cstring>
+
+ #if (METAIO_USE_NAMESPACE)
+ namespace METAIO_NAMESPACE {
+diff -Naupr KWStyle/Testing/kwsTestMain.h KWStyle.fixed/Testing/kwsTestMain.h
+--- KWStyle/Testing/kwsTestMain.h 2007-05-11 12:58:38.000000000 +0200
++++ KWStyle.fixed/Testing/kwsTestMain.h 2012-03-21 15:20:51.559172819
+0100
+@@ -26,6 +26,8 @@
+ // specified on the command line.
+ #include <map>
+ #include <string>
++#include <cstring>
++#include <cstdlib>
+ #include <iostream>
+ #include <fstream>
+ #include "kwssys/SystemTools.hxx"



  • [SM-Commit] GIT changes to master grimoire by Florian Franzmann (668d091a36ff8ddca4186aa3f047f553763a277b), Florian Franzmann, 03/21/2012

Archive powered by MHonArc 2.6.24.

Top of Page