freebsd-ports/devel/py-ice/Makefile
Marcus von Appen 89e07f4a18 - Convert ports of devel/ to USES=python
Approved by:	portmgr (implicit)
2014-10-20 16:04:12 +00:00

42 lines
1.2 KiB
Makefile

# 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 \
slice2py:${PORTSDIR}/devel/ice
LIB_DEPENDS= libIce.so.${LIB_VRS}:${PORTSDIR}/devel/ice
USES= python
SLAVE_PORT= yes
MASTERDIR= ${.CURDIR}/../ice
PLIST= ${.CURDIR}/pkg-plist
BUILD_WRKSRC= ${WRKSRC}/py
INSTALL_WRKSRC= ${WRKSRC}/py
MAKE_ENV+= PYTHON_VERSION=${PYTHON_VERSION}
LIB_VRS= ${PORTVERSION:S|.||g:C|[0-9]$||}
PLIST_SUB= LIB_VERSION="${PORTVERSION}" LIB_VRS="${LIB_VRS}"
# bypass infrastructure bug (taken from www/py-django)
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
OPTIONS_DEFINE= DEBUG DOCS TESTS
OPTIONS_DEFAULT=TESTS
TESTS_DESC= Run tests
post-install:
${ECHO} "Ice" > ${STAGEDIR}${PYSITEDIR}/Ice.pth
@${FIND} ${STAGEDIR}${PYSITEDIR}/Ice \( -name "*.pyc" -or -name "*.pyo" \) \
-exec ${CHMOD} u+w {} \;
@${PYTHON_CMD} -m compileall ${STAGEDIR}${PYSITEDIR}/Ice
@${PYTHON_CMD} -O -m compileall ${STAGEDIR}${PYSITEDIR}/Ice
.include "${MASTERDIR}/Makefile"