Ticket #22230: Portfile

File Portfile, 1.8 KB (added by howarth@…, 15 years ago)

remove unnecessary mkdirs

Line 
1# -*- 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
2# $Id$
3PortSystem          1.0
4name                relax
5version             1.3.4
6categories          science
7maintainers         bromo.med.uc.edu:howarth
8description         relax
9long_description    Protein dynamics by NMR relax. data analysis
10homepage            http://www.nmr-relax.com/
11platforms           darwin
12master_sites        http://download.gna.org/relax/
13distfiles           ${name}-${version}.src.tar.bz2
14checksums           md5     421d92a998bfd359678d689e2f65fc62 \
15                    sha1    fb5a7b1533b10d358c141cfbf0a267deb502affb \
16                    rmd160  2ba248402c3e0e0efaf00ac61696965ff316a0d0
17use_bzip2           yes
18use_parallel_build  no
19use_configure       no
20PortGroup           python26 1.0
21depends_lib         port:scons port:py26-minfx port:py26-scientific
22patchfiles          relax.patch sample.patch
23post-patch {
24    reinplace  "s|@DEST_ROOT@|${destroot}|g" ${worksrcpath}/scons/install.py \
25                                             ${worksrcpath}/sconstruct
26    reinplace  "s|@PREFIX@|${prefix}|g" ${worksrcpath}/scons/install.py \
27                                        ${worksrcpath}/sconstruct
28}
29build {
30    system "cd ${worksrcpath} && ${python.bin} ${prefix}/bin/scons"
31}
32destroot {
33    system "cd ${worksrcpath}; ${python.bin} ${prefix}/bin/scons install"
34    reinplace  "s|${destroot}${prefix}|${prefix}|g" ${destroot}${prefix}/lib/relax/sconstruct
35    ln -sf ${prefix}/lib/relax/relax ${destroot}${prefix}/bin/relax
36    file delete -force ${destroot}${prefix}/lib/relax/version.pyc
37    system "rm -f ${destroot}${prefix}/lib/relax/scons/*.pyc"
38}
39post-destroot {
40    system "${python.bin} -O ${python.libdir}/compileall.py -d ${prefix}/lib/relax ${destroot}${prefix}/lib/relax"
41}