aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjrm <jrm@FreeBSD.org>2017-05-25 06:25:01 +0800
committerjrm <jrm@FreeBSD.org>2017-05-25 06:25:01 +0800
commitf58f1f810a100822b5788229a5d41b68a5e1d541 (patch)
tree87b52f204430ed05869f8a243edf26a61b3e3c36
parent5f5eec98a46bce1f6b08e38c89b361d8882c2bc3 (diff)
downloadfreebsd-ports-gnome-f58f1f810a100822b5788229a5d41b68a5e1d541.tar.gz
freebsd-ports-gnome-f58f1f810a100822b5788229a5d41b68a5e1d541.tar.zst
freebsd-ports-gnome-f58f1f810a100822b5788229a5d41b68a5e1d541.zip
textproc/rubygem-cld3: Prevent removal of ext directory, because a shared
library is searched for and installed there. Approved by: swills (mentor, implicit)
-rw-r--r--textproc/rubygem-cld3/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/textproc/rubygem-cld3/Makefile b/textproc/rubygem-cld3/Makefile
index 071c8676c09c..b273fbab15d6 100644
--- a/textproc/rubygem-cld3/Makefile
+++ b/textproc/rubygem-cld3/Makefile
@@ -17,4 +17,16 @@ RUN_DEPENDS= devel/protobuf>0:devel/protobuf \
USE_RUBY= yes
USES= gem pkgconfig
+## do-install here to prevent removal of ext
+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 \) -delete
+ ${RM} -r ${STAGEDIR}${PREFIX}/${CACHE_DIR} 2> /dev/null || ${TRUE}
+ ${RMDIR} ${STAGEDIR}${PREFIX}/${EXT_DIR} 2> /dev/null || ${TRUE}
+
.include <bsd.port.mk>