Ticket #30868: Portfile.diff

File Portfile.diff, 3.0 KB (added by kentk@…, 13 years ago)

Portfile diff

  • /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/sysutils/grok/Portfile

    old new  
    33PortSystem        1.0
    44
    55name              grok
    6 version           20090928
     6version           1.20110630.1
    77categories        sysutils
    88maintainers       org.geekdaily:jim openmaintainer
    99platforms         darwin
     
    1818homepage          http://www.semicomplete.com/projects/grok/
    1919
    2020master_sites      http://semicomplete.googlecode.com/files/
    21 checksums         md5 629465d284de11c37a644cab970be432 \
    22                   sha1 bfc8db7be17f1bb52f2b930dfe284a0db8595b35 \
    23                   rmd160 8b9f6f27e85700f7f227bd3a6f5b9925de82e8e9
     21checksums         md5 cb91edadab0f5cf452c53b15bdfc2589 \
     22                  sha1 d923c961e4a8b473d1a924c3e961d2fab7458805
    2423
    2524patchfiles        patch-Makefile.diff
    26 post-patch {
    27    reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/Makefile
    28 }
    2925
    3026depends_build     port:bison \
    3127                  port:flex \
    3228                  port:gperf \
    33                   port:gmake
     29                  port:gmake \
     30                  port:cunit
    3431
    35 depends_run       port:libevent \
     32depends_run       port:libevent1 \
    3633                  port:pcre \
    37                   port:db46
     34                  port:tokyocabinet
    3835
    3936use_configure     no
    4037
    4138build.type        gnu
    42 build.args        CFLAGS="`pcre-config --cflags` -I${prefix}/include/db46" LDFLAGS="`pcre-config --libs` -L${prefix}/lib/db46 -levent -ldb -rdynamic"
     39build.args        EXTRA_CFLAGS="`pcre-config --cflags` -I${prefix}/include/libevent1" \
     40                  EXTRA_LDFLAGS="`pcre-config --libs` -L${prefix}/lib/libevent1"
    4341
    4442test.run          yes
     43test.target       -C test test-c
     44test.env          DYLD_LIBRARY_PATH=${worksrcpath} \
     45                  CFLAGS="-I${prefix}/include -I${prefix}/include/libevent1" \
     46                  LDFLAGS="-L${prefix}/lib -L${prefix}/lib/libevent1 -lncurses"
    4547
    46 destroot.args     PREFIX=${destroot}${prefix} INSTALL_USER=${install.user} INSTALL_GROUP=${install.group}
     48destroot.args     PREFIX=${prefix} INSTALL_USER=${install.user} INSTALL_GROUP=${install.group}
    4749
    4850### TODO: pre-build testing for these dependencies
    49 # Build dependencies:
     51# Developer dependencies:
    5052#   bison        >= 2.3
    51 #   flex         >= 2.5.35
    52 #   gperf        >= 3.0
    53 #   GNU make     >= 3.81
     53#   gnu flex     >= 2.5.35
     54# * gnu flex and bison are only needed for developers, as the main source
     55#   code comes with bison/flex code generation already run)
    5456#
     57# Build dependencies:
     58#   gperf        >= 3.0
     59#   GNU make     >= 3.81
    5560# Run dependencies:
    56 #   libevent     >= 1.3 (older versions may work)
    57 #   libpcre      >= 7.6
    58 #   Berkeley DB  >= 4.5
     61#   libevent      >= 1.3 (older versions may work)
     62#   libpcre       >= 7.6
     63#   Tokyo Cabinet >= 1.4.9
    5964#
    6065# Test suite dependencies:
    6166#   CUnit        >= 2.1