# -*- 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$

PortSystem 1.0
PortGroup       muniversal 1.0

name            judy
version         1.0.5
revision        1
categories      devel
license         LGPL
platforms       darwin
maintainers     nomaintainer

description     general purpose dynamic array as a C callable library
long_description    Judy is a general purpose dynamic array implemented as a C \
                callable library. Judy's speed and memory usage are typically \
                better than other data storage models and improves with very \
                large data sets.

homepage        http://judy.sourceforge.net/
master_sites    sourceforge:project/judy/judy/Judy-${version}
distname        Judy-${version}
worksrcdir      judy-${version}

checksums       md5     115a0d26302676e962ae2f70ec484a54 \
                sha1    3540f003509acac3b1260424380ddf97914f7745 \
                rmd160  00cc2d28fd385e64c8fb9a564e186aee4bd52b4f

patchfiles      patch-tool-jhton.c.diff

set merger_configure_args(i386)     --enable-32-bit
set merger_configure_args(ppc)      --enable-32-bit
set merger_configure_args(ppc64)    --enable-64-bit
set merger_configure_args(x86_64)   --enable-64-bit

if {![variant_isset universal] && [info exists merger_configure_args(${build_arch})]} {
    configure.args-append   $merger_configure_args(${build_arch})
}

use_parallel_build 	no
test.run        yes
test.target     check

livecheck.regex /Judy-(\[0-9.\]+)${extract.suffix}