mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-07 06:40:06 +00:00
e31dc0f933
- Remove support for unsupported versions of python - Fix plist with python version different from 3.6
32 lines
777 B
Makefile
32 lines
777 B
Makefile
# 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>
|