diff --git a/Mk/bsd.ruby.mk b/Mk/bsd.ruby.mk index 1cc1fa6ea664..d2a1dc0efa43 100644 --- a/Mk/bsd.ruby.mk +++ b/Mk/bsd.ruby.mk @@ -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)