#
# author: Dina Mahmoud Ibrahim (Cairo University)
#
easyblock = 'ConfigureMake'

name = 'otcl'
version = '1.14'

homepage = 'http://otcl-tclcl.sourceforge.net/otcl/'
description = "OTcl, short for MIT Object Tcl, is an extension to Tcl/Tk for object-oriented programming."

toolchain = {'name': 'goolf', 'version': '1.4.10'}
toolchainopts = {'pic': True}

sources = ['%(name)s-src-%(version)s.tar.gz']
source_urls = ['http://prdownloads.sourceforge.net/otcl-tclcl']

tcl_ver = '8.5.12'
dependencies = [
    ('Tcl', tcl_ver),
    ('Tk', tcl_ver),
]
configopts = "--with-tcl=$EBROOTTCL --with-tcl-ver=$EBVERSIONTCL --with-tk=$EBROOTTK "
configopts += "--with-tk-ver=$EBVERSIONTK"

# parallel build may fail
parallel = 1

sanity_check_paths = {
    'files': ['bin/otclsh', 'include/otcl.h', 'lib/libotcl.a', 'lib/libotcl.%s' % SHLIB_EXT],
    'dirs': [],
}

moduleclass = 'lang'
