[64515] trunk/dports/textproc

raimue at macports.org raimue at macports.org
Sun Mar 7 19:30:33 PST 2010


Revision: 64515
          http://trac.macports.org/changeset/64515
Author:   raimue at macports.org
Date:     2010-03-07 19:30:30 -0800 (Sun, 07 Mar 2010)
Log Message:
-----------
textproc/ohcount:
New port, version 3.0.0

Added Paths:
-----------
    trunk/dports/textproc/ohcount/
    trunk/dports/textproc/ohcount/Portfile
    trunk/dports/textproc/ohcount/files/
    trunk/dports/textproc/ohcount/files/patch-build.diff

Added: trunk/dports/textproc/ohcount/Portfile
===================================================================
--- trunk/dports/textproc/ohcount/Portfile	                        (rev 0)
+++ trunk/dports/textproc/ohcount/Portfile	2010-03-08 03:30:30 UTC (rev 64515)
@@ -0,0 +1,46 @@
+# $Id$
+
+PortSystem      1.0
+
+name            ohcount
+version         3.0.0
+categories      textproc devel
+platforms       darwin
+maintainers     raimue \
+                openmaintainer
+description     Ohcount is a source code line counter.
+long_description \
+    Ohcount identifies source code files in most common programming languages, \
+    and prepares total counts of code and comments. It can operate on single files \
+    or entire directory trees. Ohcount can produce line-by-line analysis of files \
+    for detailed debugging.
+homepage        http://sourceforge.net/projects/ohcount
+master_sites    sourceforge
+checksums       md5     08f97d01adde8b45635abfe93f8a717a \
+                sha1    5c1357b3094881ff9804fbf3002c9aaa16494cce \
+                rmd160  64d79b11f7b0e91761fa396a042155fb87720e3a
+
+depends_lib     port:ruby \
+                port:ragel \
+                port:swig-ruby \
+                port:pcre
+
+extract.mkdir   yes
+patchfiles      patch-build.diff
+
+post-patch {
+    reinplace "s:@@PREFIX@@:${prefix}:" ${worksrcpath}/build
+    reinplace "s:@@CC@@:${configure.cc}:" ${worksrcpath}/build
+}
+
+use_configure   no
+build.cmd       ./build ohcount && ./build shared
+
+destroot {
+    xinstall -m 0755 -W ${worksrcpath} bin/${name} ${destroot}${prefix}/bin
+    xinstall -m 0755 -W ${worksrcpath} src/lib${name}.dylib ${destroot}${prefix}/lib
+}
+
+livecheck.type  regex
+livecheck.url   ${homepage}
+livecheck.regex "${name}-(\\d+(?:\\.\\d+)+)${extract.suffix}"


Property changes on: trunk/dports/textproc/ohcount/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/textproc/ohcount/files/patch-build.diff
===================================================================
--- trunk/dports/textproc/ohcount/files/patch-build.diff	                        (rev 0)
+++ trunk/dports/textproc/ohcount/files/patch-build.diff	2010-03-08 03:30:30 UTC (rev 64515)
@@ -0,0 +1,22 @@
+--- build.orig	2010-03-08 03:57:10.000000000 +0100
++++ build	2010-03-08 03:58:28.000000000 +0100
+@@ -26,8 +26,8 @@
+   RB_SHARED_NAME=ohcount.so
+ else
+   # Mac OSX
+-  INC_DIR=/opt/local/include
+-  LIB_DIR=/opt/local/lib
++  INC_DIR=@@PREFIX@@/include
++  LIB_DIR=@@PREFIX@@/lib
+   # You shouldn't have to change the following.
+   CFLAGS="-fno-common -g"
+   WARN="-Wall -Wno-parentheses"
+@@ -38,7 +38,7 @@
+ fi
+ 
+ # C compiler and flags
+-cc="gcc -fPIC -g $CFLAGS $WARN -I$INC_DIR -L$LIB_DIR"
++cc="@@CC@@ -fPIC -g $CFLAGS $WARN -I$INC_DIR -L$LIB_DIR"
+ 
+ # Ohcount source files
+ files="src/sourcefile.c \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100307/ffc74034/attachment.html>


More information about the macports-changes mailing list