git: 14aa140d819d - main - net-im/scli: Fix the help command
Mateusz Piotrowski
0mp at FreeBSD.org
Wed Jul 28 13:00:23 UTC 2021
The branch main has been updated by 0mp:
URL: https://cgit.FreeBSD.org/ports/commit/?id=14aa140d819d35d13d669e3b477afe59a0c4c453
commit 14aa140d819d35d13d669e3b477afe59a0c4c453
Author: Mateusz Piotrowski <0mp at FreeBSD.org>
AuthorDate: 2021-07-28 12:49:48 +0000
Commit: Mateusz Piotrowski <0mp at FreeBSD.org>
CommitDate: 2021-07-28 13:00:18 +0000
net-im/scli: Fix the help command
Now scli knows where to find the README file.
---
net-im/scli/Makefile | 4 ++++
net-im/scli/files/patch-scli | 11 +++++++++++
2 files changed, 15 insertions(+)
diff --git a/net-im/scli/Makefile b/net-im/scli/Makefile
index 55342fa46021..0409defd89c6 100644
--- a/net-im/scli/Makefile
+++ b/net-im/scli/Makefile
@@ -1,6 +1,7 @@
PORTNAME= scli
DISTVERSIONPREFIX= v
DISTVERSION= 0.6.4
+PORTREVISION= 1
CATEGORIES= net-im python
MAINTAINER= 0mp at FreeBSD.org
@@ -32,6 +33,9 @@ OPTIONS_DEFAULT= LINKING
LINKING_DESC= Linking support for the --link flag
LINKING_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyqrcode>=0:graphics/py-pyqrcode@${PY_FLAVOR}
+post-patch:
+ ${REINPLACE_CMD} 's|%%DOCSDIR%%|${DOCSDIR}|g' ${WRKSRC}/${PORTNAME}
+
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
diff --git a/net-im/scli/files/patch-scli b/net-im/scli/files/patch-scli
new file mode 100644
index 000000000000..9e3d0e081e18
--- /dev/null
+++ b/net-im/scli/files/patch-scli
@@ -0,0 +1,11 @@
+--- scli.orig 2021-07-28 12:44:13 UTC
++++ scli
+@@ -53,7 +53,7 @@ SCLI_CFG_FILE = os.path.join(CFG_FOLDER, 'sclirc')
+ SCLI_LOG_FILE = os.path.join(SCLI_DATA_FOLDER, 'log')
+
+ SCLI_EXEC_FOLDER = os.path.dirname(os.path.realpath(__file__))
+-SCLI_README_FILE = os.path.join(SCLI_EXEC_FOLDER, 'README.md')
++SCLI_README_FILE = os.path.join('%%DOCSDIR%%', 'README.md')
+
+
+ # #############################################################################
More information about the dev-commits-ports-all
mailing list