mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
16b56bb7f5
Pointyhat to: antoine (for not providing it)
54 lines
1.4 KiB
Makefile
54 lines
1.4 KiB
Makefile
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= twms
|
|
PORTVERSION= 0.06y
|
|
CATEGORIES= www astro
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
COMMENT= Tiny WMS server
|
|
|
|
LICENSE= GPLv3+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyproj>0:graphics/py-pyproj@${PY_FLAVOR} \
|
|
webpy>0:www/webpy@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}cairo>0:graphics/py-cairo@${PY_FLAVOR} \
|
|
${FREESANS}:x11-fonts/freefont-ttf
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= Komzpa
|
|
|
|
USES= python:2.7 # 2.7 only because of webpy dependency
|
|
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>
|