# -*- 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 80038 2011-07-03 10:59:43Z ryandesign@macports.org $

PortSystem                  1.0

name                        dictconv
version                     0.2
categories                  kde
platforms                   darwin
maintainers                 ryandesign openmaintainer
license                     GPL-2
homepage                    http://ktranslator.sourceforge.net/
master_sites                sourceforge:project/ktranslator/dictconv/${version}
use_bzip2                   yes

description                 converts dictionary file types

long_description            ${name} converts a dictionary from one file type \
                            to another.

checksums                   md5     ceaf89a8d0f15cf48f77d0c553b6f895 \
                            sha1    7a38b0268036aa80d7d794080cb9e28d9d45c6f9 \
                            rmd160  298af2af69600f9e336f3c18785f4d7bfc69c7bd

depends_lib                 port:libxml2

post-extract {
    copy ${filespath}/typedefs.h ${worksrcpath}/src
}

patchfiles                  patch-typedefs.diff

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS \
        COPYING \
        ChangeLog \
        NEWS \
        README \
        TODO \
        ${docdir}
}

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