Re: git: b443f3c42fee - main - net-im/scli: Fix scli --version

From: Joseph Mingrone <jrm_at_FreeBSD.org>
Date: Tue, 05 Oct 2021 10:12:37 UTC
On Tue, 2021-10-05 at 08:35, Mateusz Piotrowski <0mp@FreeBSD.org> wrote:

> The branch main has been updated by 0mp:

> URL: https://cgit.FreeBSD.org/ports/commit/?id=b443f3c42fee9c289df7b674279fd26d0a083a1c

> commit b443f3c42fee9c289df7b674279fd26d0a083a1c
> Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
> AuthorDate: 2021-10-05 08:08:49 +0000
> Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
> CommitDate: 2021-10-05 08:34:49 +0000

>     net-im/scli: Fix scli --version
> ---
>  net-im/scli/Makefile | 13 ++++++++++---
>  1 file changed, 10 insertions(+), 3 deletions(-)

> diff --git a/net-im/scli/Makefile b/net-im/scli/Makefile
> index 0409defd89c6..f95ad6815109 100644
> --- a/net-im/scli/Makefile
> +++ b/net-im/scli/Makefile
> @@ -1,7 +1,7 @@
>  PORTNAME=	scli
>  DISTVERSIONPREFIX=	v
>  DISTVERSION=	0.6.4
> -PORTREVISION=	1
> +PORTREVISION=	2
>  CATEGORIES=	net-im python

>  MAINTAINER=	0mp@FreeBSD.org
> @@ -23,7 +23,11 @@ SHEBANG_FILES=	${PORTNAME}
>  NO_ARCH=	yes
>  NO_BUILD=	yes

> -PLIST_FILES=	bin/${PORTNAME}
> +PLIST_FILES=	bin/${PORTNAME} \
> +		share/${PORTNAME}/${PORTNAME} \
> +		share/${PORTNAME}/VERSION
> +
> +SUB_FILES=	scli

Is there a missing ${FILESDIR}/scli.in?

>  PORTDOCS=	README.md screenshots/1.png screenshots/2.png screenshots/3.png

> @@ -37,7 +41,10 @@ post-patch:
>  	${REINPLACE_CMD} 's|%%DOCSDIR%%|${DOCSDIR}|g' ${WRKSRC}/${PORTNAME}

>  do-install:
> -	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
> +	@${MKDIR} ${STAGEDIR}${DATADIR}
> +	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${DATADIR}
> +	${INSTALL_DATA} ${WRKSRC}/VERSION ${STAGEDIR}${DATADIR}
> +	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin

>  post-install-DOCS-on:
>  	@${MKDIR} ${STAGEDIR}${DOCSDIR}