blob: 00403401f036ea1fdd4a16ec0cd59cd3260a27d9 (
plain)
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
36
37
38
39
40
41
|
# Created by: Jan Stocker <Jan.Stocker@t-online.de>
# $FreeBSD$
PORTNAME= thudboard
PORTVERSION= 1.8
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://www.million.nl/file/
MAINTAINER= lme@FreeBSD.org
COMMENT= The Discworld Boardgame Board
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter
NO_WRKSUBDIR= yes
USES= python
SUB_FILES= thudboard
OPTIONS_DEFINE= DOCS
post-patch:
${REINPLACE_CMD} -e 's|file:.*/docs|file://${DOCSDIR}|' \
${WRKDIR}/thud.py
do-build:
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} 2>/dev/null
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/thudboard ${STAGEDIR}${PREFIX}/bin/thudboard
@${MKDIR} ${STAGEDIR}${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/*.py ${STAGEDIR}${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/*.pyc ${STAGEDIR}${DATADIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@(cd ${WRKDIR}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
. for d in koomvalley img
@${MKDIR} ${STAGEDIR}${DATADIR}/${d}
@(cd ${WRKDIR}/${d} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/${d})
. endfor
.include <bsd.port.mk>
|