/
Portfile
76 lines (64 loc) · 3.04 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# -*- 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 github 1.0
PortGroup python 1.0
github.setup magenta note-seq 0.0.5 v
revision 0
name py-${github.project}
categories-append audio
platforms {darwin any}
supported_archs noarch
license Apache-2
maintainers nomaintainer
description Use machine learning to create art and music.
long_description {*}${description}. This is\
the home for our serializable NoteSequence\
representation along with utilities for: creating\
them from various formats (e.g., MIDI, abc,\
MusicXML)\; manipulating them (e.g., slicing,\
quantizing) extracting components (e.g., melodies,\
drum tracks, chord)\; exporting them (e.g., to MIDI\
or audio)\; or converting them to representations\
useful for model training (e.g., one-hot tensors).
homepage https://magenta.tensorflow.org/
distname ${github.project}-${version}
checksums rmd160 a3b7d96c26bdd28eddd40bacc1303f757b3a5722 \
sha256 bb7fc03900f0e6504fb493879255c40e59f7baef085ca6e112fb0a1d2544125e \
size 953597
python.versions 38 39 310 311
python.pep517 yes
if {${name} ne ${subport}} {
# diff -NaurdwB ./note-seq-orig/setup.py ./note-seq-new/setup.py | sed -E -e 's/\.\/note-seq-(orig|new)*\/(setup.py)(\.[[:alnum:]]+)*/\.\/setup.py/' > ./patch-setup.py.diff
patchfiles patch-setup.py.diff
depends_run-append \
port:py${python.version}-absl \
port:py${python.version}-attrs \
port:py${python.version}-bokeh \
port:py${python.version}-intervaltree \
port:py${python.version}-ipython \
port:py${python.version}-librosa \
port:py${python.version}-numba \
port:py${python.version}-numpy \
port:py${python.version}-pandas \
port:py${python.version}-pretty-midi \
port:py${python.version}-protobuf3 \
port:py${python.version}-scikit-image \
port:py${python.version}-scipy
depends_test-append \
port:py${python.version}-pylint \
port:py${python.version}-pytest \
port:py${python.version}-pytest-xdist
test.run yes
test.cmd py.test-${python.branch}
test.target
test.env-append \
PYTHONPATH=${worksrcpath}/build/lib
post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} LICENSE README.md \
${destroot}${docdir}
}
} else {
github.livecheck.regex {([0-9.]+)}
}