# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem      1.0

name            kanatest
version         0.4.8
categories      games education
license         GPL-2+
platforms       darwin
maintainers     nomaintainer
description     Kanatest is a Japanese kana (Hiragana and Katakana) simple flashcard tool.

long_description \
    Kanatest is a Japanese kana (hiragana and katakana) simple flashcard tool. It offers fourteen \
    lessons and three drill modes: hiragana, katakana, and mixed mode. The tool displays randomly \
    selected kana characters (respecting mode and lesson) and waits for the user answer (expected \
    as the romaji equivalent). This process continues until all questions are answered or all \
    questions are answered correctly (depending on options). At the end of test, information about \
    drilling time and correctness ratio is displayed. The results are stored, and a user can review \
    his performance at any time.

homepage        http://clayo.org/kanatest/
master_sites    ${homepage}

checksums       md5     b97b0521314f634e454354cb7ba2013d \
                sha1    4f316b28898d37597230c918d6ec01b491d66a35 \
                rmd160  40862600bffe34e57a231003ab5597e6ac3436fb

depends_build   port:pkgconfig
depends_lib     port:gettext \
                path:lib/pkgconfig/glib-2.0.pc:glib2 \
                path:lib/pkgconfig/gtk+-2.0.pc:gtk2 \
                port:libiconv \
                port:libxml2

build.args      MSGFMT=${prefix}/bin/msgfmt \
                XGETTEXT=${prefix}/bin/xgettext \
                MSGMERGE=${prefix}/bin/msgmerge

destroot.args   ${build.args}

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