# Created by: Simon Olofsson # $FreeBSD$ PORTNAME= imgv PORTVERSION= 3.1.6 PORTREVISION= 2 CATEGORIES= graphics python MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}%20${PORTVERSION} EXTRACT_SUFX= -src.tar.gz MAINTAINER= ports@FreeBSD.org COMMENT= Unique and feature rich Image Viewer RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game \ ${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging USE_PYTHON= yes NO_BUILD= yes NO_STAGE= yes .include post-patch: ${REINPLACE_CMD} -e 's,%%DATADIR%%,${DATADIR},' ${WRKSRC}/gl.py do-install: ${INSTALL_SCRIPT} ${WRKSRC}/imgv.py ${PREFIX}/bin/imgv ${RM} -f ${WRKSRC}/imgv.py ${WRKSRC}/setup.py ${MKDIR} ${DATADIR}/data ${INSTALL_DATA} ${WRKSRC}/data/* ${DATADIR}/data ${MKDIR} ${PYTHON_SITELIBDIR}/imgv/ ${TOUCH} ${PYTHON_SITELIBDIR}/imgv/__init__.py ${INSTALL_DATA} ${WRKSRC}/*.py ${PYTHON_SITELIBDIR}/imgv/ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${PYTHON_SITELIBDIR}/imgv/ .include