Files
macports-ports/python/py-tinycss/Portfile
T
Joshua Root f31289caff python/py-[r-z]*: set github.tarball_from explicitly
In preparation for changing the default.
2025-01-27 04:26:35 +11:00

45 lines
1.7 KiB
Tcl

# -*- 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
PortSystem 1.0
PortGroup github 1.0
PortGroup python 1.0
github.setup Kozea tinycss 0.4 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision 0
name py-tinycss
categories-append graphics
license BSD
maintainers nomaintainer
description CSS parser for Python
long_description tinycss is a complete yet simple CSS parser for Python. It supports the full syntax and error handling \
for CSS 2.1 as well as some CSS 3 modules: CSS Color 3, CSS Fonts 3, CSS Paged Media 3. It is designed \
to be easy to extend for new CSS modules and syntax, and integrates well with cssselect for Selectors 3 \
support.
homepage https://tinycss.readthedocs.io
checksums rmd160 bbfe212d317350f8e877ce898805ae4509f738c5 \
sha256 fd4828775c8711c159c60323bbd8bdbe3c38a1ea95f615c5158294a8923080f4 \
size 45412
python.versions 39
if {${name} ne ${subport}} {
depends_build-append \
port:py${python.version}-cython \
port:py${python.version}-pytest-runner
post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} README.rst CHANGES \
LICENSE ${destroot}${docdir}
}
}