summaryrefslogtreecommitdiff
path: root/misc/py-gluonnlp/Makefile
blob: 58d0bc15db4bcdf4e90ed8ac4f47b99279ad09ec (plain)
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
PORTNAME=	gluonnlp
DISTVERSIONPREFIX=	v
DISTVERSION=	0.10.0
CATEGORIES=	misc # machine-learning
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	MXNet-based toolkit to enable easy text, datasets preprocessing

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

PY_DEPENDS=	${PYNUMPY} \
		${PYTHON_PKGNAMEPREFIX}mxnet>0:misc/py-mxnet@${PY_FLAVOR}
BUILD_DEPENDS=	${PY_DEPENDS}
RUN_DEPENDS=	${PY_DEPENDS}

USES=		python:3.6+ localbase
USE_GITHUB=	yes
GH_ACCOUNT=	dmlc
GH_PROJECT=	gluon-nlp
USE_PYTHON=	distutils cython autoplist

post-install:
	@${FIND} ${STAGEDIR}${PREFIX} -name "*.so" | ${XARGS} ${STRIP_CMD}

.include <bsd.port.mk>