# $Id: Portfile 64277 2010-02-28 10:30:03Z ryandesign@macports.org $

PortSystem              1.0

name                    bluefish
conflicts               bluefish-devel
version                 2.0.0
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     ac9b1e8ef6d5691718a0daa6c78d5618 \
                        sha1    b92d79291f262d1bb01337f055ad16093cf4905b \
                        rmd160  6ec7ea007784fedd53cd5c604aa2c8e397717a1d

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
}
