svn commit: r312736 - head/devel/newfile

Eitan Adler eadler at FreeBSD.org
Thu Feb 21 20:55:12 UTC 2013


Author: eadler
Date: Thu Feb 21 20:55:11 2013
New Revision: 312736
URL: http://svnweb.freebsd.org/changeset/ports/312736

Log:
  - Use PORTDOCS
  - Fix OptionsNG usage
  
  Reviewed by:	sunpoet

Modified:
  head/devel/newfile/Makefile
  head/devel/newfile/pkg-plist

Modified: head/devel/newfile/Makefile
==============================================================================
--- head/devel/newfile/Makefile	Thu Feb 21 20:03:31 2013	(r312735)
+++ head/devel/newfile/Makefile	Thu Feb 21 20:55:11 2013	(r312736)
@@ -14,15 +14,15 @@ USE_RUBY=	yes
 GNU_CONFIGURE=	yes
 
 MAN1=		newfile.1
-DOCS=		doc/newfile.html
+PORTDOCS=	newfile.html
 
 .include <bsd.port.options.mk>
 
 post-install:
 	${INSTALL_MAN} ${WRKSRC}/doc/newfile.1 ${MAN1PREFIX}/man/man1
-.if defined (${PORT_OPTIONS:MDOCS})
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
+	cd ${WRKSRC}/doc/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
 .endif
 
 .include <bsd.port.mk>

Modified: head/devel/newfile/pkg-plist
==============================================================================
--- head/devel/newfile/pkg-plist	Thu Feb 21 20:03:31 2013	(r312735)
+++ head/devel/newfile/pkg-plist	Thu Feb 21 20:55:11 2013	(r312736)
@@ -1,7 +1,5 @@
 @comment $FreeBSD$
 bin/newfile
-%%PORTDOCS%%%%DOCSDIR%%/newfile.html
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
 %%DATADIR%%/fileproc.rb
 %%DATADIR%%/licenses/Artistic at Artistic
 %%DATADIR%%/licenses/Artistic at README


More information about the svn-ports-head mailing list