1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00
freebsd-ports/chinese/pycangjie/Makefile

32 lines
777 B
Makefile
Raw Normal View History

# Created by: blubee <hello@blubee.me>
# $FreeBSD$
PORTNAME= pycangjie
PORTVERSION= 1.3
DISTVERSIONPREFIX= v
CATEGORIES= chinese
MAINTAINER= hello@blubee.me
COMMENT= Python wrapper to libcangjie
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libcangjie.so:chinese/libcangjie
USES= autoreconf gmake libtool pkgconfig sqlite python:3.4+
USE_PYTHON= cython
GNU_CONFIGURE= yes
CONFIGURE_ENV= CYTHON=${LOCALBASE}/bin/cython-${PYTHON_VER}
USE_GITHUB= yes
GH_ACCOUNT= Cangjians
GH_PROJECT= pycangjie
post-install:
(cd ${STAGEDIR}${PREFIX} \
&& ${PYTHON_CMD} ${PYTHON_LIBDIR}/*.py \
-d ${PREFIX} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;})
@(${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PYTHON_VERSION}/site-packages/cangjie/*.so)
.include <bsd.port.mk>