svn commit: r506836 - head/deskutils/cfiles

Yuri Victorovich yuri at FreeBSD.org
Thu Jul 18 03:53:22 UTC 2019


Author: yuri
Date: Thu Jul 18 03:53:21 2019
New Revision: 506836
URL: https://svnweb.freebsd.org/changeset/ports/506836

Log:
  deskutils/cfiles: Add dependencies
  
  I couldn't make image and pdf previews work because the corresponding processes fail due to incorrect command lines.
  The upstream is notified.
  
  Reported by:	Lars Engels <lars.engels at 0x20.net>

Modified:
  head/deskutils/cfiles/Makefile

Modified: head/deskutils/cfiles/Makefile
==============================================================================
--- head/deskutils/cfiles/Makefile	Wed Jul 17 23:47:11 2019	(r506835)
+++ head/deskutils/cfiles/Makefile	Thu Jul 18 03:53:21 2019	(r506836)
@@ -3,6 +3,7 @@
 PORTNAME=	cfiles
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.7.2
+PORTREVISION=	1
 CATEGORIES=	deskutils
 
 MAINTAINER=	yuri at FreeBSD.org
@@ -11,8 +12,11 @@ COMMENT=	Ncurses file manager written in C with vim-li
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-#RUN_DEPENDS=	${LOCALBASE}/libexec/w3m/w3mimgdisplay:www/w3m # w3mimgdisplay is used from scripts/displayimg but www/w3m doesn't install it by default
-RUN_DEPENDS=	bash:shells/bash
+RUN_DEPENDS=	${LOCALBASE}/libexec/w3m/w3mimgdisplay:www/w3m-img \
+		atool:archivers/atool \
+		bash:shells/bash \
+		fzf:textproc/fzf \
+		pdftoppm:graphics/poppler-utils
 
 USES=		ncurses:port pkgconfig shebangfix
 SHEBANG_FILES=	scripts/*
@@ -28,11 +32,17 @@ PLIST_FILES=	bin/${PORTNAME} \
 		${DATADIR}/scripts/displayimg \
 		${DATADIR}/scripts/displayimg_uberzug
 
+post-patch:
+	@${REINPLACE_CMD} -E 's,"(atool|fzf|pdftoppm)","${LOCALBASE}/bin/\1",g; s|"/bin/bash"|"${LOCALBASE}/bin/bash"|' \
+		${WRKSRC}/cf.c
+	@${REINPLACE_CMD} -E 's|W3MIMGDISPLAY="/usr/lib/w3m/w3mimgdisplay"|W3MIMGDISPLAY="${LOCALBASE}/libexec/w3m/w3mimgdisplay"|' \
+		${WRKSRC}/scripts/displayimg ${WRKSRC}/scripts/clearimg
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
 	${MKDIR} ${STAGEDIR}${PREFIX}/share/cfiles/scripts
 .for s in clearimg displayimg displayimg_uberzug clearimg_uberzug
-	${INSTALL_SCRIPT} ${WRKSRC}/scripts/${s} ${STAGEDIR}${PREFIX}/share/cfiles/scripts
+	${INSTALL_SCRIPT} ${WRKSRC}/scripts/${s} ${STAGEDIR}${DATADIR}/scripts
 .endfor
 	${INSTALL_MAN} ${WRKSRC}/cfiles.1 ${STAGEDIR}${MAN5PREFIX}/man/man1
 


More information about the svn-ports-all mailing list