1 | Index: dports/python/py-weasyprint/Portfile |
---|
2 | =================================================================== |
---|
3 | --- dports/python/py-weasyprint/Portfile (Revision 0) |
---|
4 | +++ dports/python/py-weasyprint/Portfile (Arbeitskopie) |
---|
5 | @@ -0,0 +1,51 @@ |
---|
6 | +# $Id: $ |
---|
7 | +# -*- 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 |
---|
8 | + |
---|
9 | +PortSystem 1.0 |
---|
10 | +PortGroup python 1.0 |
---|
11 | + |
---|
12 | +name py-weasyprint |
---|
13 | +set my_name WeasyPrint |
---|
14 | +version 0.9 |
---|
15 | +set branch [join [lrange [split ${version} .] 0 1] .] |
---|
16 | +categories python pdf |
---|
17 | +license BSD |
---|
18 | +maintainers openmaintainer |
---|
19 | +platforms darwin |
---|
20 | +description A Python HTML to PDF converter |
---|
21 | + |
---|
22 | +long_description \ |
---|
23 | + WeasyPrint is a visual rendering engine for HTML and CSS that can export \ |
---|
24 | + to PDF. It aims to support web standards for printing. |
---|
25 | + |
---|
26 | +homepage http://weasyprint.org/ |
---|
27 | +master_sites http://pypi.python.org/packages/source/W/WeasyPrint |
---|
28 | +distname ${my_name}-${version} |
---|
29 | + |
---|
30 | +checksums sha256 6c93c9f41f21b7bc09205d04d0c16f5aab09993035f4e853f9e13d0e86366c4b \ |
---|
31 | + rmd160 35a100dd417d584cbebb2faf64a432d1f5be3d8c |
---|
32 | + |
---|
33 | +python.versions 27 |
---|
34 | + |
---|
35 | +if {$subport != $name} { |
---|
36 | + depends_build-append port:pkgconfig |
---|
37 | + depends_lib-append port:py${python.version}-gobject3 \ |
---|
38 | + port:pango \ |
---|
39 | + port:py${python.version}-lxml \ |
---|
40 | + port:ImageMagick |
---|
41 | + |
---|
42 | + build.type python |
---|
43 | + |
---|
44 | + destroot.cmd ${build.cmd} |
---|
45 | + destroot.target install |
---|
46 | + |
---|
47 | + test.run yes |
---|
48 | + test.env PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*] |
---|
49 | + test.target check |
---|
50 | + |
---|
51 | + |
---|
52 | +} else { |
---|
53 | + livecheck.type regex |
---|
54 | + livecheck.url http://pypi.python.org/packages/source/W/${my_name}/${branch}/ |
---|
55 | + livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)} |
---|
56 | +} |
---|