Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Apr 2023 10:17:20 GMT
From:      Ganael LAPLANCHE <martymac@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 8641bb99a224 - main - archivers/par2cmdline: Port cleanup
Message-ID:  <202304071017.337AHKiq002596@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by martymac:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8641bb99a224b0fadb276f475a1df32e0d7f9a4b

commit 8641bb99a224b0fadb276f475a1df32e0d7f9a4b
Author:     Ganael LAPLANCHE <martymac@FreeBSD.org>
AuthorDate: 2023-04-07 10:14:18 +0000
Commit:     Ganael LAPLANCHE <martymac@FreeBSD.org>
CommitDate: 2023-04-07 10:14:18 +0000

    archivers/par2cmdline: Port cleanup
    
    - Re-order PORTREVISION to make portlint happy
    - Respect 80 chars limit
    - Rework post-install target
    - Simplify pkg-descr
---
 archivers/par2cmdline/Makefile  | 11 ++++++-----
 archivers/par2cmdline/pkg-descr |  7 -------
 2 files changed, 6 insertions(+), 12 deletions(-)

diff --git a/archivers/par2cmdline/Makefile b/archivers/par2cmdline/Makefile
index a09e86392c41..2de049c361ab 100644
--- a/archivers/par2cmdline/Makefile
+++ b/archivers/par2cmdline/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	par2cmdline
 PORTVERSION=	0.8.1
-PORTREVISION=	2
 DISTVERSIONPREFIX=	v
+PORTREVISION=	2
 CATEGORIES=	archivers
 
 MAINTAINER=	martymac@FreeBSD.org
@@ -19,15 +19,16 @@ GH_ACCOUNT=	Parchive
 PORTDOCS=	README
 CONFLICTS=	par2cmdline-turbo
 
-PLIST_FILES=	bin/par2 bin/par2create bin/par2repair bin/par2verify man/man1/par2.1.gz
+PLIST_FILES=	bin/par2 bin/par2create bin/par2repair bin/par2verify \
+	man/man1/par2.1.gz
 
 OPTIONS_DEFINE=	DOCS
 
 TEST_TARGET=	check
 
-post-install:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
+post-install-DOCS-on:
+	${MKDIR} ${STAGEDIR}${DOCSDIR} && \
+		${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.pre.mk>
 
diff --git a/archivers/par2cmdline/pkg-descr b/archivers/par2cmdline/pkg-descr
index 619828325523..aa02a43e5368 100644
--- a/archivers/par2cmdline/pkg-descr
+++ b/archivers/par2cmdline/pkg-descr
@@ -2,10 +2,3 @@ Parity v2 Archive create/verify/recover
 
 par2cmdline is a program for creating and using PAR2 files to detect damage in
 data files and repair them if necessary. It can be used with any kind of file.
-Par files are especially popular on Usenet.
-
-OpenMP multithreading was originally developed by Jussi Kansanen:
-https://github.com/jkansanen/par2cmdline-mt
-The original development was done on Sourceforge but stalled. For more
-information from the original authors see:
-http://parchive.sourceforge.net



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304071017.337AHKiq002596>