# -*- 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

PortSystem          1.0

name                cssed
version             0.4.0
revision            2

categories          editors x11 www
maintainers         nomaintainer
license             GPL-2+

description         small graphical CSS editor and validator
long_description    cssed is a small developer editor and validator, \
                    that tries to ease the CSS editing.

homepage            http://cssed.sourceforge.net/
master_sites        sourceforge:project/cssed/cssed/${version}

checksums           rmd160  91bd22facdf40298d54bac83cc126740a1a077d8 \
                    sha256  25d26d5d30311c88e7c6195e2407c1deb23997723cb939377f5f2078b778ecc4 \
                    size    1457946

depends_lib         path:lib/pkgconfig/gtk+-2.0.pc:gtk2 \
                    port:libxml2

depends_build       port:automake \
                    port:hicolor-icon-theme \
                    port:pkgconfig

patchfiles          patch-configure.diff \
                    patch-const-char.diff \
                    patch-scintilla.diff \
                    patch-src-Makefile.in.diff

platform darwin {
    post-patch {
        # Use newer config.guess and config.sub
        set automake_dirs [glob -directory ${prefix}/share automake-*]
        set automake_dir [lindex [lsort -command vercmp $automake_dirs] end]
        copy -force ${automake_dir}/config.guess ${automake_dir}/config.sub ${worksrcpath}
    }
}

configure.args      --mandir=${prefix}/share/man

platform darwin 10 powerpc {
    compiler.blacklist  *gcc-4.* {clang < 400}
}
