diff options
| author | Zifei Tong | 2010-08-29 18:47:31 +0800 |
|---|---|---|
| committer | David Höppner | 2010-08-29 13:18:28 +0200 |
| commit | 289198caab21a49d65f68d38fa0b998fcc6bed46 (patch) | |
| tree | 2309254be1af29aea59ebb2e2db7e742df6bdbea /Library | |
| parent | 247ffb808e0613196b77853088a3f543951b20b4 (diff) | |
| download | homebrew-289198caab21a49d65f68d38fa0b998fcc6bed46.tar.bz2 | |
New formula: splint
Splint is a tool for statically checking C programs for security
vulnerabilities and coding mistakes. With minimal effort, Splint
can be used as a better lint. If additional effort is invested
adding annotations to programs, Splint can perform stronger checking
than can be done by any standard lint.
Signed-off-by: David Höppner <0xffea@gmail.com>
* remove white space
* improve commit message
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/splint.rb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Library/Formula/splint.rb b/Library/Formula/splint.rb new file mode 100644 index 000000000..ffe6aafc3 --- /dev/null +++ b/Library/Formula/splint.rb @@ -0,0 +1,32 @@ +require 'formula' + +class Splint <Formula + url 'http://www.splint.org/downloads/splint-3.1.2.src.tgz' + homepage 'http://www.splint.org/' + md5 '25f47d70bd9c8bdddf6b03de5949c4fd' + + def install + system "./configure", "--disable-debug", "--prefix=#{prefix}", "--infodir=#{info}", "--mandir=#{share}/man" + system "make" + system "make install" + end + + def patches + # fix compiling error of osd.c + DATA + end +end +__END__ +diff --git a/src/osd.c b/src/osd.c +index ebe214a..4ba81d5 100644 +--- a/src/osd.c ++++ b/src/osd.c +@@ -516,7 +516,7 @@ osd_getPid () + # if defined (WIN32) || defined (OS2) && defined (__IBMC__) + int pid = _getpid (); + # else +- __pid_t pid = getpid (); ++ pid_t pid = getpid (); + # endif + + return (int) pid; |
