# -*- 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 91186 2012-03-25 08:35:02Z dports@macports.org $

PortSystem              1.0

name                    irrtoolset
version                 5.0.0
categories              net
platforms               darwin
maintainers             free.fr:fclaire

description             a set of tools to work with Internet routing policies

long_description        The IRRToolSet is ${description}. \
                        These policies are stored in Internet Routing Registries (IRR) in the \
                        Routing Policy Specification Language (RPSL). The goal of the IRRToolSet \
                        is to make routing information more convenient and useful for network engineers, \
                        by providing tools for automated router configuration, routing policy analysis, \
                        and on-going maintenance.

homepage                http://irrtoolset.isc.org/
set download_site       ftp://ftp.isc.org/isc/IRRToolSet/
master_sites            ${download_site}IRRToolSet-${version}/

checksums               md5 8229443bf995e8f911fe2810229d4eb9 \
                        sha1 572d302652321f66f70208e560efc020cb989c50 \
                        rmd160 20b9b58c2fcf06afae13d2e60e8154940a8de60f

if {${configure.compiler} == "clang"} {
    configure.compiler llvm-gcc-4.2
}
configure.env-append    LEX=/usr/bin/flex

build.args-append       CC=${configure.cc} \
                        CXX=${configure.cxx} \
                        CPP=${configure.cpp}

livecheck.type          regex
livecheck.url           ${download_site}
livecheck.regex         IRRToolSet-(\[0-9\\.\]+)
