Skip to content
Permalink
Browse files

py-yenc: update to 0.4.0

- switch to PyPI, use default livecheck
- update license
- enable tests
- deprecated
  • Loading branch information
reneeotten committed Apr 18, 2019
1 parent 3f7b76a commit ea6628f5d453f0a6ce93eb5bb526b37dd9d5fbc2
@@ -2,38 +2,48 @@

PortSystem 1.0
PortGroup python 1.0
PortGroup deprecated 1.0

name py-yenc
version 0.2
revision 1
version 0.4.0
revision 0
platforms darwin
license GPL-2
license LGPL-2.1+
maintainers nomaintainer
description provides raw yEnc encoding/decoding with crc32 calculation
long_description py-yenc provides (only) raw yEnc encoding/decoding \
with builitin crc32 calculation.

homepage http://www.golug.it/yenc.html
master_sites http://www.golug.it/pub/yenc/
homepage https://www.golug.it/yenc.html
master_sites pypi:[string index ${python.rootname} 0]/${python.rootname}
distname yenc-${version}
checksums md5 2f1162447da3a25feb321e6776bdbb0a
checksums rmd160 e7d67c29e90594500927dc5b8da19a972515ddd5 \
sha256 2c24a249d627af8ce1ca5a4b5bd237a34b6c859f71f55f0b09ed369f749fd4d9 \
size 64237

deprecated.upstream_support no

python.versions 27

if {${name} ne ${subport}} {
patchfiles patch-yenc.c.diff \
patch-yenc.h.diff \
patch-yenc_wrap.c.diff
depends_build-append \
port:py${python.version}-setuptools

pre-test {
test.env PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*]
}
test.run yes
test.cmd ${python.bin} test/test.py
test.target

post-destroot {
xinstall -m 644 -W ${worksrcpath} CHANGES COPYING README TODO \
${destroot}${prefix}/share/doc/${subport}
xinstall -m 644 -W ${worksrcpath}/examples logo.gif logo.yenc \
ydecode.py yencode.py \
${destroot}${prefix}/share/doc/${subport}/examples
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} CHANGES COPYING README TODO \
${destroot}${docdir}
xinstall -m 0644 {*}[glob ${worksrcpath}/examples/*] \
${destroot}${docdir}/examples
}

livecheck.type none
} else {
livecheck.type pypi
}

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit ea6628f

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