archivers/7-zip: provide compatibility link

- Provide 7z as a link to 7zz binary and mark conflict with p7zip
- Do not copy license file along with docs
This commit is contained in:
Max Brazhnikov 2022-05-24 20:25:38 +03:00
parent 288c859162
commit cf33840b7f

View File

@ -1,6 +1,6 @@
PORTNAME= 7-zip
DISTVERSION= 21.07
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= archivers
MASTER_SITES= https://www.7-zip.org/a/
DISTNAME= 7z${DISTVERSION:S/.//}-src
@ -8,6 +8,8 @@ DISTNAME= 7z${DISTVERSION:S/.//}-src
MAINTAINER= makc@FreeBSD.org
COMMENT= Console version of the 7-Zip file archiver
CONFLICTS_INSTALL= p7zip
LICENSE= BSD3CLAUSE LGPL21+ UNRAR
LICENSE_COMB= multi
LICENSE_NAME_UNRAR= unRAR license
@ -39,9 +41,10 @@ DOS2UNIX_FILES= C/CpuArch.c \
CPP/7zip/var_gcc.mak \
CPP/Windows/SystemInfo.cpp
PLIST_FILES= bin/7zz \
PLIST_FILES= bin/7z \
bin/7zz \
share/man/man1/7zz.1.gz
PORTDOCS= 7zC.txt 7zFormat.txt License.txt Methods.txt \
PORTDOCS= 7zC.txt 7zFormat.txt Methods.txt \
lzma.txt readme.txt src-history.txt
OPTIONS_DEFINE= DOCS
@ -51,6 +54,7 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/b/c/7zz ${STAGEDIR}/${PREFIX}/bin
${LN} -sf 7zz ${STAGEDIR}/${PREFIX}/bin/7z
${INSTALL_MAN} ${FILESDIR}/7zz.1 ${STAGEDIR}/${PREFIX}/share/man/man1
do-install-DOCS-on: