2021-09-15 18:17:47 -04:00
|
|
|
# -*- 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
|
|
|
|
|
|
|
|
|
|
github.setup facebookresearch fastText 0.9.2 v
|
2025-01-30 08:11:54 +11:00
|
|
|
# Change github.tarball_from to 'releases' or 'archive' next update
|
|
|
|
|
github.tarball_from tarball
|
2022-01-26 01:36:59 -06:00
|
|
|
revision 1
|
2021-09-15 18:17:47 -04:00
|
|
|
name [string tolower ${github.project}]
|
|
|
|
|
|
2025-11-13 09:30:57 -05:00
|
|
|
categories textproc
|
2021-09-15 18:17:47 -04:00
|
|
|
license MIT
|
|
|
|
|
maintainers nomaintainer
|
|
|
|
|
|
|
|
|
|
description Library for fast text representation and classification.
|
|
|
|
|
long_description fastText is a library for efficient learning of \
|
|
|
|
|
word representations and sentence classification.
|
|
|
|
|
|
|
|
|
|
checksums rmd160 f83305b9e95c7e97a0a51c8a82293b235346315b \
|
|
|
|
|
sha256 e9ce4ab7d2bf6c5e2343faa5920c59370d3e8a08bf6bd07b1f1e7ea48d441fe7 \
|
|
|
|
|
size 4036928
|
|
|
|
|
|
2022-01-26 01:36:59 -06:00
|
|
|
patchfiles no-march-native.patch
|
|
|
|
|
|
2021-09-15 18:17:47 -04:00
|
|
|
compiler.cxx_standard 2011
|
|
|
|
|
|
|
|
|
|
if {${name} eq ${subport}} {
|
|
|
|
|
PortGroup cmake 1.1
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
post-destroot {
|
|
|
|
|
set docdir ${prefix}/share/doc/${subport}
|
|
|
|
|
xinstall -d ${destroot}${docdir}
|
|
|
|
|
xinstall -m 0644 -W ${worksrcpath} LICENSE README.md \
|
|
|
|
|
${destroot}${docdir}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# create Python subports
|
2025-11-13 09:30:57 -05:00
|
|
|
set python_versions {313}
|
2021-09-15 18:17:47 -04:00
|
|
|
|
|
|
|
|
# Python modules
|
|
|
|
|
foreach v ${python_versions} {
|
|
|
|
|
subport py${v}-${name} {
|
|
|
|
|
PortGroup python 1.0
|
|
|
|
|
|
|
|
|
|
description Python bindings for ${name}
|
2025-11-13 09:30:57 -05:00
|
|
|
categories-prepend textproc
|
|
|
|
|
long_description {*}${description}
|
2021-09-15 18:17:47 -04:00
|
|
|
|
|
|
|
|
python.default_version ${v}
|
2025-11-13 09:30:57 -05:00
|
|
|
|
|
|
|
|
compiler.cxx_standard 2011
|
2021-09-15 18:17:47 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# common settings for all Python ports
|
|
|
|
|
if {[string match "py*" ${subport}]} {
|
|
|
|
|
depends_build-append \
|
2025-11-13 09:30:57 -05:00
|
|
|
port:py${python.version}-pybind11
|
2021-09-15 18:17:47 -04:00
|
|
|
|
|
|
|
|
depends_run-append \
|
|
|
|
|
port:py${python.version}-numpy
|
|
|
|
|
|
|
|
|
|
test.run yes
|
2025-11-13 09:30:57 -05:00
|
|
|
python.test_framework
|
2021-09-15 18:17:47 -04:00
|
|
|
test.cmd ${python.bin}
|
|
|
|
|
test.target runtests.py
|
|
|
|
|
test.args --unit-tests
|
|
|
|
|
}
|