Skip to content
Permalink
Browse files

py-speaklater: fix livecheck, use python.rootname

  • Loading branch information
reneeotten committed Apr 9, 2019
1 parent a8ee7b3 commit 508dab2480257bc3826f097c52a46180ba6be201
Showing with 4 additions and 10 deletions.
  1. +4 −10 python/py-speaklater/Portfile
@@ -3,11 +3,9 @@
PortSystem 1.0
PortGroup python 1.0

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

name py-${_name}
name py-speaklater
version 1.3
revision 0
categories-append textproc
platforms darwin
supported_archs noarch
@@ -18,18 +16,14 @@ description lazy strings for translations
long_description ${description}

homepage https://github.com/mitsuhiko/speaklater
master_sites pypi:${_n}/${_name}
distname ${_name}-${version}
master_sites pypi:[string index ${python.rootname} 0]/${python.rootname}
distname ${python.rootname}-${version}

checksums rmd160 70c03aa32233a9f4a6dd352c4dca1fe0d1888ffe \
sha256 59fea336d0eed38c1f0bf3181ee1222d0ef45f3a9dd34ebe65e6bfffdd6a65a9

python.versions 27 34 35 36

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

0 comments on commit 508dab2

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