# -*- 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 114667 2013-12-13 17:11:42Z cal@macports.org $

PortSystem          1.0

name                liboping-devel
conflicts           liboping
version             20131206
set git_branch      65e6e0f31106b4c1832bfbfe463226e9b6ad6d89
categories          net
platforms           darwin
license             LGPL-2.1 GPL-2
maintainers         danner.de:daniel openmaintainer
description         C library and program for ICMP echo requests
long_description    C library and ncurses-based frontend to generate ICMP echo requests to multiple hosts in parallel
homepage            http://verplant.org/liboping/
master_sites        "http://git.verplant.org/?p=liboping.git;a=snapshot;h=${git_branch};sf=tgz;dummy="

if {[string length "${git_branch}"] >= 7} {
    set filetag [string range "${git_branch}" 0 6]
    distname liboping-${filetag}
} else {
    error "git branch hash must be at least 7 characters long."
}

post-destroot {
    fs-traverse f ${destroot}${prefix} {
        if {[file isfile ${f}]} {
            switch [file tail ${f}] {
                .packlist -
                perllocal.pod {
                    delete ${f}
                }
            }
        }
    }
}

checksums           rmd160  6867432006787e041799b81b8259347f96fe5b22 \
                    sha256  fefc91c45b4520e430172e89d7b2a6fe646fa8789cb3a792177db68f4b3b317f

depends_lib         port:ncurses \
                    port:perl5.12

use_autoreconf      yes
configure.perl      ${prefix}/bin/perl5.12

patchfiles          ncursesw.diff
