net-im/scli: Fix the help command
Now scli knows where to find the README file.
This commit is contained in:
parent
97fc4c4e11
commit
14aa140d81
2 changed files with 15 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
PORTNAME= scli
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 0.6.4
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net-im python
|
||||
|
||||
MAINTAINER= 0mp@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
|
||||
|
||||
|
|
11
net-im/scli/files/patch-scli
Normal file
11
net-im/scli/files/patch-scli
Normal file
|
@ -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')
|
||||
|
||||
|
||||
# #############################################################################
|
Loading…
Reference in a new issue