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:
parent
059c350cc8
commit
666c09bf73
@ -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>
|
||||
|
11
astro/py-indiweb/files/patch-indiweb_driver.py
Normal file
11
astro/py-indiweb/files/patch-indiweb_driver.py
Normal 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:
|
Loading…
Reference in New Issue
Block a user