You've already forked macports-ports
mirror of
https://github.com/encounter/macports-ports.git
synced 2026-03-30 11:29:27 -07:00
69 lines
2.5 KiB
Tcl
69 lines
2.5 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
|
||
PortGroup github 1.0
|
||
|
||
github.setup pyvisa pyvisa 1.10.1
|
||
revision 0
|
||
name py-visa
|
||
categories-append science
|
||
platforms darwin
|
||
supported_archs noarch
|
||
license MIT
|
||
maintainers nomaintainer
|
||
|
||
description Python binding to VISA instrument protocol
|
||
long_description PyVISA allows dialog between a computer and\
|
||
various engineering instruments such as oscilloscopes,\
|
||
spectrum analyzers, waveform generators, etc. using\
|
||
the VISA Framework of National Instruments, which must be\
|
||
installed independently.\
|
||
\nWARNING: VISA Frameworks prior to 14.0, (released 2014),\
|
||
are 32-bit only, so to be able to use py-visa on a 64-bit\
|
||
machine, you MUST\
|
||
\nEITHER\
|
||
\n\tinstall a 64-bit-compatible VISA version\
|
||
\nOR\
|
||
\n\tinstall a universal Python and execute python in\
|
||
32-bit mode with ‘arch -i386’.
|
||
|
||
checksums rmd160 b7440be0a07bde528d0677c69dd6b50c5d8e2fd5 \
|
||
sha256 dfcb9b94313cc0c4ad0f021c19431d6ac4e2b50e4f07fd482f93c4432d9990d4 \
|
||
size 164600
|
||
|
||
python.versions 27 36 37 38
|
||
|
||
if {${name} ne ${subport}} {
|
||
depends_lib-append \
|
||
port:py${python.version}-setuptools
|
||
|
||
if {${python.version} eq 27} {
|
||
depends_lib-append \
|
||
port:py${python.version}-enum34
|
||
}
|
||
|
||
post-destroot {
|
||
set docdir ${prefix}/share/doc/${subport}
|
||
xinstall -d ${destroot}${docdir}
|
||
xinstall -m 0644 -W ${worksrcpath} README.rst LICENSE \
|
||
ChangeLog CHANGES AUTHORS ${destroot}${docdir}
|
||
}
|
||
|
||
notes "
|
||
If you are migrating from py-visa < 1.5, read https://pyvisa.readthedocs.org/en/stable/migrating.html
|
||
for possible compatibility issues.
|
||
"
|
||
|
||
depends_lib-append \
|
||
port:py${python.version}-mock \
|
||
port:py${python.version}-pytest \
|
||
port:py${python.version}-sphinx
|
||
test.run yes
|
||
test.cmd py.test-${python.branch}
|
||
test.target
|
||
test.env PYTHONPATH=${worksrcpath}/build/lib
|
||
|
||
livecheck.type none
|
||
}
|