easyblock = 'ConfigureMake'

name = 'TinySVM'
version = '0.09'

homepage = 'http://chasen.org/~taku/software/TinySVM/'
description = """TinySVM is an implementation of Support Vector Machines (SVMs) for the problem
 of pattern recognition. Support Vector Machines is a new generation learning algorithms based on
 recent advances in statistical learning theory, and applied to large number of real-world
 applications, such as text categorization, hand-written character recognition."""

toolchain = {'name': 'goalf', 'version': '1.1.0-no-OFED'}
toolchainopts = {'optarch': True, 'pic': True, 'opt': True, 'unroll': True}

sources = [SOURCE_TAR_GZ]
source_urls = ['http://chasen.org/~taku/software/TinySVM/src']

# original CXXFLAGS: -Wall -O9 -funroll-all-loops -finline -ffast-math
buildopts = 'CXXFLAGS="$CXXFLAGS -Wall -funroll-all-loops -finline -ffast-math"'

sanity_check_paths = {
    'files': ["bin/svm_learn", "bin/svm_learn", "bin/svm_classify"],
    'dirs': []
}

moduleclass = 'data'
