source: trunk/dports/python/py-polygon/Portfile

Last change on this file was 142215, checked in by stromnov@…, 2 years ago

py-polygon: update to version 3.0.8

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 142215 2015-11-06 22:11:30Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-polygon
8version             3.0.8
9revision            0
10categories-append   devel math
11platforms           darwin
12license             LGPL Noncommercial
13
14python.versions     27 34 35
15
16maintainers         stromnov openmaintainer
17
18description         Python bindings for General Polygon Clipping Library
19
20long_description    \
21    Polygon is a python package that simplifies the handling of polygons \
22    in 2D. It contains Python bindings for gpc, the excellent General \
23    Polygon Clipping Library by Alan Murta and some extensions written \
24    in C and pure Python.
25
26homepage            http://www.j-raedler.de/projects/polygon
27master_sites        pypi:P/Polygon3
28
29distname            Polygon3-${version}
30
31checksums           rmd160  b3604e60d7f9b27eee5b62522568be59e3011c3f \
32                    sha256  382aecaf1b550134aa71cc9c0f880a244e0ac5273e05bf898f5a6cde5bff9e2c
33
34if {${name} ne ${subport}} {
35    if {${python.version} < 30} {
36        version             2.0.8
37        revision            0
38        master_sites        pypi:P/Polygon2
39        distname            Polygon2-${version}
40        checksums           rmd160  59352a3a4c1c1ba556282864b9d967479ebe9d18 \
41                            sha256  4ae3b027483daf1e967a96bceca18481d57cfa30480c579c3bac32f5c3fe9c84
42    }
43
44    patchfiles-append   patch-setup.py.diff
45
46    variant numpy description {Build with NumPy support} {
47        depends_lib-append  port:py${python.version}-numpy
48        patchfiles-delete   patch-setup.py.diff
49    }
50
51    post-destroot {
52        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
53        xinstall -m 644 -W ${worksrcpath}/doc \
54            Examples.py Polygon.txt Polygon.pdf testpoly.gpf \
55            ${destroot}${prefix}/share/doc/${subport}
56    }
57
58    livecheck.type      none
59} else {
60    livecheck.type      pypi
61    livecheck.name      Polygon3
62}
Note: See TracBrowser for help on using the repository browser.