Ticket #48107: py-visa.diff

File py-visa.diff, 3.0 KB (added by kurthindenburg (Kurt Hindenburg), 9 years ago)
  • Portfile

     
     1# -*- 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
    12# $Id$
    23
    34PortSystem          1.0
    45PortGroup           python 1.0
     6PortGroup           github 1.0
    57
     8github.setup        hgrecco pyvisa 1.8
     9
    610name                py-visa
    7 version             1.4
    811categories-append   science
    912platforms           darwin
    1013supported_archs     noarch
     
    1518long_description    PyVISA allows dialog between a computer and\
    1619                    various engineering instruments such as oscilloscopes,\
    1720                    spectrum analyzers, waveform generators, etc. using\
    18                     the VISA Framework of National Instruments, that must be\
    19                     installed independently. \nWARNING: this framework is,\
    20                     currently, 32-bit only, so to be able to use py-visa on\
    21                     a 64-bit machine, you MUST install a universal Python\
    22                     and execute python in 32-bit mode with ‘arch -i386’.
     21                    the VISA Framework of National Instruments, which must be\
     22                    installed independently.\
     23                    \nWARNING: VISA Frameworks prior to 14.0, (released 2014),\
     24                    are 32-bit only, so to be able to use py-visa on a 64-bit\
     25                    machine, you MUST\
     26                    \nEITHER\
     27                    \n\tinstall a 64-bit-compatible VISA version\
     28                    \nOR\
     29                    \n\tinstall a universal Python and execute python in\
     30                    32-bit mode with ‘arch -i386’.
    2331
    24 homepage            http://pyvisa.sourceforge.net/
     32checksums           rmd160  6bc43d1aed4f8f9823ec164ecc510bdb224164fe \
     33                    sha256  42711646de0b77b8c6d786da7fdda1b4dc3a47453c55880dc9391fc049e82136
    2534
    26 master_sites        https://pypi.python.org/packages/source/P/PyVISA/
    27 distname            PyVISA-${version}
     35python.versions     27 34 35
    2836
    29 checksums           md5     5a391c8d0bca3c9d58ee1bbe573bc6b9 \
    30                     rmd160  6cc4aae064dbe744bb260a8f329959e50f5694eb \
    31                     sha256  6ff001554b206534a54bbb3f60121f9265f0dde5261726c9ee5d1aae67f8e4f0
     37if {${name} ne ${subport}} {
     38    depends_build-append    port:py${python.version}-setuptools\
     39                            port:py${python.version}-sphinx
    3240
     41    notes "
     42If you are migrating from py-visa < 1.5, read https://pyvisa.readthedocs.org/en/stable/migrating.html
     43for possible compatibility issues.
     44"
    3345
    34 python.versions     26 27
    35 
    36 if {$subport ne $name} {
    37     depends_build           port:py${python.version}-setuptools \
    38                             port:py${python.version}-sphinx
    3946    test.run                yes
    4047    livecheck.type          none
    41 } else {
    42     livecheck.type  regex
    43     livecheck.url   https://pypi.python.org/pypi/PyVISA
    44     livecheck.regex {PyVISA/([0-9.]+)"}
    4548}