diff options
Diffstat (limited to 'devel')
-rw-r--r-- | devel/ruby-gems/Makefile.common | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/devel/ruby-gems/Makefile.common b/devel/ruby-gems/Makefile.common index 512f1239f1b8..2bc29f31d232 100644 --- a/devel/ruby-gems/Makefile.common +++ b/devel/ruby-gems/Makefile.common @@ -41,5 +41,13 @@ PLIST_SUB+= PORTVERSION="${PORTVERSION}" \ RUBYGEMBIN= ${LOCALBASE}/bin/gem +.if defined(DISTFILES) +GEMFILES= ${DISTFILES:C/:[^:]+$//} +.else +GEMFILES= ${DISTNAME}${EXTRACT_SUFX} +.endif + do-install: - ${RUBYGEMBIN} install --no-ri --install-dir ${PREFIX}/lib/ruby/gems/${REV} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} +.for _D in ${GEMFILES} + ${RUBYGEMBIN} install --no-ri --install-dir ${PREFIX}/lib/ruby/gems/${REV} ${DISTDIR}/${DIST_SUBDIR}/${_D} +.endfor |