Skip to content
Permalink
Browse files

py-whoosh: update to 2.7.4

- fix livecheck, use python.rootname
- install files in post-destroot
  • Loading branch information
reneeotten committed Apr 18, 2019
1 parent ae48cd6 commit ade6c12ac5b702daede528ef83d8fe6ef91eec34
Showing with 17 additions and 15 deletions.
  1. +17 −15 python/py-whoosh/Portfile
@@ -3,12 +3,10 @@
PortSystem 1.0
PortGroup python 1.0

set _name Whoosh
set _n [string index ${_name} 0]

name py-whoosh
version 2.5.7
revision 1
python.rootname Whoosh
version 2.7.4
revision 0
platforms darwin
supported_archs noarch
license BSD
@@ -22,21 +20,25 @@ long_description \
Whoosh works can be extended or replaced to meet your needs exactly.

homepage https://bitbucket.org/mchaput/whoosh/wiki/Home
master_sites pypi:${_n}/${_name}
distname ${_name}-${version}
master_sites pypi:[string index ${python.rootname} 0]/${python.rootname}
distname ${python.rootname}-${version}

checksums md5 9d35a7498d5c7af8fe162f63719f4eeb \
rmd160 e5bd168af8cc5cd601af9d3aff6c6cb85c38d61c \
sha256 450d3b76c45dd26ceda101ebafee181c7ab377e8ea37ff5aaca1be79227f73fa
checksums rmd160 f60b9fe6277f4b9a7aa48e3c7df2d6fff6390a36 \
sha256 7ca5633dbfa9e0e0fa400d3151a8a0c4bec53bd2ecedc0a67705b17565c31a83 \
size 968741

python.versions 27 35 36 37

if {${name} ne ${subport}} {
depends_build port:py${python.version}-setuptools
depends_build-append \
port:py${python.version}-setuptools

post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} README.txt LICENSE.txt \
${destroot}${docdir}
}

livecheck.type none
} else {
livecheck.type regex
livecheck.url [lindex ${master_sites} 0]
livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
}

0 comments on commit ade6c12

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