Commit fe8037f1 authored by Stefan Countryman's avatar Stefan Countryman

add working MacPorts Portfile for ndscope

parent 7eb87389
(c) Stefan Countryman, 2019
# Instructions on editing Portfiles for MacPorts
- When updating version numbers for this module:
- Make sure that a tag exists in the git repository for the new version.
- Regenerate the rmd160 and sha256 hashes for the distribution file (the
tarball) using:
- `openssl dgst -rmd160 $DISTFILENAME`
- `openssl dgst -sha256 $DISTFILENAME`
- `ls -nl $DISTFILENAME | awk '{print $5}'`
- Make sure that all dependencies are compatible with the python versions you
specify in python.versions.
- Update the default python version to the newest stable version when possible
- Note that the preferred homepage and master_site might change if the
maintainer changes/project switches hands
# Testing a Portfile locally
Instructions taken from
[the MacPorts documentation](https://guide.macports.org/chunked/development.local-repositories.html).
1. Since this is a python port, MacPorts expects to find the portfile in
`${ARBITRARY_PREFIX}/python/${name}/Portfile` where `${name}` is the name of the
port. So, to test, copy all your local Portfiles to directories following
this pattern. For example, with username `Stefan`, local port repository in
`~/dev/local-ports/`, and port name `py-gpstime`, you would copy the
portfile to `/Users/Stefan/dev/local-ports/python/py-gpstime/Portfile`.
2. Insert the path to the local ports repository into
`/opt/local/etc/macports/sources.conf` by adding the line
`file:///Users/Stefan/dev/local-ports` (preferably ahead of the other sources
listed).
3. Use portindex in the local repository's directory to create or update the
index of the ports in your local repository:
```bash
cd ~/dev/local-ports
portindex
```
4. Try searching for and installing the new port as you ordinarily would, e.g.
`port search py-gpstime`.
# -*- 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-ndscope
version 0.7.4
python.rootname ndscope
homepage https://git.ligo.org/cds/${python.rootname}
fetch.type git
git.url ${homepage}.git
git.branch ${version}
platforms darwin
supported_archs noarch
license GPL-3
maintainers gmail.com:stefan.countryman
description View time series data from the LIGO Network NDS
long_description A tool for viewing time series data from the LIGO Network \
Data Services (NDS). Based on \
nds2-client (https://git.ligo.org/nds/nds2-client) and \
the high-performance pyqtgraph (http://pyqtgraph.org/) \
plotting library, ndscope is a able to plot both online \
and offline data for many channels simultaneously with \
intuitive mouse pan/zoom support. To use ndscope, you \
must have the NDSSERVER environmental variable set. \
Possible choices at time of writing include \
nds.ligo.caltech.edu (CalTech), nds.ligo-wa.caltech.edu \
(LHO), or nds.ligo-la.caltech.edu (LLO).
python.versions 35 36
python.default_version 36
if {${name} ne ${subport}} {
depends_lib-append port:py${python.version}-pyqt5 \
port:py${python.version}-nds2-client \
port:py${python.version}-pyqtgraph \
port:py${python.version}-dateutil \
port:py${python.version}-yaml \
port:py${python.version}-requests \
port:py${python.version}-setuptools_scm \
port:py${python.version}-gpstime
livecheck.type none
} else {
livecheck.name ${python.rootname}
}
......@@ -46,3 +46,13 @@ The following packages are used for development purposes:
`ndscope` is available for Debian 9 via the [LIGO CDSSoft Debian archive](https://git.ligo.org/cds-packaging/docs/wikis/home):
> deb http://apt.ligo-wa.caltech.edu/debian stretch main
You must also have the `NDSSERVER` environmental variable set, e.g. by adding
the following line to your `.bashrc` to access the CalTech NDS2 server:
```bash
export NDSSERVER=nds.ligo.caltech.edu
```
You can also use `nds.ligo-wa.caltech.edu` for the LHO NDS2 server or
`nds.ligo-la.caltech.edu` for the LLO NDS2 server.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment