Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Nov 2012 21:42:39 +0000 (UTC)
From:      Niclas Zeising <zeising@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r307202 - head/graphics/feh
Message-ID:  <201211082142.qA8Lgewt029853@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zeising
Date: Thu Nov  8 21:42:39 2012
New Revision: 307202
URL: http://svnweb.freebsd.org/changeset/ports/307202

Log:
  Remove unneeded sed in post-patch.
  Convert to OptionsNG
  While here, fix whitespace in Makefile header.
  
  PR:		ports/173443
  Submitted by:	nemysis <nemysis@gmx.ch>
  Approved by:	kwm, miwi (mentors, implicit)
  Feature safe:	yes

Modified:
  head/graphics/feh/Makefile

Modified: head/graphics/feh/Makefile
==============================================================================
--- head/graphics/feh/Makefile	Thu Nov  8 21:37:55 2012	(r307201)
+++ head/graphics/feh/Makefile	Thu Nov  8 21:42:39 2012	(r307202)
@@ -1,4 +1,4 @@
-# Created by:				Jeremy Norris <ishmael27@home.com>
+# Created by: Jeremy Norris <ishmael127@home.com>
 # $FreeBSD$
 
 PORTNAME=	feh
@@ -29,16 +29,16 @@ MAKE_ENV+=	LDFLAGS="${LDFLAGS}"
 
 PORTDOCS=	AUTHORS ChangeLog README TODO
 
+.include	<bsd.port.options.mk>
+
 post-patch:
-	@${REINPLACE_CMD} 's#/bin/bash#/bin/sh#' ${WRKSRC}/cam/gen-cam-menu
-	@${REINPLACE_CMD} 's#/install-man install-doc#install-man#' ${WRKSRC}/Makefile
+	@${REINPLACE_CMD} 's#/install-man install-doc#install-man#' \
+		${WRKSRC}/Makefile
 
 post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOC}
 	@${MKDIR} ${DOCSDIR}
-.for doc in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
-.endfor
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>



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