freebsd-ports/www/py-webware-component/Makefile
Ruslan Makhmatkhanov f51aca5402 - strict python version to 2.x only
- convert to using PYTHON_PKGNAMEPREFIX in dependency entry
2012-05-13 20:11:10 +00:00

33 lines
922 B
Makefile

# New ports collection makefile for: py-webware-component
# Date created: 2005-03-25
# Whom: Choe, Cheng-Dae
#
# $FreeBSD$
#
PORTNAME= Component
PORTVERSION= 0.2
CATEGORIES= www python
MASTER_SITES= http://www.webwareforpython.org/downloads/${PORTNAME}/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}webware-
MAINTAINER= ports@FreeBSD.org
COMMENT= Webware servlet component extension
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}webware>0:${PORTSDIR}/www/py-webware
USE_PYTHON= -2.7
do-build:
@${ECHO_MSG} -n ">> Compiling ..."
@${PYTHON_CMD} -c "import compileall; compileall.compile_dir('${WRKSRC}')"
@${ECHO_MSG} " [ DONE ]"
do-install:
@${ECHO_CMD} -n ">> Installing ..."
@cd ${WRKSRC} && \
${FIND} . -type d -exec ${MKDIR} "${PREFIX}/share/webware/${PORTNAME}/{}" \; && \
${FIND} . -not -type d -exec ${INSTALL_DATA} "{}" "${PREFIX}/share/webware/${PORTNAME}/{}" \;
@${ECHO_MSG} " [ DONE ]"
.include <bsd.port.mk>