- Fix gshar.1 and gunshar.1

- Pet portlint

PR:		ports/161761
Submitted by:	Takefu <takefu@airport.fm>
Feature safe:	yes
This commit is contained in:
Renato Botelho 2011-11-16 21:19:48 +00:00
parent 6dcf941c1b
commit 39da277963
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=285936

View file

@ -14,6 +14,8 @@ MASTER_SITES= GNU
MAINTAINER= garga@FreeBSD.org
COMMENT= Pack, send and unpack shell archives; synchronize via e-mail
LICENSE= GPLv3
USE_BZIP2= yes
USE_PERL5= yes
GNU_CONFIGURE= yes
@ -23,8 +25,6 @@ INSTALL_TARGET= install install-man
MAN1= gshar.1 gunshar.1
INFO= sharutils
LICENSE= GPLv3
.if defined(WITHOUT_NLS)
PLIST_SUB+= NLS="@comment "
CONFIGURE_ARGS+=--disable-nls
@ -34,4 +34,24 @@ USE_GETTEXT= yes
CONFIGURE_ARGS+=--with-libintl-prefix="${LOCALBASE}"
.endif
post-patch:
.for man in shar.1 unshar.1
@${REINPLACE_CMD} \
-e 's, SHAR , GSHAR ,' \
-e 's,Shar,Gshar,' \
-e 's, shar , gshar ,g' \
-e 's,^shar ,gshar ,' \
-e 's, UNSHAR , GUNSHAR ,' \
-e 's,Unshar,Gunshar,' \
-e 's,^unshar ,gunshar ,' \
-e 's,f2shar\\f1,f2gshar\\f1,' \
-e 's, unshar , gunshar ,g' \
-e 's,gshar file,shar file,g' \
-e 's,shar\,,gshar\,,' \
-e 's,shar(,gshar(,' \
-e 's,unshar(,gunshar(,' \
-e 's, shar\$$, gshar,' \
${WRKSRC}/doc/${man}
.endfor
.include <bsd.port.mk>