# -*- 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 PortSystem 1.0 PortGroup github 1.0 PortGroup makefile 1.0 epoch 1 github.setup jordansissel grok 0.9.2 v # https://github.com/jordansissel/grok/issues/38 version 1.20111028.1 revision 0 checksums rmd160 8189edee8157fe42650357b15b6852005bc3b85d \ sha256 40edbdba488ff9145832c7adb04b27630ca2617384fbef2af014d0e5a76ef636 \ size 243554 categories sysutils license BSD maintainers nomaintainer description Easily parse logs and other files. long_description Grok is simple software that allows you to easily parse logs \ and other files. You teach grok how to parse data through the \ config file. Grok is a system for reacting to events - those events \ being log entries. github.tarball_from archive depends_build port:bison \ port:flex \ port:gperf depends_lib port:libevent \ port:pcre \ port:tokyocabinet patchfiles Makefile.patch \ bison.patch \ gperf3.1.patch \ implicit.patch \ semicolon.patch \ pcre8.34.patch post-patch { # Without a VERSION file, it uses 1.YYYYMMDD.1 (of the build date) # as the version number. # https://github.com/jordansissel/grok/issues/38 set fp [open ${worksrcpath}/VERSION w] set v [split ${version} .] puts ${fp} "MAJOR=[lindex ${v} 0]\nRELEASE=[lindex ${v} 1]\nREVISION=[lindex ${v} 2]\n" close ${fp} } build.env "GPERF=${prefix}/bin/gperf" platform darwin 8 { # Presumed necessary. Documentation says it works with gmake 3.81; Tiger has 3.80. depends_build-append \ port:gmake build.cmd ${prefix}/bin/gmake }