You've already forked macports-ports
mirror of
https://github.com/encounter/macports-ports.git
synced 2026-03-30 11:29:27 -07:00
ecd059395f
The zip version of the distfile was not mirrored after the subport was
changed to use it in 5747864, because no build was scheduled, because
the version did not change. This causes fetch problems for older
systems, and there's no reason to mirror the distfile in two formats
anyway.
Also make better use of portgroup defaults.
Fixes: https://trac.macports.org/ticket/62317
73 lines
2.6 KiB
Tcl
73 lines
2.6 KiB
Tcl
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
|
|
|
PortSystem 1.0
|
|
PortGroup python 1.0
|
|
|
|
name py-dnspython
|
|
version 2.1.0
|
|
categories-append net
|
|
license ISC
|
|
platforms darwin
|
|
supported_archs noarch
|
|
maintainers nomaintainer
|
|
|
|
description DNS toolkit for Python
|
|
long_description \
|
|
dnspython is a DNS toolkit for Python. It supports almost all \
|
|
record types. It can be used for queries, zone transfers, and \
|
|
dynamic updates. It supports TSIG authenticated messages and EDNS0.
|
|
|
|
homepage http://www.dnspython.org/
|
|
|
|
python.versions 27 36 37 38 39
|
|
|
|
checksums rmd160 788eefa23e3ec734bfd02910ecab2cff534bb117 \
|
|
sha256 e4a87f0b573201a0f3727fa18a516b055fd1107e0e5477cded4a2de497df1dd4 \
|
|
size 389021
|
|
|
|
if {${name} ne ${subport}} {
|
|
depends_build-append port:py${python.version}-setuptools
|
|
|
|
depends_lib-append port:py${python.version}-cryptography \
|
|
port:py${python.version}-idna \
|
|
port:py${python.version}-requests \
|
|
port:py${python.version}-requests-toolbelt \
|
|
port:py${python.version}-sniffio \
|
|
port:py${python.version}-trio
|
|
|
|
if {${python.version} eq 27} {
|
|
version 1.16.0
|
|
revision 0
|
|
master_sites ${homepage}kits/${version}
|
|
|
|
checksums rmd160 c3662f85998d51b437a3eaa0f5a04c3b0d61fd69 \
|
|
sha256 4bf5c5c12a4478ee7860ab176659cf64c4899ee76752d826b082f8af723c5cf9 \
|
|
size 150524
|
|
|
|
depends_lib-delete port:py${python.version}-sniffio \
|
|
port:py${python.version}-trio
|
|
} else {
|
|
use_zip yes
|
|
|
|
depends_test-append port:py${python.version}-pytest
|
|
|
|
test.run yes
|
|
test.dir ${build.dir}/tests
|
|
test.cmd python${python.branch}
|
|
test.target utest.py
|
|
test.env PYTHONPATH=${worksrcpath}/build/lib
|
|
}
|
|
}
|
|
|
|
post-destroot {
|
|
if {${name} ne ${subport}} {
|
|
xinstall -d -m 755 ${destroot}${prefix}/share/doc/${subport}/examples
|
|
xinstall -m 644 -W ${worksrcpath} LICENSE README.md \
|
|
${destroot}${prefix}/share/doc/${subport}
|
|
xinstall -m 644 -W ${worksrcpath}/examples ddns.py e164.py \
|
|
mx.py name.py query_specific.py receive_notify.py reverse.py \
|
|
reverse_name.py xfr.py zonediff.py \
|
|
${destroot}${prefix}/share/doc/${subport}/examples
|
|
}
|
|
}
|