Date: Tue, 29 Mar 2016 20:12:50 +0000 (UTC) From: Brad Davis <brd@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r412134 - head/Mk Message-ID: <201603292012.u2TKCotx042969@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: brd Date: Tue Mar 29 20:12:49 2016 New Revision: 412134 URL: https://svnweb.freebsd.org/changeset/ports/412134 Log: Make the do-{build,extract,install} targets overrideable. Approved by: swills (mentor) Modified: head/Mk/bsd.ruby.mk Modified: head/Mk/bsd.ruby.mk ============================================================================== --- head/Mk/bsd.ruby.mk Tue Mar 29 20:08:03 2016 (r412133) +++ head/Mk/bsd.ruby.mk Tue Mar 29 20:12:49 2016 (r412134) @@ -479,6 +479,7 @@ RUBYGEM_ARGS+= --no-rdoc --no-ri RUBYGEM_ARGS+= --rdoc --ri .endif +.if !target(do-extract) do-extract: @${SETENV} ${GEM_ENV} ${RUBYGEMBIN} unpack --target=${WRKDIR} ${DISTDIR}/${DIST_SUBDIR}/${GEMFILES} @(cd ${BUILD_WRKSRC}; if ! ${SETENV} ${GEM_ENV} ${RUBYGEMBIN} spec --ruby ${DISTDIR}/${DIST_SUBDIR}/${GEMFILES} > ${GEMSPEC} ; then \ @@ -488,7 +489,9 @@ do-extract: fi; \ ${FALSE}; \ fi) +.endif +.if !target(do-build) do-build: @(cd ${BUILD_WRKSRC}; if ! ${SETENV} ${GEM_ENV} ${RUBYGEMBIN} build --force ${GEMSPEC} ; then \ if [ -n "${BUILD_FAIL_MESSAGE}" ] ; then \ @@ -497,7 +500,9 @@ do-build: fi; \ ${FALSE}; \ fi) +.endif +.if !target(do-install) do-install: (cd ${BUILD_WRKSRC}; ${SETENV} ${GEM_ENV} ${RUBYGEMBIN} install ${RUBYGEM_ARGS} ${GEMFILES} -- --build-args ${CONFIGURE_ARGS}) ${RM} -r ${STAGEDIR}${PREFIX}/${GEMS_BASE_DIR}/build_info/ @@ -509,6 +514,7 @@ do-install: .if defined(NOPORTDOCS) -@${RMDIR} ${STAGEDIR}${PREFIX}/${DOC_DIR} .endif +.endif . if defined(RUBYGEM_AUTOPLIST) . if !target(post-install-script)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603292012.u2TKCotx042969>