--- www/py-graphite-web/Makefile (revision 548057) +++ www/py-graphite-web/Makefile (working copy) @@ -3,6 +3,7 @@ PORTNAME= graphite-web PORTVERSION= 1.1.7 +PORTREVISION= 1 CATEGORIES= www python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -20,16 +21,14 @@ ${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 + xorg-fonts-truetype>=0:x11-fonts/xorg-fonts-truetype -USES= cpe python:3.5+ shebangfix +USES= cpe python:3.5+ 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 --- www/py-graphite-web/files/patch-bin__build-index.sh (revision 548057) +++ www/py-graphite-web/files/patch-bin__build-index.sh (working copy) @@ -1,9 +1,11 @@ ---- bin/build-index.sh.orig 2018-04-23 17:11:55 UTC -+++ bin/build-index.sh +--- bin/build-index.sh.orig 2020-03-16 09:55:20.000000000 -0600 ++++ bin/build-index.sh 2020-09-08 21:24:55.323109000 -0600 @@ -1,5 +1,5 @@ - #!/usr/local/bin/bash +-#!/bin/bash -export PYTHONPATH="/opt/graphite/webapp/:$PYTHONPATH" +-BINDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" ++#!/bin/sh +export PYTHONPATH="%%PREFIX%%/graphite/webapp/:$PYTHONPATH" - BINDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" ++BINDIR="$( cd "$( dirname "$0" )" && pwd )" ${BINDIR}/build-index