diff --git a/astro/py-indiweb/Makefile b/astro/py-indiweb/Makefile index ea5a9e11ca0e..a4e3949ad539 100644 --- a/astro/py-indiweb/Makefile +++ b/astro/py-indiweb/Makefile @@ -1,5 +1,6 @@ PORTNAME= indiweb PORTVERSION= 0.1.7 +PORTREVISION= 1 CATEGORIES= astro python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -13,8 +14,12 @@ LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psutil>=0:sysutils/py-psutil@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}bottle>=0:www/py-bottle@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} USES= python:3.5+ USE_PYTHON= autoplist concurrent distutils +post-patch: + ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/indiweb/driver.py + .include diff --git a/astro/py-indiweb/files/patch-indiweb_driver.py b/astro/py-indiweb/files/patch-indiweb_driver.py new file mode 100644 index 000000000000..dfb843943021 --- /dev/null +++ b/astro/py-indiweb/files/patch-indiweb_driver.py @@ -0,0 +1,11 @@ +--- indiweb/driver.py 2021-09-05 00:47:09.163136000 -0500 ++++ indiweb/driver.py 2021-09-05 00:47:30.642233000 -0500 +@@ -5,7 +5,7 @@ + import xml.etree.ElementTree as ET + + # Default INDI data directory +-INDI_DATA_DIR = "/usr/share/indi/" ++INDI_DATA_DIR = "%%LOCALBASE%%/share/indi/" + + + class DeviceDriver: