# -*- 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
# $Id: Portfile 64922 2010-03-17 20:38:40Z nox@macports.org $

PortSystem      1.0
PortGroup       archcheck 1.0

name		    gtksourceview2
set my_name     gtksourceview
version		    2.8.2
license         GPL-2 LGPL-2.1
set branch      [join [lrange [split ${version} .] 0 1] .]
maintainers	    gmail.com:micah.lerner openmaintainer
categories	    gnome
platforms	    darwin 
description	    GtkSourceView is a text widget

long_description \
	GtkSourceView is a text widget that extends the standard \
	gtk+ 2.x text widget GtkTextView. It improves GtkTextView \
	by implementing syntax highlighting and other features \
	typical of a source editor. This port contains version 2 of the \
	GtkSourceView widget. Port GtkSourceView contains version 1 of the \
	widget.

homepage	    http://svn.gnome.org/viewvc/gtksourceview/
master_sites    gnome:sources/${my_name}/${branch}/
distname	    ${my_name}-${version}
use_bzip2 	    yes

checksums       md5     5ce481d3aa7d639fe4508530b184158c \
                sha1    a2e411b191f03053b10a4f2acf866e1ae11fa15e \
                rmd160  b2869efbfca82f1dd8526febcfd92d17ae05efcf

depends_build   port:intltool \
	        port:pkgconfig

depends_lib \
    path:lib/pkgconfig/glib-2.0.pc:glib2 \
    port:gettext \
    port:gtk2 \
    port:libxml2

archcheck.files \
    lib/libglib-2.0.dylib \
    lib/libgdk_pixbuf-2.0.dylib \
    lib/libintl.dylib \
    lib/libxml2.dylib

test.run        yes
test.target     check

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING COPYING.lib MAINTAINERS \
        NEWS README ${destroot}${docdir}
}

livecheck.type  regex
livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${my_name}/${branch}/
livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
