freebsd-ports/archivers/sharutils/Makefile
Baptiste Daroussin 7990f81066 Install texinfo files (GNU info) into ${PREFIX}/share/info
After a discussion on the mailing list on moving manpages to
${PREFIX}/share/man for consistency with base where it is
installed in usr/share/man, it appeared the same should happen
to GNU info files which were installed under share in base and
not in ports.

Now texinfo is not in base on any of the supported version of FreeBSD
it is possible to proceed to this move and it is easier to do than
the manpage change.

Other benefit than consistency are less patching: all build tools but
cmake are expecting info files to be under share/info and cmake (patched here)
was having an exception for BSD so the patch makes FreeBSD case less
specific for them

Bump revision of all impacted ports

PR:		232907
exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D17816
2018-11-10 18:12:57 +00:00

52 lines
1.2 KiB
Makefile

# Created by: ache
# $FreeBSD$
PORTNAME= sharutils
PORTVERSION= 4.15.2
PORTREVISION= 2
CATEGORIES= archivers
MASTER_SITES= GNU
MAINTAINER= garga@FreeBSD.org
COMMENT= Pack, send, and unpack shell archives; synchronize via e-mail
LICENSE= GPLv3
OPTIONS_DEFINE= NLS
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --program-prefix=g --disable-uucode
INSTALL_TARGET= install install-man
INFO= sharutils
USES= charsetfix cpe perl5 tar:xz
USE_PERL5= build
OPTIONS_SUB= yes
CPE_VENDOR= gnu
NLS_USES= gettext
NLS_CONFIGURE_ON= --with-libintl-prefix="${LOCALBASE}"
NLS_CONFIGURE_OFF= --disable-nls
post-patch:
@${REINPLACE_CMD} -e '/Please include config.h first./ s,^.*$$,#include <config.h>,' \
${WRKSRC}/lib/unistd.in.h
.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>