1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

misc/lv: Update to 4.51.20200728

- Add support of compressed file by zstd(1)

The maintainer has applied the patch from the submitter to upstream. And then
update this port to the upstream snapshot.

PR:		248267
Submitted by:	Yasuhiro KIMURA <yasu@utahime.org> (initial revision)
Reviewed by:	meta (myself)
Approved by:	IWAMOTO Kouichi <sue@iwmt.org> (maintainer, upstream developer)
This commit is contained in:
Koichiro Iwao 2020-07-28 13:10:40 +00:00
parent e0d1f70ef6
commit dc9185c79e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=543598
3 changed files with 8 additions and 29 deletions

View File

@ -2,9 +2,8 @@
# $FreeBSD$
PORTNAME= lv
PORTVERSION= 4.51
PORTVERSION= 4.51.20200728
DISTVERSIONPREFIX= v
PORTREVISION= 3
CATEGORIES= misc
MAINTAINER= sue@iwmt.org
@ -13,10 +12,12 @@ COMMENT= Powerful Multilingual File Viewer
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/../GPL.txt
USES= ncurses
USE_GITHUB= yes
GH_ACCOUNT= ttdoda
GH_TAGNAME= f7ba677
USES= ncurses
WRKSRC_SUBDIR= src
GNU_CONFIGURE= yes
@ -24,7 +25,7 @@ OPTIONS_DEFINE= DOCS
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKDIR}/${PORTNAME}-${PORTVERSION}; \
(cd ${WRKDIR}/${PORTNAME}-${GH_TAGNAME}; \
${INSTALL_DATA} *.html hello.sample* ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1464754259
SHA256 (ttdoda-lv-v4.51_GH0.tar.gz) = 9ffe9a6f835cd65f6dc2b31ce1b9890aa4d9423b46e72e29a3762f5ad90a5960
SIZE (ttdoda-lv-v4.51_GH0.tar.gz) = 616490
TIMESTAMP = 1595871444
SHA256 (ttdoda-lv-v4.51.20200728-f7ba677_GH0.tar.gz) = d3ccd54b742a9b3dd7b0bf02c1c4228c10eb3c9fc83fd47c659bbd146d48ce15
SIZE (ttdoda-lv-v4.51.20200728-f7ba677_GH0.tar.gz) = 612661

View File

@ -1,22 +0,0 @@
--- stream.c.orig 2003-11-13 03:08:19 UTC
+++ stream.c
@@ -43,6 +43,8 @@
private byte *gz_filter = "zcat";
private byte *bz2_filter = "bzcat";
+private byte *lzma_filter = "lzcat";
+private byte *xz_filter = "xzcat";
private stream_t *StreamAlloc()
{
@@ -75,6 +77,10 @@ public stream_t *StreamOpen( byte *file
filter = gz_filter;
else if( !strcmp( "bz2", exts ) || !strcmp( "BZ2", exts ) )
filter = bz2_filter;
+ else if( !strcmp( "lzma", exts ) || !strcmp( "LZMA", exts ) )
+ filter = lzma_filter;
+ else if( !strcmp( "xz", exts ) || !strcmp( "XZ", exts ) )
+ filter = xz_filter;
}
if( NULL != filter ){
/*