diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-17 19:33:25 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-17 19:33:25 +0000 |
commit | cc71b06e1276b1799b0f6c5b030e7bac8bfcdcee (patch) | |
tree | b7371baed46d910a22a646bcd5f65c135500f180 /misc/rubygems | |
parent | e4ba95eba553d228ee6a62e2baa9055915ddb8ad (diff) | |
download | pkgsrc-cc71b06e1276b1799b0f6c5b030e7bac8bfcdcee.tar.gz |
Pass MAKE_ENV to the build process when building the gem from the
unpacked sources. This fixes certain checks for $HOME, $PATH and the
like.
Diffstat (limited to 'misc/rubygems')
-rw-r--r-- | misc/rubygems/rubygem.mk | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/misc/rubygems/rubygem.mk b/misc/rubygems/rubygem.mk index 92c397ce77d..9015446c171 100644 --- a/misc/rubygems/rubygem.mk +++ b/misc/rubygems/rubygem.mk @@ -1,4 +1,4 @@ -# $NetBSD: rubygem.mk,v 1.20 2008/03/14 16:41:21 jlam Exp $ +# $NetBSD: rubygem.mk,v 1.21 2008/03/17 19:33:25 jlam Exp $ # # This Makefile fragment is intended to be included by packages that build # and install Ruby gems. @@ -156,10 +156,11 @@ do-build: gem-build gem-build: gem-${GEM_BUILD}-build gem-gemspec-build: - ${RUN} cd ${WRKSRC} && ${RUBYGEM} build ${_GEMSPEC_FILE} + ${RUN} cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \ + ${RUBYGEM} build ${_GEMSPEC_FILE} gem-rake-build: - ${RUN} cd ${WRKSRC} && ${RAKE} gem + ${RUN} cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${RAKE} gem ${RUN} cd ${WRKSRC} && rm -f ${GEM_NAME}.gem ${RUN} cd ${WRKSRC} && find . -name ${GEM_NAME}.gem -print | \ while read file; do \ |