blob: 6ec059f41122a5577a9d871c42de32026d3e8ff2 (
plain) (
blame)
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
|
# Created by: Simon Olofsson <simon@olofsson.de>
# $FreeBSD$
PORTNAME= imgv
PORTVERSION= 3.1.6
CATEGORIES= graphics python
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}%20${PORTVERSION}
EXTRACT_SUFX= -src.tar.gz
MAINTAINER= simon@olofsson.de
COMMENT= A 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= 2.2+
NO_BUILD= yes
NO_STAGE= yes
.include <bsd.port.pre.mk>
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 <bsd.port.post.mk>
|