blob: ffcb19086cb5635c8d9145d975b3ed3f0d79f627 (
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
48
49
50
51
52
|
PORTNAME= twms
PORTVERSION= 0.06y
PORTREVISION= 1
CATEGORIES= www astro
MAINTAINER= ports@FreeBSD.org
COMMENT= Tiny WMS server
WWW= https://github.com/Komzpa/twms
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyproj>0:graphics/py-pyproj@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}webpy>0:www/webpy@${PY_FLAVOR} \
${PY_PILLOW} \
${PYTHON_PKGNAMEPREFIX}cairo>0:graphics/py-cairo@${PY_FLAVOR} \
${FREESANS}:x11-fonts/freefont-ttf
USE_GITHUB= yes
GH_ACCOUNT= Komzpa
USES= python:3.7+
USE_PYTHON= distutils py3kplist optsuffix
NO_ARCH= yes
FREESANS= ${LOCALBASE}/share/fonts/freefont-ttf/FreeSans.ttf
USE_RC_SUBR= twms
USERS= twms
GROUPS= twms
PLIST_SUB= USER=${USERS} GROUP=${GROUPS}
SUB_LIST= USER=${USERS} PYTHON_CMD="${PYTHON_CMD}"
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|/etc/twms/twms.conf|${PREFIX}/etc/twms/twms.conf|' \
${WRKSRC}/twms/twms.py
@${REINPLACE_CMD} -e '/install_path/ s|/usr/share/twms/|${DATADIR}/|' \
-e 's|/usr/share/fonts/truetype/freefont/FreeSans.ttf|${FREESANS}|' \
${WRKSRC}/twms/twms.conf
post-install:
@${MV} ${STAGEDIR}${ETCDIR}/twms.conf ${STAGEDIR}${ETCDIR}/twms.conf.sample
@${RM} ${STAGEDIR}${DOCSDIR}/COPYING
@${RM} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/twms/twms.conf
@${MKDIR} ${STAGEDIR}/var/cache/twms/tiles
@${MKDIR} ${STAGEDIR}/var/cache/twms/traces
.include <bsd.port.mk>
|