# -*- 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

PortSystem          1.0

name                aida
version             3.2.1
categories          science
maintainers         nomaintainer
license             LGPL
description         AIDA -- Abstract Interfaces for Data Analysis
long_description    AIDA is a collection of abstract interfaces for common physics analysis objects, such as histograms, ntuples, fitters, IO etc... \
                    The adoption of these interfaces should make it easier for physicists to use different tools without having to learn new interfaces or change all of their code. \
                    Additional benefits will be interoperability of AIDA compliant applications (for example by making it possible for applications to exchange analysis objects via XML).
homepage            http://aida.freehep.org/
platforms           any
supported_archs     noarch
master_sites        ftp://ftp.slac.stanford.edu/software/freehep/AIDA/v${version}/

checksums           md5 1db1f8d984cdb9c73ba9355c5fdfe8cc

extract.mkdir       yes

use_configure       no

build {}

destroot {
    file copy ${worksrcpath}/src/cpp/AIDA ${destroot}${prefix}/include

    file copy ${worksrcpath}/src/java ${destroot}${prefix}/share/
    file copy ${worksrcpath}/lib ${destroot}${prefix}/share/java/hep/aida

    xinstall -d ${destroot}${prefix}/share/doc
    file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
}

livecheck.type      regex
livecheck.url       http://aida.freehep.org/download.thtml
livecheck.regex     ftp://ftp.slac.stanford.edu/software/freehep/AIDA/v(\\d+\\.\\d+\\.\\d+)/
