Ticket #57066: ohcount-3.1.1.diff

File ohcount-3.1.1.diff, 2.7 KB (added by ryandesign (Ryan Schmidt), 4 years ago)

unfinished update to 3.1.1

  • textproc/ohcount/Portfile

    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
    13PortSystem      1.0
     4PortGroup       github 1.0
     5
     6github.setup    blackducksoftware ohcount 3.1.1 v
     7checksums       rmd160  73f241a41fbdc9c4d030e74a389d9f572ebf5fd2 \
     8                sha256  da5c17fc32e4074f58fd3a0d5ed3241fa0677e21219ca0a78354f2e5fa927735 \
     9                size    1282223
    210
    3 name            ohcount
    4 version         3.0.0
    5 revision        1
    611categories      textproc devel
    712license         GPL-2
    813platforms       darwin
    long_description \ 
    1419    and prepares total counts of code and comments. It can operate on single files \
    1520    or entire directory trees. Ohcount can produce line-by-line analysis of files \
    1621    for detailed debugging.
    17 homepage        http://sourceforge.net/projects/ohcount
    18 master_sites    sourceforge
    19 checksums       md5     08f97d01adde8b45635abfe93f8a717a \
    20                 sha1    5c1357b3094881ff9804fbf3002c9aaa16494cce \
    21                 rmd160  64d79b11f7b0e91761fa396a042155fb87720e3a
    2222
    2323depends_lib     port:ruby \
    2424                port:ragel \
    2525                port:swig-ruby \
    2626                port:pcre
    2727
    28 extract.mkdir   yes
    2928patchfiles      patch-build.diff
    3029
    3130post-patch {
    destroot { 
    4039    xinstall -m 0755 -W ${worksrcpath} bin/${name} ${destroot}${prefix}/bin
    4140    xinstall -m 0755 -W ${worksrcpath} src/lib${name}.dylib ${destroot}${prefix}/lib
    4241}
    43 
    44 livecheck.type  regex
    45 livecheck.url   ${homepage}
    46 livecheck.regex "${name}-(\\d+(?:\\.\\d+)+)${extract.suffix}"
  • textproc/ohcount/files/patch-build.diff

    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 @@
    44   RB_SHARED_NAME=ohcount.so
    55 else
    66   # Mac OSX
     
    1111   # You shouldn't have to change the following.
    1212   CFLAGS="-fno-common -g"
    1313   WARN="-Wall -Wno-parentheses"
    14 @@ -38,7 +38,7 @@
     14@@ -37,7 +37,7 @@
    1515 fi
    1616 
    1717 # C compiler and flags
    1818-cc="gcc -fPIC -g $CFLAGS $WARN -I$INC_DIR -L$LIB_DIR"
    1919+cc="@@CC@@ -fPIC -g $CFLAGS $WARN -I$INC_DIR -L$LIB_DIR"
    2020 
    21  # Ohcount source files
    22  files="src/sourcefile.c \
     21 # ARCHITECTURE
     22 arch=`ruby/print_arch`