aboutsummaryrefslogblamecommitdiff
path: root/chinese/pycangjie/Makefile
blob: 02d83bdc20a3a0ff14db304bbdc4fec5c89052f1 (plain) (tree)
1
2
3
4
5
6
                                      
 

                         
                         
                       






                                            

                                                

                                                                     
                   
                                                            

                         







                                                                                             
# 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>