aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.ruby.mk
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2016-02-02 09:21:21 +0800
committerswills <swills@FreeBSD.org>2016-02-02 09:21:21 +0800
commit09d29507edd69b111c4172978457bc34bb8a929a (patch)
tree3fb94109ce8b10a0157aeca70bbbd90cc8db7819 /Mk/bsd.ruby.mk
parentc9cf4c5a9faeb0a6f61946dba96f5edd948cf285 (diff)
downloadfreebsd-ports-gnome-09d29507edd69b111c4172978457bc34bb8a929a.tar.gz
freebsd-ports-gnome-09d29507edd69b111c4172978457bc34bb8a929a.tar.zst
freebsd-ports-gnome-09d29507edd69b111c4172978457bc34bb8a929a.zip
Remove source and intermediate build output from intalled rubygem- ports
PR: 192949
Diffstat (limited to 'Mk/bsd.ruby.mk')
-rw-r--r--Mk/bsd.ruby.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/Mk/bsd.ruby.mk b/Mk/bsd.ruby.mk
index f7b14399e966..c9750b7bbb3a 100644
--- a/Mk/bsd.ruby.mk
+++ b/Mk/bsd.ruby.mk
@@ -501,6 +501,10 @@ do-build:
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/
+ ${FIND} ${STAGEDIR}${PREFIX}/${GEMS_BASE_DIR} -type f -name '*.so' -exec ${STRIP_CMD} {} +
+ ${FIND} ${STAGEDIR}${PREFIX}/${GEMS_BASE_DIR} -type f \( -name mkmf.log -or -name gem_make.out \) -print -delete
+ ${RM} -rf ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR}/ext \
+ ${STAGEDIR}${PREFIX}/${CACHE_DIR} 2> /dev/null || ${TRUE}
${RMDIR} ${STAGEDIR}${PREFIX}/${EXT_DIR} 2> /dev/null || ${TRUE}
.if defined(NOPORTDOCS)
-@${RMDIR} ${STAGEDIR}${PREFIX}/${DOC_DIR}
@@ -509,7 +513,6 @@ do-install:
. if defined(RUBYGEM_AUTOPLIST)
. if !target(post-install-script)
post-install-script:
- @${ECHO} ${GEM_CACHE} >> ${TMPPLIST}
@${ECHO} ${GEM_SPEC} >> ${TMPPLIST}
.if !defined(NOPORTDOCS)
@${FIND} -ds ${STAGEDIR}${PREFIX}/${DOC_DIR} -type f -print | ${SED} -E -e \