Date: Fri, 29 Aug 2014 21:33:54 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r366570 - in head/devel/newfile: . files Message-ID: <201408292133.s7TLXsKt092100@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sunpoet Date: Fri Aug 29 21:33:54 2014 New Revision: 366570 URL: http://svnweb.freebsd.org/changeset/ports/366570 QAT: https://qat.redports.org/buildarchive/r366570/ Log: - Use patch file instead of REINPLACE_CMD in post-configure: Added: head/devel/newfile/files/patch-src-Makefile.in (contents, props changed) Modified: head/devel/newfile/Makefile Modified: head/devel/newfile/Makefile ============================================================================== --- head/devel/newfile/Makefile Fri Aug 29 21:31:27 2014 (r366569) +++ head/devel/newfile/Makefile Fri Aug 29 21:33:54 2014 (r366570) @@ -12,19 +12,15 @@ COMMENT= Tool for creating starter files LICENSE= BSD3CLAUSE -USE_RUBY= yes GNU_CONFIGURE= yes NO_ARCH= yes +USE_RUBY= yes PORTDOCS= newfile.html -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 ${STAGEDIR}${MAN1PREFIX}/man/man1 - ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_MAN} ${WRKSRC}/doc/newfile.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/ + ${MKDIR} ${STAGEDIR}${DOCSDIR}/ cd ${WRKSRC}/doc/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/ .include <bsd.port.mk> Added: head/devel/newfile/files/patch-src-Makefile.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/newfile/files/patch-src-Makefile.in Fri Aug 29 21:33:54 2014 (r366570) @@ -0,0 +1,17 @@ +--- src/Makefile.in.orig 2003-11-03 20:49:37.000000000 +0800 ++++ src/Makefile.in 2014-08-30 04:12:00.646368587 +0800 +@@ -279,12 +279,12 @@ + + + install-data-hook: +- chmod +x $(pkgdatadir)/newfile.rb ++ chmod +x $(DESTDIR)$(pkgdatadir)/newfile.rb + + install-exec-hook: + -mkdir -p $(bindir) || true + -rm -f $(bindir)/newfile || true +- ln -s $(pkgdatadir)/newfile.rb $(bindir)/newfile ++ ln -s $(pkgdatadir)/newfile.rb $(DESTDIR)$(bindir)/newfile + #EOF + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408292133.s7TLXsKt092100>