1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/www/butterfly/Makefile
Mathieu Arnold 4376dbbb58 Use PY_FLAVOR for dependencies.
FLAVOR is the current port's flavor, it should not be used outside of
this scope.

Sponsored by:	Absolight
2018-06-20 17:05:41 +00:00

33 lines
1.0 KiB
Makefile

# Created by: Yuri Victorovich <yuri@rawbw.com>
# $FreeBSD$
PORTNAME= butterfly
PORTVERSION= 2.0.1
CATEGORIES= www
MASTER_SITES= CHEESESHOP
MAINTAINER= yuri@FreeBSD.org
COMMENT= Web terminal based on websocket and tornado
LICENSE= GPLv3
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}openssl>0:security/py-openssl@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}tornado>0:www/py-tornado@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}libsass>0:www/py-libsass@${PY_FLAVOR}
USES= python
# Can't use concurrent here, it changes ETCDIR, and breaks post-install.
USE_PYTHON= autoplist distutils optsuffix
NO_ARCH= yes
USE_RC_SUBR= butterfly
SUB_FILES= pkg-message
SUB_LIST= PYTHON_CMD=${PYTHON_CMD}
post-install:
@${REINPLACE_CMD} -i '' -e "s|^butterfly_dir = os.path.join(ev, 'butterfly')|butterfly_dir = '${PREFIX}/etc/butterfly'|g" \
${STAGEDIR}${PREFIX}/bin/butterfly.server.py
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/butterfly/ssl
${INSTALL_DATA} ${WRKSRC}/butterfly/butterfly.conf.default ${STAGEDIR}${ETCDIR}/butterfly.conf.sample
.include <bsd.port.mk>