1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/devel/py-cld/Makefile
Mathieu Arnold 4e1b79a0a6 Remove ${PORTSDIR}/ from dependencies, categories d, e, f, and g.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:00:51 +00:00

37 lines
1.0 KiB
Makefile

# Created by: Dmitry Sivachenko <demon@FreeBSD.org>
# $FreeBSD$
PORTNAME= cld
PORTVERSION= 20150113
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= LOCAL/demon
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= chromium_compact_language_detector-${PORTVERSION}
MAINTAINER= demon@FreeBSD.org
COMMENT= Python bindings for compact language detector library
LICENSE= BSD3CLAUSE
LIB_DEPENDS= libcld2.so:devel/cld2
USES= python
PLIST_FILES= %%PYTHON_SITELIBDIR%%/chromium_compact_language_detector-2.0-py%%PYTHON_VER%%.egg-info \
%%PYTHON_SITELIBDIR%%/cld2.so \
%%PYTHON_SITELIBDIR%%/cld2full.so
post-patch:
${REINPLACE_CMD} -e "s#\.\./cld2#${LOCALBASE}/include/cld#" ${WRKSRC}/setup.py ${WRKSRC}/setup_full.py
do-build:
cd ${WRKSRC} && ${PYTHON_CMD} setup.py build
cd ${WRKSRC} && ${PYTHON_CMD} setup_full.py build
do-install:
cd ${WRKSRC} && ${PYTHON_CMD} setup.py install -c -O1 --prefix=${PREFIX} --root=${STAGEDIR}
cd ${WRKSRC} && ${PYTHON_CMD} setup_full.py install -c -O1 --prefix=${PREFIX} --root=${STAGEDIR}
.include <bsd.port.mk>