From 8760f0badfecc25130ecd79d59d0d16da431313c Mon Sep 17 00:00:00 2001 From: Hajimu UMEMOTO Date: Sat, 5 Feb 2022 02:48:50 +0900 Subject: [PATCH] misc/lesspipe: update to 2.02 PR: 261271 Approved by: maintainer (timeout) --- misc/lesspipe/Makefile | 25 +++++++++++++++++++------ misc/lesspipe/distinfo | 5 +++-- misc/lesspipe/pkg-descr | 2 +- 3 files changed, 23 insertions(+), 9 deletions(-) diff --git a/misc/lesspipe/Makefile b/misc/lesspipe/Makefile index 63f635308e0e..4580eba6bc49 100644 --- a/misc/lesspipe/Makefile +++ b/misc/lesspipe/Makefile @@ -1,9 +1,9 @@ # Created by: Slaven Rezic PORTNAME= lesspipe -PORTVERSION= 1.83 +DISTVERSIONPREFIX= v +DISTVERSION= 2.02 CATEGORIES= misc -MASTER_SITES= SF MAINTAINER= slaven@rezic.de COMMENT= Preprocessor for less @@ -14,20 +14,33 @@ MY_DEPENDS= bash:shells/bash BUILD_DEPENDS= ${MY_DEPENDS} RUN_DEPENDS= ${MY_DEPENDS} -USES= perl5 +USES= perl5 shebangfix + +USE_GITHUB= yes +GH_ACCOUNT= wofr06 NO_BUILD= yes NO_ARCH= yes HAS_CONFIGURE= yes CONFIGURE_ARGS= --yes --prefix=${PREFIX} -PLIST_FILES= bin/lesspipe.sh bin/code2color man/man1/lesspipe.1.gz +SHEBANG_FILES= archive_color code2color lesscomplete lesspipe.sh + +PLIST_FILES= bin/archive_color bin/code2color bin/lesscomplete bin/lesspipe.sh \ + etc/bash_completion.d/less_completion man/man1/lesspipe.1.gz \ + share/zsh/site-functions/_less SUB_FILES= pkg-message do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/code2color ${STAGEDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/archive_color ${STAGEDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/code2color ${STAGEDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/lesscomplete ${STAGEDIR}${PREFIX}/bin ${INSTALL_SCRIPT} ${WRKSRC}/lesspipe.sh ${STAGEDIR}${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/lesspipe.1 ${STAGEDIR}${MANPREFIX}/man/man1 + @${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d + ${INSTALL_DATA} ${WRKSRC}/less_completion ${STAGEDIR}${PREFIX}/etc/bash_completion.d + @${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions + ${INSTALL_DATA} ${WRKSRC}/_less ${STAGEDIR}${PREFIX}/share/zsh/site-functions + ${INSTALL_MAN} ${WRKSRC}/lesspipe.1 ${STAGEDIR}${MANPREFIX}/man/man1 .include diff --git a/misc/lesspipe/distinfo b/misc/lesspipe/distinfo index be16bfe4f9aa..300971cfa3fa 100644 --- a/misc/lesspipe/distinfo +++ b/misc/lesspipe/distinfo @@ -1,2 +1,3 @@ -SHA256 (lesspipe-1.83.tar.gz) = d616f0d51852e60fb0d0801eec9c31b10e0acc6fdfdc62ec46ef7bfd60ce675e -SIZE (lesspipe-1.83.tar.gz) = 115129 +TIMESTAMP = 1642683865 +SHA256 (wofr06-lesspipe-v2.02_GH0.tar.gz) = f66da17dce756d06087ca0d9ff98f97e29cd3d026613853b60c174aa6fa0fd47 +SIZE (wofr06-lesspipe-v2.02_GH0.tar.gz) = 166136 diff --git a/misc/lesspipe/pkg-descr b/misc/lesspipe/pkg-descr index c570c6655e5c..4982203897b2 100644 --- a/misc/lesspipe/pkg-descr +++ b/misc/lesspipe/pkg-descr @@ -7,4 +7,4 @@ lesspipe is a powerful preprocessor for less(1). The features include * Optional syntax highlightning of source files -WWW: https://sourceforge.net/projects/lesspipe/ +WWW: https://www.zeuthen.desy.de/~friebel/unix/lesspipe.html