Skip to content
Permalink
Browse files

py-tpg: update to 3.2.2

  • Loading branch information
reneeotten committed Apr 15, 2019
1 parent 2bb7e80 commit f57cb1e70cff5ac4ba45c1e2d76649ff1934f071
Showing with 26 additions and 13 deletions.
  1. +26 −13 python/py-tpg/Portfile
@@ -4,7 +4,8 @@ PortSystem 1.0
PortGroup python 1.0

name py-tpg
version 3.0.4
version 3.2.2
revision 0
license LGPL-2.1+
platforms darwin freebsd
supported_archs noarch
@@ -22,23 +23,35 @@ long_description Toy Parser Generator is a lexical and syntactic parser \
can also add Python code directly into grammar rules \
and build abstract syntax trees while parsing.

homepage http://cdsoft.fr/tpg/
master_sites ${homepage} http://distfiles.macports.org/python
homepage https://cdsoft.fr/tpg/
master_sites ${homepage}
distname TPG-${version}
checksums md5 050352f0c70f627ab843a8b3eae25552
checksums rmd160 e254a462fb390af038b08b251e4ca4d0142b347f \
sha256 52e61232b09df90afa7d26555526464ce4d2b194d9fc505298c75036b1442923 \
size 379868

python.versions 27

if {${name} ne ${subport}} {
# fix permissions
post-extract {
fs-traverse item ${worksrcpath} {
if {[file isdirectory ${item}]} {
file attributes ${item} -permissions a+rx
} elseif {[file isfile ${item}]} {
file attributes ${item} -permissions a+r
}
}
}

post-destroot {
xinstall -m 644 -W ${worksrcpath}/doc cmmi10-19.png cmsy10-21.png \
cmtt10-20.png tpg.css tpg.html tpg11.html tpg13.html \
tpg14.html tpg19.html tpg6.html tpg7.html tpg8.html tpg9.html \
tpgch1.html tpgch10.html tpgch11.html tpgch2.html tpgch3.html \
tpgch4.html tpgch5.html tpgch6.html tpgch7.html tpgch8.html \
tpgch9.html tpgli1.html tpgli2.html tpgpa1.html tpgpa2.html \
tpgpa3.html ${destroot}${prefix}/share/doc/${subport}
xinstall -m 644 -W ${worksrcpath} ChangeLog License.txt README THANKS \
${destroot}${prefix}/share/doc/${subport}
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} ChangeLog License.txt \
README THANKS ${destroot}${docdir}
}

livecheck.type none
} else {
livecheck.regex TPG-(\[0-9.\]+)${extract.suffix}
}

0 comments on commit f57cb1e

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