From owner-svn-ports-head@FreeBSD.ORG Mon Apr 7 16:08:54 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D4D35F7C; Mon, 7 Apr 2014 16:08:54 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A76731B5; Mon, 7 Apr 2014 16:08:54 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s37G8sji022810; Mon, 7 Apr 2014 16:08:54 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s37G8scC022809; Mon, 7 Apr 2014 16:08:54 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201404071608.s37G8scC022809@svn.freebsd.org> From: Baptiste Daroussin Date: Mon, 7 Apr 2014 16:08:54 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r350516 - head/textproc/ruby-htree X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Apr 2014 16:08:54 -0000 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 - -.if !defined(RUBY_PROVIDED) -IGNORE= only works with Ruby 1.8.0 or later -.endif +.include 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 +.include