# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem	1.0
PortGroup xcode 1.0

name        bean
version     2.4.5
categories  editors aqua
license     GPL-2+
maintainers	nomaintainer
description	A small, simple rich text editor.
long_description    \
    Bean is a small, simple word processor (or more precisely, a rich text \
    editor), with many niceties added to make writing convenient, efficient \
    and comfortable.
homepage    http://www.bean-osx.com/
master_sites    http://www.bean-osx.com/source/

distname    Bean-Source
dist_subdir ${name}/${version}
use_zip     yes

checksums   rmd160  51e73d32407acdb109594195f1821e48d92a1f4f \
            sha256  31155711624ea92d6a50592f5eeed47eef6eddc3f4baf73d4e72cc345edb06d2

supported_archs	i386 ppc

worksrcdir	Bean-[string map {. -} $version]

patchfiles	ApplicationDelegate.m.diff

xcode.target	Bean
xcode.configuration	Release

post-destroot {
    foreach localization [glob ${worksrcpath}/Localizations/*.lproj] {
        copy ${localization} ${destroot}${applications_dir}/Bean.app/Contents/Resources/
    }
}

livecheck.type	regex
livecheck.url	http://www.bean-osx.com/releases/availableVersion.xml
livecheck.regex	"<availableVersion>(\[0-9\.\]+)</availableVersion>"
