Partially fix package building by adding a dependency on Xvfb in the

PACKAGE_BUILDING case.  Mark BROKEN because this package does not
build with python 2.4.

Approved by:	portmgr (self)
This commit is contained in:
Kris Kennaway 2005-01-01 22:21:26 +00:00
parent 3ddfc30188
commit b06b1262bc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=125631

View file

@ -18,31 +18,15 @@ COMMENT= UML modeling environment written in Python
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/diacanvas/_canvasmodule.so:${PORTSDIR}/graphics/diacanvas2
RUN_DEPENDS= ${BUILD_DEPENDS}
.if defined(PACKAGE_BUILDING)
BUILD_DEPENDS+= Xvfb:${X_VFBSERVER_PORT}
.endif
BROKEN= Does not build with python 2.4
USE_PYTHON= 2.2+
.if !defined(DISPLAY)
BUILD_DEPENDS+= Xvfb:${X_VFBSERVER_PORT}
DISPLAYHACK= localhost:1001
.endif
do-configure:
.if exists(${WRKDIR}/.Xvfb.pid)
@-${CAT} ${WRKDIR}/.Xvfb.pid | ${XARGS} kill
@${RM} -f ${WRKDIR}/.Xvfb.pid
.endif
.if !defined(DISPLAY)
#
# This is a UGLY hack to not have to specify a X-Display.
#
${X11BASE}/bin/Xvfb :1001 -screen 0 800x600x24 > /dev/null 2>&1 & ${ECHO} $$! > ${WRKDIR}/.Xvfb.pid
@sleep 5
@cd ${WRKSRC}; ${ENV} DISPLAY=${DISPLAYHACK} ${PYTHON_CMD} setup.py config
@-${CAT} ${WRKDIR}/.Xvfb.pid | ${XARGS} kill
@${RM} -f ${WRKDIR}/.Xvfb.pid
.else
@cd ${WRKSRC}; ${PYTHON_CMD} setup.py config
.endif
do-build:
@cd ${WRKSRC}; ${PYTHON_CMD} setup.py build; ${PYTHON_CMD} setup.py build_mo