summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorCheng-Lung Sung <clsung@FreeBSD.org>2007-03-09 03:16:12 +0000
committerCheng-Lung Sung <clsung@FreeBSD.org>2007-03-09 03:16:12 +0000
commit45ed55a9535f13b3a5c90a684d2ba1938caeef10 (patch)
treeb654053a3ae73466825be7d0d523b8fec46dc058 /devel
parent- Update to 1.2.2 (diff)
- This patch allows to use more than one gem file in rubygems port by defining DISTFILES.
PR: ports/109711 Submitted by: Alexander Logvinov <ports_AT_logvinov dot com> Approved by: maintainer (Jonathan Weiss)
Notes
Notes: svn path=/head/; revision=186951
Diffstat (limited to 'devel')
-rw-r--r--devel/ruby-gems/Makefile.common10
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