Date: Mon, 7 Apr 2014 16:08:54 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r350516 - head/textproc/ruby-htree Message-ID: <201404071608.s37G8scC022809@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Mon Apr 7 16:08:54 2014 New Revision: 350516 URL: http://svnweb.freebsd.org/changeset/ports/350516 QAT: https://qat.redports.org/buildarchive/r350516/ Log: Support stage Modified: head/textproc/ruby-htree/Makefile Modified: head/textproc/ruby-htree/Makefile ============================================================================== --- head/textproc/ruby-htree/Makefile Mon Apr 7 16:04:38 2014 (r350515) +++ head/textproc/ruby-htree/Makefile Mon Apr 7 16:08:54 2014 (r350516) @@ -11,6 +11,8 @@ DIST_SUBDIR= ruby MAINTAINER= knu@FreeBSD.org COMMENT= A Ruby library to manipulate HTML/XML tree data structure +OPTIONS_DEFINE= DOCS + USE_RUBY= yes USE_RUBY_RD2= yes USE_RUBY_RDOC= yes @@ -20,40 +22,22 @@ LIB_FILES= htree.rb htree DOCS= README \ ${RUBY_RD_HTML_FILES} \ doc +DOCSDIR= ${RUBY_MODDOCDIR} +PORTDOCS= * -RUBY_REQUIRE= Ruby >= 180 - -NO_STAGE= yes -.include <bsd.port.pre.mk> - -.if !defined(RUBY_PROVIDED) -IGNORE= only works with Ruby 1.8.0 or later -.endif +.include <bsd.port.options.mk> do-build: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} cd ${BUILD_WRKSRC}; ${RUBY_RDOC} ${LIB_FILES} .endif -do-install: doc-install - cd ${INSTALL_WRKSRC}; ${CP} -R ${LIB_FILES} ${RUBY_SITELIBDIR}/ - -doc-install: -.if !defined(NOPORTDOCS) - ${MKDIR} ${RUBY_MODDOCDIR} +do-install: + @${MKDIR} ${STAGEDIR}${RUBY_SITELIBDIR} + cd ${INSTALL_WRKSRC}; ${CP} -R ${LIB_FILES} ${STAGEDIR}${RUBY_SITELIBDIR}/ + @${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR} .for f in ${DOCS} - ${CP} -R ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ + ${CP} -R ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODDOCDIR}/ .endfor -.endif - -post-install: -.if !defined(NOPORTDOCS) - @${FIND} -ds ${RUBY_MODDOCDIR} -type f -print | ${SED} -E -e \ - 's,^${PREFIX}/?,,' >> ${TMPPLIST} - @${FIND} -ds ${RUBY_MODDOCDIR} -type d -print | ${SED} -E -e \ - 's,^${PREFIX}/?,@dirrm ,' >> ${TMPPLIST} - @${ECHO_CMD} "@unexec rmdir %D/share/doc/${RUBY_NAME} \ - 2>/dev/null || true" >> ${TMPPLIST} -.endif -.include <bsd.port.post.mk> +.include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404071608.s37G8scC022809>