Ticket #23238: Portfile.3

File Portfile.3, 2.2 KB (added by cristiano.fontana@…, 14 years ago)
Line 
1# $Id$
2
3PortSystem          1.0
4
5name                iAIDA
6version             1.0.17
7categories          science
8maintainers         pd.infn.it:cristiano.fontana
9license             LGPLv3
10description         An implementation in C++ of the AIDA Abstract Interfaces for Data Analysis
11long_description    iAIDA is an implementation in C++ of the AIDA Abstract Interfaces for Data Analysis, a set of interfaces designed for data analysis.
12homepage            http://iaida.dynalias.net/
13platforms           darwin
14extract.suffix      .tgz
15master_sites        sourceforge:iaida
16
17checksums           md5 a352ea32ad61678cda6c94e299f94ca3
18
19depends_lib         port:aida \
20                    port:grace \
21                    port:boost \
22                    port:zlib
23
24patchfiles          patch-configure.diff
25configure.args      --with-grace=${prefix} --with-boost=${prefix} --with-aida=${prefix}/include
26
27post-patch {
28    reinplace "s:@PREFIX_DIR@:${destroot}${prefix}:g" ${worksrcpath}/Makefile.in
29    reinplace "s:@PREFIX_DIR@:${destroot}${prefix}:g" ${worksrcpath}/examples/Makefile.in
30    reinplace "s:@PREFIX_DIR@:${destroot}${prefix}:g" ${worksrcpath}/include/Makefile.in
31    reinplace "s:@PREFIX_DIR@:${destroot}${prefix}:g" ${worksrcpath}/src/Makefile.in
32    reinplace "s:@PREFIX_DIR@:${destroot}${prefix}:g" ${worksrcpath}/tests/Makefile.in
33}
34
35post-build {
36    system "cd ${worksrcpath}/examples && make"
37    system "cd ${worksrcpath}/tests && make"
38
39    foreach file "${worksrcpath}/examples/Makefile ${worksrcpath}/examples/Makefile.in ${worksrcpath}/tests/Makefile ${worksrcpath}/tests/Makefile.in ${worksrcpath}/tests/runTests.py ${worksrcpath}/tests/runTests.py.in" {
40        reinplace "s:../bin/aida-config:aida-config:g" ${file}
41    }
42
43    foreach file "${worksrcpath}/tests/runTests.py ${worksrcpath}/tests/runTests.py.in" {
44        reinplace "s:logFile = entry+'.log':logFile = '/tmp/'+entry+'.log':g" ${file}
45    }
46}
47
48post-destroot {
49    xinstall -d ${destroot}/${prefix}/share/iAIDA/
50
51    file copy ${worksrcpath}/examples ${destroot}/${prefix}/share/iAIDA/
52    file copy ${worksrcpath}/tests ${destroot}/${prefix}/share/iAIDA/
53
54    file copy ${worksrcpath}/src ${destroot}/${prefix}/src/
55    file rename ${destroot}/${prefix}/src/src ${destroot}/${prefix}/src/iAIDA
56}