diff --git a/textproc/ohcount/Portfile b/textproc/ohcount/Portfile
index 904554eb92..4408b32216 100644
|
a
|
b
|
|
| | 1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
| | 2 | |
| 1 | 3 | PortSystem 1.0 |
| | 4 | PortGroup github 1.0 |
| | 5 | |
| | 6 | github.setup blackducksoftware ohcount 3.1.1 v |
| | 7 | checksums rmd160 73f241a41fbdc9c4d030e74a389d9f572ebf5fd2 \ |
| | 8 | sha256 da5c17fc32e4074f58fd3a0d5ed3241fa0677e21219ca0a78354f2e5fa927735 \ |
| | 9 | size 1282223 |
| 2 | 10 | |
| 3 | | name ohcount |
| 4 | | version 3.0.0 |
| 5 | | revision 1 |
| 6 | 11 | categories textproc devel |
| 7 | 12 | license GPL-2 |
| 8 | 13 | platforms darwin |
| … |
… |
long_description \ |
| 14 | 19 | and prepares total counts of code and comments. It can operate on single files \ |
| 15 | 20 | or entire directory trees. Ohcount can produce line-by-line analysis of files \ |
| 16 | 21 | for detailed debugging. |
| 17 | | homepage http://sourceforge.net/projects/ohcount |
| 18 | | master_sites sourceforge |
| 19 | | checksums md5 08f97d01adde8b45635abfe93f8a717a \ |
| 20 | | sha1 5c1357b3094881ff9804fbf3002c9aaa16494cce \ |
| 21 | | rmd160 64d79b11f7b0e91761fa396a042155fb87720e3a |
| 22 | 22 | |
| 23 | 23 | depends_lib port:ruby \ |
| 24 | 24 | port:ragel \ |
| 25 | 25 | port:swig-ruby \ |
| 26 | 26 | port:pcre |
| 27 | 27 | |
| 28 | | extract.mkdir yes |
| 29 | 28 | patchfiles patch-build.diff |
| 30 | 29 | |
| 31 | 30 | post-patch { |
| … |
… |
destroot { |
| 40 | 39 | xinstall -m 0755 -W ${worksrcpath} bin/${name} ${destroot}${prefix}/bin |
| 41 | 40 | xinstall -m 0755 -W ${worksrcpath} src/lib${name}.dylib ${destroot}${prefix}/lib |
| 42 | 41 | } |
| 43 | | |
| 44 | | livecheck.type regex |
| 45 | | livecheck.url ${homepage} |
| 46 | | livecheck.regex "${name}-(\\d+(?:\\.\\d+)+)${extract.suffix}" |
diff --git a/textproc/ohcount/files/patch-build.diff b/textproc/ohcount/files/patch-build.diff
index 646bad35d3..907936d261 100644
|
a
|
b
|
|
| 1 | | --- build.orig 2010-03-08 03:57:10.000000000 +0100 |
| 2 | | +++ build 2010-03-08 03:58:28.000000000 +0100 |
| 3 | | @@ -26,8 +26,8 @@ |
| | 1 | --- build.orig 2018-05-10 11:17:08.000000000 -0500 |
| | 2 | +++ build 2018-10-14 13:07:48.000000000 -0500 |
| | 3 | @@ -25,8 +25,8 @@ |
| 4 | 4 | RB_SHARED_NAME=ohcount.so |
| 5 | 5 | else |
| 6 | 6 | # Mac OSX |
| … |
… |
|
| 11 | 11 | # You shouldn't have to change the following. |
| 12 | 12 | CFLAGS="-fno-common -g" |
| 13 | 13 | WARN="-Wall -Wno-parentheses" |
| 14 | | @@ -38,7 +38,7 @@ |
| | 14 | @@ -37,7 +37,7 @@ |
| 15 | 15 | fi |
| 16 | 16 | |
| 17 | 17 | # C compiler and flags |
| 18 | 18 | -cc="gcc -fPIC -g $CFLAGS $WARN -I$INC_DIR -L$LIB_DIR" |
| 19 | 19 | +cc="@@CC@@ -fPIC -g $CFLAGS $WARN -I$INC_DIR -L$LIB_DIR" |
| 20 | 20 | |
| 21 | | # Ohcount source files |
| 22 | | files="src/sourcefile.c \ |
| | 21 | # ARCHITECTURE |
| | 22 | arch=`ruby/print_arch` |