Date: Sun, 5 Sep 2021 21:31:37 GMT From: Jose Alonso Cardenas Marquez <acm@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 666c09bf73e3 - main - astro/py-indiweb: make port more FreeBSD friendly Message-ID: <202109052131.185LVbak092263@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by acm: URL: https://cgit.FreeBSD.org/ports/commit/?id=666c09bf73e3b42f92063ef33f85d1e0ad9cda1a commit 666c09bf73e3b42f92063ef33f85d1e0ad9cda1a Author: Jose Alonso Cardenas Marquez <acm@FreeBSD.org> AuthorDate: 2021-09-05 21:28:39 +0000 Commit: Jose Alonso Cardenas Marquez <acm@FreeBSD.org> CommitDate: 2021-09-05 21:31:21 +0000 astro/py-indiweb: make port more FreeBSD friendly --- astro/py-indiweb/Makefile | 5 +++++ astro/py-indiweb/files/patch-indiweb_driver.py | 11 +++++++++++ 2 files changed, 16 insertions(+) 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 <bsd.port.mk> 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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109052131.185LVbak092263>