# -*- 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 name xchat2 version 2.8.8 revision 6 set branch [join [lrange [split ${version} .] 0 1] .] categories irc maintainers nomaintainer description GTK+2 IRC client homepage http://www.xchat.org/ platforms darwin license GPL-2+ long_description \ XChat2 is a graphical IRC client based on GTK2 that has \ many features and can be scripted with Perl and/or Python. master_sites http://xchat.org/files/source/${branch}/ patch_sites http://xchat.org/files/source/${branch}/patches/ distname xchat-${version} use_bzip2 yes checksums md5 6775c44f38e84d06c06c336b32c4a452 \ sha1 a4ac161e4e40f4bbabc492675a1ff4380dba8d68 \ rmd160 1bc3e0ff00e15c83588dd21a3ef3e8e34f953331 depends_build port:pkgconfig depends_lib port:gtk2 port:libsexy path:bin/perl:perl5 port:libpng patchfiles patch-gtk2.19.7.diff patch-glib-2.32.diff patch-gmodule.diff patch.pre_args -p1 post-extract { system "touch ${worksrcpath}/NEWS" system "touch ${worksrcpath}/ABOUT-NLS" } use_autoconf yes configure.args --disable-python --disable-mmx --enable-ipv6 \ --disable-openssl --disable-dependency-tracking universal_variant no variant xft conflicts quartz description "Enable Xft2 font support" { configure.args-append --enable-xft } variant ssl description "Enable SSL using openssl" { configure.args-delete --disable-openssl configure.args-append --enable-openssl depends_lib-append port:openssl } variant quartz conflicts xft { configure.args-append --disable-xlib } variant python25 description "Enable Python plugin, using python25" conflicts python26 python27 { configure.args-delete --disable-python configure.args-append --enable-python depends_lib-append port:python25 configure.env pythonpath="${prefix}/bin/python2.5" } variant python26 description "Enable Python plugin, using python26" conflicts python25 python27 { configure.args-delete --disable-python configure.args-append --enable-python depends_lib-append port:python26 configure.env pythonpath="${prefix}/bin/python2.6" } variant python27 description "Enable Python plugin, using python27" conflicts python25 python26 { configure.args-delete --disable-python configure.args-append --enable-python depends_lib-append port:python27 configure.env pythonpath="${prefix}/bin/python2.7" } livecheck.url http://www.xchat.org/files/source/${branch}/?S=D livecheck.regex xchat-(\[0-9.\]+)${extract.suffix}