Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Feb 2013 20:55:12 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r312736 - head/devel/newfile
Message-ID:  <201302212055.r1LKtCGq068392@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@Artistic
 %%DATADIR%%/licenses/Artistic@README



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