# -*- 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
# $Id: Portfile 78762 2011-05-21 15:29:21Z jmr@macports.org $

PortSystem 1.0

name		weechat
version		0.3.5
categories	irc
maintainers	milosh openmaintainer
description	Fast, light & extensible IRC client
long_description	\
    WeeChat (Wee Enhanced Environment for Chat) is a fast and light IRC client\
     for many operating systems. Everything can be done with a keyboard.\
     It is customizable and extensible with plugins/scripts, and includes:\
      - nicklist\
      - smart hotlist\
      - infobar with highlight notification\
      - horizontal and vertical split\
      - double charset support (decode/encode)\
      - FIFO pipe for remote control\
      - and much more!
homepage	http://weechat.org/
platforms	darwin
master_sites	${homepage}files/src

checksums           sha1    d963b408ec69b69a73e081414ece981804060975 \
                    rmd160  4a590f22a97618cf101314df4ca3e2ecb2a1a5e4

depends_build   port:pkgconfig
depends_lib	port:gettext port:libiconv port:ncurses port:libgcrypt

configure.args	--without-debug --disable-gnutls --disable-lua \
		--disable-perl --disable-python --disable-ruby --disable-aspell

use_bzip2	yes

variant aspell description {Support for aspell} {
    configure.args-delete   --disable-aspell
    configure.args-append   --enable-aspell
    depends_lib-append      port:aspell
}

variant lua description {Bindings for lua plugins} {
	configure.args-delete --disable-lua
	configure.args-append --enable-lua
	depends_lib-append    port:lua
}

variant perl description {Bindings for perl plugins} {
	configure.args-delete --disable-perl
	configure.args-append --enable-perl
	depends_lib-append    path:bin/perl:perl5
}

variant python description {Bindings for python plugins} {
    configure.args-delete   --disable-python
    configure.args-append   --enable-python
    depends_lib-append      path:bin/python:python26
}

variant ruby description {Bindings for ruby plugins} {
	configure.args-delete --disable-ruby
	configure.args-append --enable-ruby
	depends_lib-append    port:ruby
}

variant tls description {Support for secure connecting} {
	configure.args-delete --disable-gnutls
	configure.args-append --enable-gnutls
	depends_lib-append    port:gnutls
}
