Make the do-{build,extract,install} targets overrideable.

Approved by:	swills (mentor)
This commit is contained in:
Brad Davis 2016-03-29 20:12:49 +00:00
parent ea48ee6cc6
commit ad6237a51a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=412134

View File

@ -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)