Files
ports/textproc/py-langid/Makefile
T
Charlie Li d04d23ae37 python.mk: retire ${PYNUMPY}
With both math/py-numpy (2) and math/py-numpy1, the variable stopped
making sense. Also remove the upper version bound.
2026-04-03 16:52:43 -04:00

33 lines
786 B
Makefile

PORTNAME= langid
DISTVERSION= 1.1.6-20170715
PORTREVISION= 3
CATEGORIES= textproc devel python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= thierry@FreeBSD.org
COMMENT= Standalone Language Identification (LangID) tool
WWW= https://github.com/saffsd/langid.py
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy1>=1.16:math/py-numpy1@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy1>=1.16:math/py-numpy1@${PY_FLAVOR}
USE_GITHUB= yes
GH_ACCOUNT= saffsd
GH_PROJECT= ${PORTNAME}.py
GH_TAGNAME= 4153583
USES= python shebangfix
USE_PYTHON= distutils
SHEBANG_GLOB= *.py
NO_ARCH= yes
post-extract:
${MKDIR} ${WRKDIR}/unsupported-Python-2.7
${MV} ${WRKSRC}/langid/train ${WRKDIR}/unsupported-Python-2.7
.include <bsd.port.mk>