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

PortSystem      1.0
PortGroup       github 1.0

github.setup    libhangul nabi 1.0.1 nabi-
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
categories      x11
license         GPL-2
maintainers     rogers.com:matthew.c
description     Korean Input Method for X11

long_description \
                Nabi is an easy and powerful GNU XIM, made for \
                entering Hangul (Korean) in the X Window system. \
                It can be used for free and distributed under \
                the GNU license. There are many systems using \
                Nabi as default XIM for Korean.

homepage        http://nabi.kldp.net/nabi

checksums       rmd160  205e9c7e2e4b39f5fcd3e1998b92feedba815011 \
                sha256  76829f85bf3f46675a4e14f3c325299b7bb97e64776900a3486373ca635cd387 \
                size    927082

use_autoreconf  yes
autoreconf.cmd  ./autogen.sh

depends_lib-append \
                path:lib/pkgconfig/gtk+-2.0.pc:gtk2 \
                port:libhangul
depends_build-append \
                port:autoconf \
                port:automake \
                port:libtool \
                port:pkgconfig

post-activate {
ui_msg "\n

You must add an environment variable to your ~/.profile with this statement:

    export XMODIFIERS=\"@im=nabi\"
\n"
}
