|
|
@@ -3,39 +3,40 @@ |
|
|
PortSystem 1.0 |
|
|
PortGroup python 1.0 |
|
|
|
|
|
set real_name breadability |
|
|
name py-${real_name} |
|
|
name py-breadability |
|
|
version 0.1.20 |
|
|
revision 0 |
|
|
categories-append textproc |
|
|
platforms darwin |
|
|
supported_archs noarch |
|
|
license BSD |
|
|
maintainers nomaintainer |
|
|
|
|
|
description Port of Readability HTML parser in Python |
|
|
|
|
|
long_description ${description} |
|
|
|
|
|
homepage https://github.com/bookieio/${real_name} |
|
|
master_sites pypi:b/${real_name}/ |
|
|
distname ${real_name}-${version} |
|
|
homepage https://github.com/bookieio/${python.rootname} |
|
|
master_sites pypi:b/${python.rootname}/ |
|
|
distname ${python.rootname}-${version} |
|
|
|
|
|
checksums rmd160 8d862c9606f2bee49df7eb8007ba6878006c8963 \ |
|
|
sha256 f1a7fdad1e58e295df80954879143824c706bbfb1826cdf4b1d15de1a86afe99 |
|
|
|
|
|
python.versions 27 34 35 36 |
|
|
python.versions 27 34 35 36 37 |
|
|
|
|
|
if {${name} ne ${subport}} { |
|
|
depends_build-append \ |
|
|
port:py${python.version}-setuptools |
|
|
|
|
|
depends_lib-append port:py${python.version}-docopt \ |
|
|
port:py${python.version}-chardet \ |
|
|
port:py${python.version}-lxml |
|
|
|
|
|
livecheck.type none |
|
|
} else { |
|
|
livecheck.type regex |
|
|
livecheck.url https://pypi.python.org/pypi/${real_name} |
|
|
livecheck.regex "${real_name}-(\\d+(?:\\.\\d+)*(-p\\d+)?)${extract.suffix}" |
|
|
depends_lib-append \ |
|
|
port:py${python.version}-chardet \ |
|
|
port:py${python.version}-docopt \ |
|
|
port:py${python.version}-lxml \ |
|
|
port:py${python.version}-setuptools |
|
|
|
|
|
post-destroot { |
|
|
set docdir ${prefix}/share/doc/${subport} |
|
|
xinstall -d ${destroot}${docdir} |
|
|
xinstall -m 0644 -W ${worksrcpath} README.rst LICENSE.rst \ |
|
|
AUTHORS.txt CHANGELOG.rst ${destroot}${docdir} |
|
|
} |
|
|
|
|
|
livecheck.type none |
|
|
} |