# -*- 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                gtkspell2
version             2.0.16
revision            7
categories          x11 gnome textproc
# Source files have no copyright or license notices, and docs don't mention
# any license either. The only references to a license are the .spec, which
# says "GPL", and COPYING which is GPLv2.
license             GPL-2
maintainers         nomaintainer
description         Library for highlighting and replacement of misspelled words
long_description \
   GtkSpell provides word-processor-style highlighting and replacement of \
   misspelled words in a GtkTextView widget. Right-clicking a misspelled \
   word pops up a menu of suggested replacements.
homepage            http://gtkspell.sourceforge.net
master_sites        ${homepage}/download
distname            gtkspell-${version}

checksums           md5     f75dcc9338f182c571b321d37c606a94 \
                    sha1    49a3eaff850d119a94fc929635270f01e87cdca1 \
                    rmd160  92c29780a43cd6fa2270d5ee77f9bc1ac09e56df

depends_build       port:gettext \
                    port:intltool \
                    port:libxslt \
                    port:pkgconfig

depends_lib         port:enchant \
                    path:lib/pkgconfig/gdk-pixbuf-2.0.pc:gdk-pixbuf2 \
                    path:lib/pkgconfig/gtk+-2.0.pc:gtk2

patchfiles          patch-Makefile.in.diff \
                    patch-configure.diff

configure.args      --disable-gtk-doc

#
# the following dummy variants are used
# to identify this port's binary dependencies
# based on the variant of gtk2 used for the build
#

variant x11 conflicts quartz {}
variant quartz conflicts x11 {}

if {![variant_isset quartz]} {
    default_variants +x11
}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     "gtkspell-(2(?:\\.\\d+)*)${extract.suffix}"
