MFH: r547547

converters/recode: fix info file, add LICENCE, quiet portlint/portclippy

This has been broken for almost 10 months, and again 3 months of silence
from the maintainer, so let me step in to just fix it for the nonce.

- Add LICENSE=GPLv2+
- Add USES=makeinfo to fix .info file in clean-room builds (poudriere) [1]
- Reshuffle a few lines to please portclippy and portlint
- Bump PORTREVISION to flush out the broken packages and force rebuild

- Add DISABLED example to strip library in order to also please
  stage-qa with DEVELOPER=yes (would require maintainer approval),
  in post-install (just remove @: and the comment line to enable).

PR:		241879 [1]
Submitted by:	Victor Sudakov <vas@sibptus.ru> [1]
Approved by:	portmgr@ (blanket, see next line)
Approved by:	ports-secteam@ (blanket: add dependency to fix broken .info, add LICENSE, fix portlint/portclippy issues)
This commit is contained in:
Matthias Andree 2020-09-04 15:59:35 +00:00
parent a9a5515693
commit 6dbdf30a4d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2020Q3/; revision=547548

View File

@ -4,20 +4,24 @@
PORTNAME= recode PORTNAME= recode
PORTVERSION= 3.6 PORTVERSION= 3.6
DISTVERSIONPREFIX= v DISTVERSIONPREFIX= v
PORTREVISION= 14 PORTREVISION= 15
CATEGORIES= converters CATEGORIES= converters
MAINTAINER= demon@FreeBSD.org MAINTAINER= demon@FreeBSD.org
COMMENT= Converts files between character sets and usages COMMENT= Converts files between character sets and usages
LICENSE= GPLv2+
USES= gettext iconv libtool makeinfo perl5
USE_GITHUB= yes USE_GITHUB= yes
GH_ACCOUNT= pinard GH_ACCOUNT= pinard
GH_PROJECT= Recode GH_PROJECT= Recode
GNU_CONFIGURE= yes
USES= gettext iconv libtool perl5
USE_PERL5= run build
USE_LDCONFIG= yes USE_LDCONFIG= yes
USE_PERL5= run build
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-included-gettext CONFIGURE_ARGS= --without-included-gettext
CPPFLAGS+= -I${LOCALBASE}/include CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB} LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB}
@ -38,4 +42,8 @@ post-patch:
${WRKSRC}/src/libiconv.c ${WRKSRC}/src/libiconv.c
@${CP} ${WRKSRC}/lib/error.c ${WRKSRC}/src @${CP} ${WRKSRC}/lib/error.c ${WRKSRC}/src
# to enable, remove this line and the leading @: from the STRIP_CMD line
post-install:
@: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/librecode.so.*.*.*
.include <bsd.port.mk> .include <bsd.port.mk>