# $Id: Portfile 63234 2010-01-30 12:30:10Z ryandesign@macports.org $

PortSystem          1.0

name                aida
version             3.2.1
categories          science
maintainers         pd.infn.it:cristiano.fontana
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           darwin
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}
}
