Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Uses/gem.mk
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
.if !target(do-extract) | .if !target(do-extract) | ||||
do-extract: | do-extract: | ||||
@${SETENV} ${GEM_ENV} ${RUBYGEMBIN} unpack --target=${WRKDIR} ${DISTDIR}/${DIST_SUBDIR}/${GEMFILES} | @${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 \ | @(cd ${BUILD_WRKSRC}; if ! ${SETENV} ${GEM_ENV} ${RUBYGEMBIN} spec --ruby ${DISTDIR}/${DIST_SUBDIR}/${GEMFILES} > ${GEMSPEC} ; then \ | ||||
if [ -n "${BUILD_FAIL_MESSAGE}" ] ; then \ | if [ -n "${BUILD_FAIL_MESSAGE}" ] ; then \ | ||||
${ECHO_MSG} "===> Extraction failed unexpectedly."; \ | ${ECHO_MSG} "===> Extraction failed unexpectedly."; \ | ||||
(${ECHO_CMD} "${BUILD_FAIL_MESSAGE}") | ${FMT} 75 79 ; \ | (${ECHO_CMD} "${BUILD_FAIL_MESSAGE}") | ${FMT_80} ; \ | ||||
fi; \ | fi; \ | ||||
${FALSE}; \ | ${FALSE}; \ | ||||
fi) | fi) | ||||
.endif | .endif | ||||
.if !target(do-build) | .if !target(do-build) | ||||
do-build: | do-build: | ||||
@(cd ${BUILD_WRKSRC}; if ! ${SETENV} ${GEM_ENV} ${RUBYGEMBIN} build --force ${GEMSPEC} ; then \ | @(cd ${BUILD_WRKSRC}; if ! ${SETENV} ${GEM_ENV} ${RUBYGEMBIN} build --force ${GEMSPEC} ; then \ | ||||
if [ -n "${BUILD_FAIL_MESSAGE}" ] ; then \ | if [ -n "${BUILD_FAIL_MESSAGE}" ] ; then \ | ||||
${ECHO_MSG} "===> Compilation failed unexpectedly."; \ | ${ECHO_MSG} "===> Compilation failed unexpectedly."; \ | ||||
(${ECHO_CMD} "${BUILD_FAIL_MESSAGE}") | ${FMT} 75 79 ; \ | (${ECHO_CMD} "${BUILD_FAIL_MESSAGE}") | ${FMT_80} ; \ | ||||
fi; \ | fi; \ | ||||
${FALSE}; \ | ${FALSE}; \ | ||||
fi) | fi) | ||||
.endif | .endif | ||||
.if !target(do-install) | .if !target(do-install) | ||||
do-install: | do-install: | ||||
(cd ${BUILD_WRKSRC}; ${SETENV} ${GEM_ENV} ${RUBYGEMBIN} install ${RUBYGEM_ARGS} ${GEMFILES} -- --build-args ${CONFIGURE_ARGS}) | (cd ${BUILD_WRKSRC}; ${SETENV} ${GEM_ENV} ${RUBYGEMBIN} install ${RUBYGEM_ARGS} ${GEMFILES} -- --build-args ${CONFIGURE_ARGS}) | ||||
Show All 28 Lines |