svn commit: r441624 - head/textproc/rubygem-cld3
Joseph Mingrone
jrm at FreeBSD.org
Wed May 24 22:25:03 UTC 2017
Author: jrm
Date: Wed May 24 22:25:01 2017
New Revision: 441624
URL: https://svnweb.freebsd.org/changeset/ports/441624
Log:
textproc/rubygem-cld3: Prevent removal of ext directory, because a shared
library is searched for and installed there.
Approved by: swills (mentor, implicit)
Modified:
head/textproc/rubygem-cld3/Makefile
Modified: head/textproc/rubygem-cld3/Makefile
==============================================================================
--- head/textproc/rubygem-cld3/Makefile Wed May 24 22:14:14 2017 (r441623)
+++ head/textproc/rubygem-cld3/Makefile Wed May 24 22:25:01 2017 (r441624)
@@ -17,4 +17,16 @@ RUN_DEPENDS= devel/protobuf>0:devel/prot
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>
More information about the svn-ports-head
mailing list