svn commit: r412134 - head/Mk
Brad Davis
brd at FreeBSD.org
Tue Mar 29 20:12:51 UTC 2016
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)
More information about the svn-ports-head
mailing list