Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Apr 2013 09:22:10 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r315731 - head/archivers/gzip
Message-ID:  <201304050922.r359MAYr020132@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Apr  5 09:22:10 2013
New Revision: 315731
URL: http://svnweb.freebsd.org/changeset/ports/315731

Log:
  Fix leftovers by using USES=charsetfix
  Remove now useless pre-configure target
  While here convert NOPORTDOCS to DOCS option
  
  Reported by:	pointyhat via miwi
  Approved by:	portmgr (implicit)

Modified:
  head/archivers/gzip/Makefile

Modified: head/archivers/gzip/Makefile
==============================================================================
--- head/archivers/gzip/Makefile	Fri Apr  5 08:23:44 2013	(r315730)
+++ head/archivers/gzip/Makefile	Fri Apr  5 09:22:10 2013	(r315731)
@@ -11,6 +11,7 @@ MASTER_SITE_SUBDIR=	${PORTNAME}
 MAINTAINER=	gabor@FreeBSD.org
 COMMENT=	Compression utility designed to be a replacement for compress
 
+USES=		charsetfix
 GNU_CONFIGURE=	yes
 
 MAN1=	gunzip.1 gzexe.1 gzip.1 zcat.1 zcmp.1 zdiff.1 zforce.1 \
@@ -20,27 +21,22 @@ INFO=	gzip
 DOC_FILES=	AUTHORS COPYING ChangeLog ChangeLog-2007 INSTALL NEWS README \
 		THANKS TODO
 
-OPTIONS_DEFINE=	RSYNCABLE
+OPTIONS_DEFINE=	RSYNCABLE DOCS
 OPTIONS_DEFAULT=	RSYNCABLE
 RSYNCABLE_DESC=	Include --rsyncable patch
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MRSYNCABLE}
 EXTRA_PATCHES=	${FILESDIR}/extra-patch-gzip-rsyncable.diff
 .endif
 
-post-configure:
-	@${REINPLACE_CMD} -e 's|^SHELL =.*|SHELL=/bin/sh|' ${WRKSRC}/Makefile
-	@${REINPLACE_CMD} -e 's|need_charset_alias=true|need_charset_alias=false|g' \
-		${WRKSRC}/lib/Makefile.in
-
 post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
 .for file in ${DOC_FILES}
 	@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
 .endfor
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304050922.r359MAYr020132>