# $Id: Portfile 87166 2011-11-12 19:00:35Z ryandesign@macports.org $

PortSystem 1.0

name			xotcl
version			1.6.7
revision                1
categories		lang
maintainers		wu.ac.at:neumann
description		Extended Object Tool Command Language
long_description	Extended Object Tcl (for short: XOTcl, pronounced exotickle) is an \
			object-oriented scripting language based on Tcl. It was originally \
			designed for providing language support for design patterns and provides \
			novel constructs such as filters or transitive mixin classes. \
			The language is designed for empowering rather than constraining \
			system developers. The basic object model is highly influenced by CLOS.
platforms		darwin
homepage		http://media.wu-wien.ac.at

# Set tclv and checksums to the current MacPorts Tcl port version, though port doesn't
# break if they aren't in sync.

set tclv                8.5.11

master_sites		sourceforge:project/xotcl/xotcl/${version}:xotcl \
			sourceforge:project/tcl/Tcl/${tclv}:tcl

dist_subdir             tcltk
distname                ${name}-${version}

distfiles               ${distname}.tar.gz:xotcl \
                        tcl${tclv}-src.tar.gz:tcl

checksums               ${distname}.tar.gz \
				md5     ff136c3237eb11fad257576ee02579db \
				sha1    230f83e192e0666785e52c037130bd8caa9cb9e7 \
				rmd160  cbf2f0f1476c09425a69e12d109eb2f8d0ac2815 \
                        tcl${tclv}-src.tar.gz \
				md5     b01a9691c83990b3db0ce62d1012ca67 \
				sha1    cb70dcfb7625389afd774e0438a7ade3e7aa13c8 \
				rmd160  36140b5e8365c190202132dd6f0dfeb831ea9bc8

depends_lib		port:tcl \
			port:tk

configure.cflags        "-I${workpath}/tcl${tclv}/generic -I${workpath}/tcl${tclv}/unix"
configure.args		--enable-threads --with-tcl=${prefix}/lib --with-tk=${prefix}/lib \
			--with-xotclsh \
			--mandir=${prefix}/share/man \
			--with-tcl=${prefix}/lib \
			--with-tclinclude=${workpath}/tcl${tclv}/generic/

test.run		yes
test.target		test
use_parallel_build  	no
