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 |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup github 1.0 |
---|
5 | PortGroup python 1.0 |
---|
6 | PortGroup select 1.0 |
---|
7 | |
---|
8 | github.setup palantir python-language-server 0.27.0 |
---|
9 | revision 1 |
---|
10 | name py-language-server |
---|
11 | categories-append devel |
---|
12 | license MIT |
---|
13 | maintainers {reneeotten @reneeotten} openmaintainer |
---|
14 | description An implementation of the Language Server Protocol for Python |
---|
15 | long_description ${description} |
---|
16 | |
---|
17 | platforms darwin |
---|
18 | supported_archs noarch |
---|
19 | |
---|
20 | checksums rmd160 12fd7b17e4b9641fb977c3b3a8228b4bdba25d28 \ |
---|
21 | sha256 1fd6cdb0572fb182002bbb15e42314a719595c0f15d6ff8e25318310a3416cdd \ |
---|
22 | size 445153 |
---|
23 | |
---|
24 | python.versions 27 35 36 37 |
---|
25 | |
---|
26 | # upstream patch for supported jedi versions (!=0.14.0) |
---|
27 | patchfiles-append patch-setup.py.diff |
---|
28 | |
---|
29 | if {${subport} ne ${name}} { |
---|
30 | depends_lib-append \ |
---|
31 | port:py${python.version}-autopep8 \ |
---|
32 | port:py${python.version}-codestyle \ |
---|
33 | port:py${python.version}-docstyle \ |
---|
34 | port:py${python.version}-flake8-mccabe \ |
---|
35 | port:py${python.version}-future \ |
---|
36 | port:py${python.version}-jedi \ |
---|
37 | port:py${python.version}-pluggy \ |
---|
38 | port:py${python.version}-pyflakes \ |
---|
39 | port:py${python.version}-pylint \ |
---|
40 | port:py${python.version}-python-jsonrpc-server \ |
---|
41 | port:py${python.version}-rope \ |
---|
42 | port:py${python.version}-setuptools \ |
---|
43 | port:py${python.version}-yapf |
---|
44 | |
---|
45 | if {${python.version} eq 27} { |
---|
46 | depends_lib-append port:py${python.version}-backports-functools_lru_cache \ |
---|
47 | port:py${python.version}-configparser \ |
---|
48 | port:py${python.version}-futures |
---|
49 | } |
---|
50 | |
---|
51 | depends_test-append \ |
---|
52 | port:py${python.version}-pytest \ |
---|
53 | port:py${python.version}-mock |
---|
54 | |
---|
55 | test.run yes |
---|
56 | test.cmd py.test-${python.branch} |
---|
57 | test.args -o addopts='' |
---|
58 | test.target |
---|
59 | test.env PYTHONPATH=${worksrcpath}/build/lib |
---|
60 | |
---|
61 | post-destroot { |
---|
62 | set docdir ${prefix}/share/doc/${subport} |
---|
63 | xinstall -d ${destroot}${docdir} |
---|
64 | xinstall -m 0644 -W ${worksrcpath} README.rst LICENSE \ |
---|
65 | ${destroot}${docdir} |
---|
66 | } |
---|
67 | |
---|
68 | depends_run-append \ |
---|
69 | port:python-language-server_select |
---|
70 | |
---|
71 | select.group python-language-server |
---|
72 | select.file ${filespath}/py${python.version}-pyls |
---|
73 | |
---|
74 | notes " |
---|
75 | To make the Python ${python.branch} version of python language server the one \ |
---|
76 | that is run when you execute the commands without a version suffix, e.g. \ |
---|
77 | 'pyls', run: |
---|
78 | |
---|
79 | port select --set ${select.group} [file tail ${select.file}] |
---|
80 | " |
---|
81 | |
---|
82 | livecheck.type none |
---|
83 | } |
---|