Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Oct 2013 17:25:57 +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: r331037 - head/devel/newfile
Message-ID:  <201310201725.r9KHPvri053258@svn.freebsd.org>

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



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