diff options
author | Cheng-Lung Sung <clsung@FreeBSD.org> | 2007-03-09 11:16:12 +0800 |
---|---|---|
committer | Cheng-Lung Sung <clsung@FreeBSD.org> | 2007-03-09 11:16:12 +0800 |
commit | 45ed55a9535f13b3a5c90a684d2ba1938caeef10 (patch) | |
tree | b654053a3ae73466825be7d0d523b8fec46dc058 /devel | |
parent | 77dc83a8e2e578765758036090b7e4855436a407 (diff) | |
download | freebsd-ports-gnome-45ed55a9535f13b3a5c90a684d2ba1938caeef10.tar.gz freebsd-ports-gnome-45ed55a9535f13b3a5c90a684d2ba1938caeef10.tar.zst freebsd-ports-gnome-45ed55a9535f13b3a5c90a684d2ba1938caeef10.zip |
- 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)
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 |