# -*- 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 63238 2010-01-30 14:12:04Z ryandesign@macports.org $

PortSystem              1.0

name                    bluefish-devel
conflicts               bluefish
version                 2.0.0-rc3
categories              editors www
platforms               darwin
maintainers             nomaintainer
homepage                http://bluefish.openoffice.nl/
description             A powerful editor for web designers

long_description        Bluefish is a powerful editor for experienced web designers and \
                        programmers. Bluefish supports many programming and markup languages \
                        but it focuses on editing dynamic and interactive websites.

dist_subdir             bluefish
distname                bluefish-${version}

master_sites            sourceforge:bluefish \
                        http://www.bennewitz.com/bluefish/stable/source/

checksums               md5     e42c346da4b232b2ea0469819f4baad2 \
                        sha1    b75a5fbdaa7967a555252794025b40b3fd14d91b \
                        rmd160  bbc89ccb95d74259c554ea2a1bbbcd97ddcbdc67

use_bzip2               yes

depends_lib             port:gtk2 \
                        port:libxml2 \
                        port:enchant \
                        port:pcre

configure.args          --mandir=${prefix}/share/man \
                        --infodir=${prefix}/share/info \
                        --sysconfdir=${prefix}/etc \
                        --with-icon-path=${prefix}/share/pixmaps \
                        --without-freedesktop_org-menu \
                        --without-freedesktop_org-mime \
                        --without-gnome2_4-mime \
                        --without-gnome2_4-appreg

destroot.destdir        DESTDIR=${destroot}

variant nosplash {
    configure.args-append --disable-splash-screen
}

variant no_spellcheck description {Disable spell-check feature} {
    depends_lib-delete port:enchant
    configure.args-append --disable-spell-check
}

if {![variant_isset no_spellcheck]} {
    # enchant is not universal
    universal_variant no
}

variant tidy {
    depends_run bin:tidy:tidy
}
