diff --git math/gringo/Portfile math/gringo/Portfile
index 873d810..7bd6376 100644
|
|
PortSystem 1.0 |
4 | 4 | PortGroup cxx11 1.0 |
5 | 5 | |
6 | 6 | name gringo |
7 | | version 4.4.0 |
| 7 | version 4.5.4 |
8 | 8 | categories math devel |
9 | 9 | platforms darwin |
10 | 10 | maintainers mww openmaintainer |
… |
… |
master_sites sourceforge:project/potassco/gringo/${version}/ |
20 | 20 | |
21 | 21 | distname ${name}-${version}-source |
22 | 22 | |
23 | | checksums rmd160 4619eb5814a54bd8f25b1d824ebf35a5c165d905 \ |
24 | | sha256 49b2ddc78f568a12530c780a29bb7f57b656556f0840c5e9ada4f207913dde5e |
| 23 | checksums rmd160 3a8c7615a4649958e67a93a44d8917df6b032868 \ |
| 24 | sha256 81f8bbbb1b06236778028e5f1b8627ee38a712ec708724112fb08aecf9bc649a |
25 | 25 | |
26 | | depends_build port:scons port:re2c port:bison |
27 | | depends_lib port:boost |
| 26 | depends_build port:scons port:re2c port:bison port:pkgconfig |
| 27 | depends_lib port:boost port:python27 port:lua |
28 | 28 | |
29 | 29 | worksrcdir ${name}-${version}-source |
30 | 30 | |
… |
… |
use_parallel_build no |
33 | 33 | |
34 | 34 | variant universal {} |
35 | 35 | |
| 36 | set python.branch 2.7 |
| 37 | set python.pkgd ${frameworks_dir}/Python.framework/Versions/${python.branch}/lib/python${python.branch}/site-packages |
| 38 | set lua.version 5.3 |
| 39 | set lua.moddir ${prefix}/lib/lua/${lua.version} |
| 40 | |
36 | 41 | build.cmd ${prefix}/bin/scons |
37 | | build.target gringo clingo |
| 42 | build.target gringo clingo reify pyclingo luaclingo |
38 | 43 | build.args --build-dir=release \ |
39 | | CXX="${configure.cxx} [get_canonical_archflags cxx]" |
| 44 | CXX="${configure.cxx} [get_canonical_archflags cxx]" \ |
| 45 | PYTHON_CONFIG="${prefix}/bin/python${python.branch}-config" |
40 | 46 | |
41 | 47 | destroot { |
42 | 48 | xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name} \ |
| 49 | ${destroot}${prefix}/bin \ |
| 50 | ${destroot}${python.pkgd} \ |
| 51 | ${destroot}${lua.moddir} |
| 52 | xinstall -m 0755 -W ${worksrcpath}/build/release clingo gringo reify \ |
43 | 53 | ${destroot}${prefix}/bin |
44 | | xinstall -m 0755 -W ${worksrcpath}/build/release clingo gringo \ |
45 | | ${destroot}${prefix}/bin |
46 | | xinstall -m 644 -W ${worksrcpath} CHANGES README COPYING NOTES INSTALL \ |
| 54 | xinstall -m 0755 -W ${worksrcpath}/build/release/python gringo.so \ |
| 55 | ${destroot}${python.pkgd} |
| 56 | xinstall -m 0755 -W ${worksrcpath}/build/release/lua gringo.so \ |
| 57 | ${destroot}${lua.moddir} |
| 58 | xinstall -m 644 -W ${worksrcpath} CHANGES README COPYING INSTALL \ |
47 | 59 | ${destroot}${prefix}/share/doc/${name} |
48 | 60 | } |
49 | 61 | |