svn commit: r331037 - head/devel/newfile

Eitan Adler eadler at FreeBSD.org
Sun Oct 20 17:25:58 UTC 2013


Author: eadler
Date: Sun Oct 20 17:25:57 2013
New Revision: 331037
URL: http://svnweb.freebsd.org/changeset/ports/331037

Log:
  - Convert to staging

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

Modified: head/devel/newfile/Makefile
==============================================================================
--- head/devel/newfile/Makefile	Sun Oct 20 16:38:51 2013	(r331036)
+++ head/devel/newfile/Makefile	Sun Oct 20 17:25:57 2013	(r331037)
@@ -15,17 +15,19 @@ LICENSE=	BSD
 USE_RUBY=	yes
 GNU_CONFIGURE=	yes
 
-MAN1=		newfile.1
 PORTDOCS=	newfile.html
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
+post-configure:
+	${REINPLACE_CMD} '282s,$$(pkgdatadir)/newfile.rb,$$(DESTDIR)$$(pkgdatadir)/newfile.rb,' ${WRKSRC}/src/Makefile
+	${REINPLACE_CMD} '287s,$$(bindir)/newfile,$$(DESTDIR)$$(bindir)/newfile,' ${WRKSRC}/src/Makefile
+
 post-install:
-	${INSTALL_MAN} ${WRKSRC}/doc/newfile.1 ${MAN1PREFIX}/man/man1
+	${INSTALL_MAN} ${WRKSRC}/doc/newfile.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
 .if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-	cd ${WRKSRC}/doc/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	cd ${WRKSRC}/doc/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
 .endif
 
 .include <bsd.port.mk>

Modified: head/devel/newfile/pkg-plist
==============================================================================
--- head/devel/newfile/pkg-plist	Sun Oct 20 16:38:51 2013	(r331036)
+++ head/devel/newfile/pkg-plist	Sun Oct 20 17:25:57 2013	(r331037)
@@ -1,5 +1,6 @@
 @comment $FreeBSD$
 bin/newfile
+man/man1/newfile.1.gz
 %%DATADIR%%/fileproc.rb
 %%DATADIR%%/licenses/Artistic at Artistic
 %%DATADIR%%/licenses/Artistic at README


More information about the svn-ports-head mailing list