-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
44 lines (29 loc) · 1.25 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
# -*- 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
PortGroup github 1.0
name py-torchtext
version 0.3.1
revision 0
github.setup pytorch text ${version}
checksums rmd160 d0606839f17d2db14d0991e0f7f2f89d7cde909a \
sha256 81a2bc7ebda75706d93d2ef8d7b11a962ae69a9eb4ffa2fd64f00e5cfc8e82af \
size 78401
platforms darwin
supported_archs x86_64
license BSD
maintainers {jonesc @cjones051073} openmaintainer
description PyTorch data loaders and abstractions for text and NLP
long_description ${description}
homepage https://github.com/pytorch/text
github.livecheck.regex {([0-9.]+)}
# Support python versions
python.versions 27 35 36 37
if {${name} ne ${subport}} {
depends_build-append \
port:py${python.version}-setuptools
depends_lib-append \
port:py${python.version}-nltk
build.cmd "${python.bin} setup.py"
destroot.cmd "${python.bin} setup.py install"
}