# -*- 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
# $Id: Portfile 92837 2012-05-09 00:51:48Z ryandesign@macports.org $

PortSystem              1.0

name                    yara
version                 1.6
revision                1
categories              security
license                 GPL-2+
platforms               darwin
maintainers             yendor.net:a.schuster \
                        openmaintainer
                        
description             Malware identification and classification tool
long_description \
    YARA is a tool aimed at helping malware researchers to identify and \
    classify malware samples.

homepage                http://code.google.com/p/yara-project/
master_sites            googlecode:yara-project

checksums               rmd160  5a1ef8e9eccb913156b4be155e9cefb58d0088f2 \
                        sha256  af92ac3481212245944561888f6b128cc13fe736fbabf90cc80c26f6179bc9f3

depends_lib             port:pcre

post-patch {
    # fix use of inline for clang compatibility
    reinplace "s|inline|static inline|g" ${worksrcpath}/libyara/scan.c
}

