Commits
Sean Farley authored 793de4a60b0
1 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 2 | |
3 3 | PortSystem 1.0 |
4 4 | PortGroup python 1.0 |
5 5 | PortGroup bitbucket 1.0 |
6 6 | |
7 - | bitbucket.setup fenics-project ffc 2016.1.0 ffc- |
8 - | revision 2 |
7 + | bitbucket.setup fenics-project ffc 2017.2.0 |
8 + | revision 0 |
9 9 | name py-ffc |
10 10 | |
11 11 | categories-append math science |
12 12 | license LGPL-3+ |
13 13 | platforms darwin |
14 14 | supported_archs noarch |
15 15 | maintainers sean openmaintainer |
16 16 | |
17 17 | description FEniCS Form Compiler |
18 18 | long_description FFC works as a compiler for multilinear forms by generating \ |
19 19 | code (C or C++) for the evaluation of a multilinear form given \ |
20 20 | in mathematical notation. This new approach to form evaluation \ |
21 21 | makes it possible to combine generality with efficiency, the \ |
22 22 | form can be given in mathematical notation and the generated \ |
23 23 | code is as efficient as hand-optimized code. |
24 24 | |
25 - | checksums rmd160 187cff1cbc258686d8509edf5c152296dca7bbc5 \ |
26 - | sha256 f1023bd18b41fa6184770bdf379b205c6357ef23b18c7a3e50773fd706abbd62 |
25 + | checksums rmd160 529e8b202dfe892b35e9b63a4ce276e5c97063ee \ |
26 + | sha256 f0a742e1195cf59eb10f1cce5680484bdf735777caac9ab460849659f11aa067 \ |
27 + | size 1377601 |
27 28 | |
28 - | python.versions 27 |
29 + | python.versions 36 |
29 30 | python.link_binaries_suffix |
30 31 | |
31 32 | configure.cxxflags-append -std=c++11 |
32 33 | |
33 34 | if {${subport} ne ${name}} { |
34 35 | depends_lib port:py${python.version}-fiat \ |
35 36 | port:py${python.version}-ufl \ |
36 37 | port:py${python.version}-instant \ |
38 + | port:py${python.version}-dijitso \ |
37 39 | port:swig-python \ |
38 40 | port:boost |
39 41 | |
40 42 | pre-build { |
41 43 | build.env-append CXXFLAGS="${configure.cxxflags}" |
42 44 | } |
43 45 | |
44 46 | pre-destroot { |
45 47 | destroot.env-append CXXFLAGS="${configure.cxxflags}" |
46 48 | } |
47 49 | |
48 50 | post-fetch { |
49 51 | if {![file exists ${python.pkgd}/boost/mpi.so]} { |
50 52 | return -code error "${name} needs boost installed with a mpi variant " |
51 53 | } |
52 54 | } |
53 55 | |
54 - | post-destroot { |
55 - | move {*}[glob ${destroot}${destroot}/include/*.h] ${destroot}${prefix}/include |
56 - | move {*}[glob ${destroot}${destroot}/lib/pkgconfig/*.pc] ${destroot}${prefix}/lib/pkgconfig |
57 - | move ${destroot}${destroot}/share/ufc/ ${destroot}${prefix}/share/ufc |
58 - | reinplace -W ${destroot}${prefix}/lib/pkgconfig "s,${destroot},${prefix},g" ufc-1.pc |
59 - | reinplace -W ${destroot}${prefix}/share/ufc "s,${destroot},${prefix},g" UFCConfig.cmake |
60 - | reinplace -W ${destroot}${python.pkgd}/ffc "s,${destroot},${prefix},g" ufc_include.py |
61 - | delete ${destroot}${python.pkgd}/ffc/ufc_include.pyc |
62 - | system -W ${destroot}${python.pkgd}/ffc "${python.bin} -m compileall ufc_include.py" |
63 - | } |
64 - | |
65 56 | livecheck.type none |
66 57 | } |