On Fri, Aug 27, 2021 at 10:29:23PM +0100, Stuart Henderson wrote:
> On 2021/08/27 21:03, Klemens Nanni wrote:
> > readme.md contains a fair bit of details about tg's config.py which
> > otherwise requries a browser to learn about.
> > 
> > OK?
> 
> Maybe just add fzf as a dep, except on sparc64 (where tg is built but
> fzf isn't)?

Can do that as well.  tg isn't built on sparc64 either since it
eventually depends on tdlib which is little-endian only.

Index: Makefile
===================================================================
RCS file: /cvs/ports/net/tg/Makefile,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 Makefile
--- Makefile    9 Jun 2021 10:44:05 -0000       1.1.1.1
+++ Makefile    27 Aug 2021 22:04:40 -0000
@@ -3,6 +3,7 @@
 COMMENT =      ncurses Telegram client
 
 MODPY_EGG_VERSION =    0.17.0
+REVISION =             0
 
 DISTNAME =     tg-${MODPY_EGG_VERSION}
 
@@ -19,6 +20,13 @@ MODPY_PI =           Yes
 MODPY_SETUPTOOLS =     Yes
 NO_TEST =              Yes
 
-RUN_DEPENDS =          net/py-telegram${MODPY_FLAVOR}
+RUN_DEPENDS =          net/py-telegram${MODPY_FLAVOR} \
+                       sysutils/fzf
+
+DOCDIR =               ${PREFIX}/share/doc/tg
+
+post-install:
+       ${INSTALL_DATA_DIR} ${DOCDIR}/
+       ${INSTALL_DATA} ${WRKSRC}/readme.md ${DOCDIR}/
 
 .include <bsd.port.mk>
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/net/tg/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- pkg/PLIST   9 Jun 2021 10:44:05 -0000       1.1.1.1
+++ pkg/PLIST   27 Aug 2021 22:05:52 -0000
@@ -33,3 +33,5 @@ lib/python${MODPY_VERSION}/site-packages
 lib/python${MODPY_VERSION}/site-packages/tg/update_handlers.py
 lib/python${MODPY_VERSION}/site-packages/tg/utils.py
 lib/python${MODPY_VERSION}/site-packages/tg/views.py
+share/doc/tg/
+share/doc/tg/readme.md

Reply via email to