1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/www/py-graphite-web/Makefile
Kai Knoblich cee758de85 www/py-graphite-web: Update to 1.1.7
* Also switch the port to Django 2.2 (current LTS release) because
  Django 1.11 is End-of-Life since April, which also drops the support for
  Python 2.7.

* Do the same for www/py-django-tagging and bump PORTREVISION due changed
  dependencies. [1]

* Relax the version requirements in setup.py to pave the way for the 0.5.0
  update of www/py-django-tagging. [1]

* Remove superfluous '+=' from SUB_LIST and PLIST_SUB and sort variables a
  bit according to the PHB.

* Add NO_ARCH as there are no architecture relevant files in the package.

Changelogs since 1.1.5:

https://github.com/graphite-project/graphite-web/releases/tag/1.1.7
https://github.com/graphite-project/graphite-web/releases/tag/1.1.6

PR:		245873 245843 [1]
Approved by:	maintainer timeout (6+ weeks), Kevin Golding (maintainer) [1]
2020-06-11 08:59:08 +00:00

66 lines
2.4 KiB
Makefile

# Created by: Evan Sarmiento <esarmiento@wayfair.com>
# $FreeBSD$
PORTNAME= graphite-web
PORTVERSION= 1.1.7
CATEGORIES= www python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= swills@FreeBSD.org
COMMENT= Enterprise scalable realtime graphing platform
LICENSE= APACHE20
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cairo>=1.8.10:graphics/py-cairo@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}carbon>=${PORTVERSION}:databases/py-carbon@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}django-tagging>=0.4.2:www/py-django-tagging@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}django22>=1.8<3.1:www/py-django22@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}scandir>=0:sysutils/py-scandir@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyparsing>=0:devel/py-pyparsing@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}urllib3>0:net/py-urllib3@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \
xorg-fonts-truetype>=0:x11-fonts/xorg-fonts-truetype \
bash:shells/bash
USES= cpe python:3.5+ shebangfix
USE_GITHUB= yes
GH_ACCOUNT= graphite-project
CPE_VENDOR= graphite_project
CPE_PRODUCT= graphite
USE_PYTHON= distutils
SHEBANG_FILES= bin/build-index.sh
CONFLICTS_INSTALL= py??-graphite-web
FETCH_ARGS= -o ${DISTNAME}${EXTRACT_SUFX}
NO_ARCH= yes
SUB_FILES= pkg-message
SUB_LIST= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR} WWWOWN=${WWWOWN} \
WWWGRP=${WWWGRP} DATADIR=${DATADIR}
PLIST_SUB= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
post-patch:
@${RM} ${WRKSRC}/bin/build-index.sh.orig
@${RM} ${WRKSRC}/bin/run-graphite-devel-server.py
@${REINPLACE_CMD} -i '' -e 's|%%PREFIX%%|${PREFIX}|' \
-e 's|%%DATADIR%%|${DATADIR}|' \
-e 's|%%PYTHON_SITELIBDIR%%|${PYTHON_SITELIBDIR}|' \
${WRKSRC}/bin/build-index.sh \
${WRKSRC}/conf/graphite.wsgi.example \
${WRKSRC}/setup.cfg \
${WRKSRC}/setup.py \
${WRKSRC}/webapp/graphite/local_settings.py.example
post-install:
@${MKDIR} ${STAGEDIR}${DATADIR}/examples
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/examples)
@${MKDIR} ${STAGEDIR}${DATADIR}/content
@(cd ${WRKSRC}/webapp/content && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/content)
@${MKDIR} ${STAGEDIR}/var/log/graphite/webapp
@${MKDIR} ${STAGEDIR}/var/db/graphite
@${CP} ${STAGEDIR}${PYTHON_SITELIBDIR}/graphite/local_settings.py.example ${STAGEDIR}${PREFIX}/etc/graphite/local_settings.py.example
@${LN} -s ${PREFIX}/etc/graphite/local_settings.py ${STAGEDIR}${PYTHON_SITELIBDIR}/graphite/local_settings.py
.include <bsd.port.mk>