# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*-
# vim: set fileencoding=utf-8 tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab filetype=tcl :

PortSystem	    1.0

name		    gnat-gtkada
version		    2.14.2
epoch		    20091208
revision	    0
platforms	    darwin
categories	    devel
maintainers	    nomaintainer
description	    GtkAda: a complete Ada graphical toolkit
long_description								    \
    GtkAda is an Ada95 graphical toolkit based on Gtk+, providing the complete set  \
    of Gtk+ widgets using the Object-Oriented features of this language. GtkAda	    \
    supports the latest 2.14 stable releases.

homepage	    https://libre.adacore.com/GtkAda
master_sites	    sourceforge:gnuada

distfiles	    GtkAda-${version}-${epoch}.tar.bz2
worksrcdir	    GtkAda-${version}-${epoch}
patchfiles	    gtk-about_dialog.ads.diff

checksums	    md5     f8f3648632a6fbc97952b56fd0bf3309		\
                    sha1    451b5ecb9301a5d3055c5f0d2758f2b87564651a	\
                    rmd160  b67f81d2356a3641ab743542e64aa92358cea8f4


use_bzip2	    yes
use_parallel_build  no
use_configure	    yes

depends_lib	    port:gnat-gcc

destroot {
    reinplace "s|^prefix=|prefix=\${DESTDIR}|g" ${worksrcpath}/Makefile

    system "
	pushd ${worksrcpath};
	    gmake prefix=${destroot}${prefix} install;
	popd
    "
}

