blob: 1a3581c9e5f04c9b4e669f81a3374e9c2cd1961c (
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
36
37
38
39
40
41
42
43
44
45
46
47
|
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$
PORTNAME= pyawale
PORTVERSION= 0.4.0
PORTREVISION= 6
CATEGORIES= games python
MASTER_SITES= http://download.gna.org/pyawale/
MAINTAINER= ports@FreeBSD.org
COMMENT= African board game
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= ${PYGAME}
USES= python
SUB_FILES= ${PORTNAME}
PORTDOCS= *
OPTIONS_DEFINE= DOCS
post-patch:
@${FIND} ${WRKSRC} -name '*.py' | ${XARGS} \
${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|'
@${FIND} ${WRKSRC} -name "*.bak" -delete
do-build:
@${PYTHON_CMD} -m compileall ${WRKSRC}
@${PYTHON_CMD} -O -m compileall ${WRKSRC}
do-install:
@${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \
${WRKDIR}/${PORTNAME}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
@(cd ${WRKSRC}/src && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
${INSTALL_DATA} ${WRKSRC}/docs/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
${INSTALL_DATA} ${WRKSRC}/docs/${PORTNAME}.desktop \
${STAGEDIR}${DESKTOPDIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} "AUTHORS ChangeLog LISEZMOI NEWS README \
docs/*.rest docs/*.html docs/*.jpg" ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|