freebsd-ports/chinese/pycangjie/Makefile
Alexey Dokuchaev c18767b14b chinese/{ibus-,lib,py}cangjie: miscellaneous cleanups and improvements
- Drop redundant GH_PROJECT when appropriately set by the framework
- Remove excessive horizontal, vertical, and useless EOL whitespace
- Reformat port description for standard 80-character terminal width
2021-08-29 11:10:44 +00:00

29 lines
740 B
Makefile

# Created by: blubee <hello@blubee.me>
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
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>