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$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python 1.0 |
---|
6 | |
---|
7 | name py-swiginac |
---|
8 | version 1.5.1.1 |
---|
9 | platforms darwin |
---|
10 | license GPL-2 |
---|
11 | maintainers gmail.com:mark.brethen |
---|
12 | |
---|
13 | description interface to GiNaC providing Python with symbolic mathematics |
---|
14 | long_description ${description} |
---|
15 | |
---|
16 | homepage \ |
---|
17 | https://web.archive.org/web/20140429044739/http://swiginac.berlios.de/ |
---|
18 | master_sites sourceforge:swiginac.berlios |
---|
19 | distname swiginac-${version} |
---|
20 | extract.suffix .tgz |
---|
21 | checksums \ |
---|
22 | sha256 e019b40cac29b070e72432b97cc857682da416e55c26bde412bfaa7513893eb5 \ |
---|
23 | rmd160 9b473942a8a4b010ddd4d51ec19b84d3f83a2c5c |
---|
24 | |
---|
25 | python.versions 27 |
---|
26 | |
---|
27 | if {${name} ne ${subport}} { |
---|
28 | patchfiles patch-setup.py.diff |
---|
29 | |
---|
30 | depends_build-append \ |
---|
31 | port:pkgconfig \ |
---|
32 | port:py${python.version}-setuptools |
---|
33 | |
---|
34 | depends_lib-append port:GiNaC \ |
---|
35 | port:swig |
---|
36 | |
---|
37 | post-destroot { |
---|
38 | set docswiginacdir \ |
---|
39 | ${destroot}${prefix}/share/doc/py${python.version}-swiginac |
---|
40 | set docdir ${docswiginacdir}/doc |
---|
41 | set examplesdir ${docdir}/examples |
---|
42 | |
---|
43 | xinstall -d ${docswiginacdir} ${docdir} ${examplesdir} |
---|
44 | |
---|
45 | xinstall -m 644 ${worksrcpath}/ChangeLog ${docswiginacdir} |
---|
46 | xinstall -m 644 ${worksrcpath}/README.txt ${docswiginacdir} |
---|
47 | xinstall -m 644 {*}[glob ${worksrcpath}/doc/swiginac*.*] ${docdir} |
---|
48 | xinstall -m 644 ${worksrcpath}/doc/html4css1.css ${docdir} |
---|
49 | xinstall -m 644 {*}[glob ${worksrcpath}/doc/examples/*.py] \ |
---|
50 | ${examplesdir} |
---|
51 | } |
---|
52 | |
---|
53 | livecheck.type none |
---|
54 | } else { |
---|
55 | livecheck.type regex |
---|
56 | livecheck.url ${master_sites} |
---|
57 | } |
---|