diff -ur /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/python/py-visa/Portfile ./Portfile
old
|
new
|
|
| 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 |
1 | 2 | # $Id: Portfile 124632 2014-08-27 06:28:47Z aronnax@macports.org $ |
2 | 3 | |
3 | 4 | PortSystem 1.0 |
4 | 5 | PortGroup python 1.0 |
| 6 | PortGroup github 1.0 |
| 7 | |
| 8 | github.setup hgrecco pyvisa 1.5 |
5 | 9 | |
6 | 10 | name py-visa |
7 | | version 1.4 |
8 | 11 | categories-append science |
9 | 12 | platforms darwin |
10 | 13 | supported_archs noarch |
… |
… |
|
15 | 18 | long_description PyVISA allows dialog between a computer and\ |
16 | 19 | various engineering instruments such as oscilloscopes,\ |
17 | 20 | 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’. |
23 | 31 | |
24 | 32 | homepage http://pyvisa.sourceforge.net/ |
25 | 33 | |
26 | | master_sites https://pypi.python.org/packages/source/P/PyVISA/ |
27 | | distname PyVISA-${version} |
28 | | |
29 | | checksums md5 5a391c8d0bca3c9d58ee1bbe573bc6b9 \ |
30 | | rmd160 6cc4aae064dbe744bb260a8f329959e50f5694eb \ |
31 | | sha256 6ff001554b206534a54bbb3f60121f9265f0dde5261726c9ee5d1aae67f8e4f0 |
| 34 | checksums md5 af78d64678a58a8f432f98fc94417aca \ |
| 35 | rmd160 1520c1160859e890f8757611822114bd1c7b7d67 \ |
| 36 | sha256 c5cac39f9e2f3ecc8a8b5ca12ab6677c864e472105cbb9aa89cd17ce42e2380a |
32 | 37 | |
33 | 38 | |
34 | | python.versions 26 27 |
| 39 | python.versions 26 27 33 |
35 | 40 | |
36 | | if {$subport ne $name} { |
37 | | depends_build port:py${python.version}-setuptools \ |
| 41 | if {${name} ne ${subport}} { |
| 42 | depends_build-append port:py${python.version}-setuptools\ |
38 | 43 | port:py${python.version}-sphinx |
39 | 44 | test.run yes |
40 | 45 | livecheck.type none |
41 | 46 | } else { |
42 | 47 | livecheck.type regex |
43 | | livecheck.url https://pypi.python.org/pypi/PyVISA |
44 | | livecheck.regex {PyVISA/([0-9.]+)"} |
| 48 | livecheck.url http://github.com/hgrecco/pyvisa/tags |
| 49 | livecheck.regex "href=\"/hgrecco/pyvisa/releases/tag/(\[0-9.\]+)\"" |
45 | 50 | } |