Ticket #23390: Portfile.2

File Portfile.2, 1.6 KB (added by cristiano.fontana@…, 15 years ago)
Line 
1# $Id$
2
3PortSystem          1.0
4
5name                aida
6version             3.2.1
7categories          science
8maintainers         pd.infn.it:cristiano.fontana
9license             LGPL
10description         AIDA -- Abstract Interfaces for Data Analysis
11long_description    AIDA is a collection of abstract interfaces for common physics analysis objects, such as histograms, ntuples, fitters, IO etc... \
12                    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. \
13                    Additional benefits will be interoperability of AIDA compliant applications (for example by making it possible for applications to exchange analysis objects via XML).
14homepage            http://aida.freehep.org/
15platforms           darwin
16master_sites        ftp://ftp.slac.stanford.edu/software/freehep/AIDA/v${version}/
17
18checksums           md5 1db1f8d984cdb9c73ba9355c5fdfe8cc
19
20default_variants    +cpp
21
22variant cpp description {Install C++ header files} {}
23variant java description {Install Java libraries} {}
24
25use_configure       no
26
27build {}
28
29destroot {
30    if {[variant_isset cpp]} {
31        file copy ${workpath}/src/cpp/AIDA ${destroot}${prefix}/include
32    }
33
34    if {[variant_isset java]} {
35        file copy ${workpath}/src/java ${destroot}${prefix}/share/
36        file copy ${workpath}/lib ${destroot}${prefix}/share/java/hep/aida
37    }
38
39    file copy ${workpath}/doc ${destroot}${prefix}/share/doc/
40    file rename ${destroot}${prefix}/share/doc/doc ${destroot}${prefix}/share/doc/aida
41}