blob: 3030e09ec86a0be4558e932c16ec4f9528bacafc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Created by: Boris B. Samorodov <bsam@ipt.ru>
# $FreeBSD$
CATEGORIES= devel python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= freebsd@grem.de
COMMENT= Ice (Internet Communications Engine) language mapping for Python
LICENSE= GPLv2
BUILD_DEPENDS= mcpp:${PORTSDIR}/devel/mcpp
LIB_DEPENDS= libIce.so.${LIB_VRS}:${PORTSDIR}/devel/ice
USES= python shebangfix
USE_PYTHON= py3kplist
SLAVE_PORT= yes
MASTERDIR= ${.CURDIR}/../ice
PLIST= ${.CURDIR}/pkg-plist
BUILD_WRKSRC= ${WRKSRC}/python
INSTALL_WRKSRC= ${WRKSRC}/python
SHEBANG_FILES= ${BUILD_WRKSRC}/config/s2py.py
MAKE_ENV+= PYTHON_VERSION=${PYTHON_VERSION}
LIB_VRS= ${PORTVERSION:S|.||g:C|[0-9]$||}
PLIST_SUB= LIB_VERSION="${PORTVERSION}" LIB_VRS="${LIB_VRS}"
OPTIONS_DEFINE= DEBUG TEST
post-install:
${STRIP_CMD} ${STAGEDIR}${PYSITEDIR}/Ice/*.so.*
${ECHO} "Ice" > ${STAGEDIR}${PYSITEDIR}/Ice.pth
@${FIND} ${STAGEDIR}${PYSITEDIR}/Ice \( -name "*.pyc" -or -name "*.pyo" \) \
-exec ${CHMOD} u+w {} \;
@${PYTHON_CMD} -m compileall -d ${PYSITEDIR}/Ice ${STAGEDIR}${PYSITEDIR}/Ice
@${PYTHON_CMD} -O -m compileall -d ${PYSITEDIR}/Ice ${STAGEDIR}${PYSITEDIR}/Ice
${INSTALL_MAN} ${WRKSRC}/man/man1/slice2py.1 ${STAGEDIR}${PREFIX}/man/man1
${INSTALL_SCRIPT} ${BUILD_WRKSRC}/config/s2py.py \
${STAGEDIR}${PREFIX}/bin/slice2py
.include "${MASTERDIR}/Makefile"
|