Skip to content
Permalink
Browse files

py-breadability: add py37 subport

- fix py-setuptools dependency type
- use default PyPI livecheck
- install files in post-destroot
  • Loading branch information
reneeotten authored and cjones051073 committed Apr 11, 2019
1 parent accc80a commit 6d4572b6597cf534a3901e4a48fddea8f94da5ae
Showing with 20 additions and 19 deletions.
  1. +20 −19 python/py-breadability/Portfile
@@ -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
}

0 comments on commit 6d4572b

Please sign in to comment.
You can’t perform that action at this time.