summaryrefslogblamecommitdiff
path: root/archivers/sharutils/Makefile
blob: b0bed5d2ce15da45a2a3de46e4336e496a546938 (plain) (tree)
1
2
3
4
5
6
7
8
9
                  
           
 
                         
                      
                 
                         
                   
 
                                 
                                                                             
 

                     
                   
 
                   
                   
                   
                                                   
                                   
                                 
                         
                                
 


                          
                      
                       
                                                    


                               

      



















                                                
                           
# Created by: ache
# $FreeBSD$

PORTNAME=	sharutils
PORTVERSION=	4.13.5
PORTREVISION=	1
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

NO_STAGE=	yes
USE_XZ=		yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--program-prefix=g --disable-uucode
INSTALL_TARGET=	install install-man
MAN1=		gshar.1 gunshar.1
INFO=		sharutils
USES=		charsetfix perl5

.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MNLS}
PLIST_SUB+=	NLS=""
USES+=		gettext
CONFIGURE_ARGS+=--with-libintl-prefix="${LOCALBASE}"
.else
PLIST_SUB+=	NLS="@comment "
CONFIGURE_ARGS+=--disable-nls
.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.post.mk>