source: trunk/dports/science/yorick-yao/Portfile

Last change on this file was 127625, checked in by thibaut@…, 3 years ago

yorick-yao: update to 5.4.0

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
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: Portfile 127625 2014-10-30 22:40:33Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7set uname           yao
8github.setup        frigaut ${uname} 5.4.0 v
9license             GPL-2+
10name                yorick-${uname}
11categories          science yorick
12platforms           darwin
13maintainers         thibaut openmaintainer
14description         A Yorick-based adaptive optics system simulator
15long_description    Yao is a monte-carlo simulation package for adaptive \
16                    optics. It can be used stand-alone through a GTK-based \
17                    integrated graphical user interface or as a Yorick \
18                    language extension.
19homepage            http://maumae.net/yorick/doc/plugins.php
20
21checksums           rmd160  367af012dfca0b98a556f1ab5793e2ba735d17f6 \
22                    sha256  cd0e3bebc2027acab1beb8dec38437430db59769af37c27504504e1fe7f102ef
23
24depends_lib-append  path:bin/yorick:yorick \
25                    port:yorick-imutil \
26                    port:fftw-3-single
27
28depends_run         port:yorick-yutils \
29                    port:yorick-soy \
30                    port:yorick-svipc \
31                    port:py27-pygtk
32
33universal_variant   no
34
35post-patch {
36    reinplace "s|#!/usr/bin/env python2|#!${prefix}/bin/python2.7|" \
37        ${worksrcpath}/${uname}.py
38}
39
40configure.cmd       ${prefix}/bin/yorick
41configure.pre_args
42configure.args      -batch make.i
43
44build.args          PKG_CFLAGS="${configure.cppflags}" \
45                    PKG_DEPLIBS="-L${prefix}/lib/yorick/lib -limutil -lfftw3f"
46
47post-destroot {
48    xinstall -d ${destroot}${prefix}/lib/yorick/packages/installed/
49    xinstall -m 644 ${worksrcpath}/${uname}.info \
50        ${destroot}${prefix}/lib/yorick/packages/installed/
51    xinstall -m 644 ${worksrcpath}/doc/${uname}.1 \
52        ${destroot}${prefix}/share/man/man1/
53    ln -s ${prefix}/lib/yorick/bin/${uname} ${destroot}${prefix}/bin/
54    fs-traverse x ${destroot}${prefix}/lib/yorick/share/${uname}/doc {
55        file attributes ${x} -permissions a+r
56    }
57}
Note: See TracBrowser for help on using the repository browser.