1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

astro/py-indiweb: make port more FreeBSD friendly

This commit is contained in:
Jose Alonso Cardenas Marquez 2021-09-05 16:28:39 -05:00
parent 059c350cc8
commit 666c09bf73
2 changed files with 16 additions and 0 deletions

View File

@ -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 <bsd.port.mk>

View File

@ -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: