diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-31 15:47:44 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-31 15:47:44 +0000 |
commit | 0d212600d576d27e183aeda5a78a2eb35a9013c6 (patch) | |
tree | 02a702ca45b43bfb4f091924280dd30c85a3aaed /misc/rubygems | |
parent | 52851c553431abea202ee576919962197fcb20af (diff) | |
download | pkgsrc-0d212600d576d27e183aeda5a78a2eb35a9013c6.tar.gz |
Set up the shell environment before calling ``gem'' during the extract
phase. Also set TZ to null to prevent timezone differences from
affecting the printing of the "date" field during the extraction of
the gemspec file.
Diffstat (limited to 'misc/rubygems')
-rw-r--r-- | misc/rubygems/rubygem.mk | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/misc/rubygems/rubygem.mk b/misc/rubygems/rubygem.mk index 6b2c5b49af4..3534038d2f8 100644 --- a/misc/rubygems/rubygem.mk +++ b/misc/rubygems/rubygem.mk @@ -1,4 +1,4 @@ -# $NetBSD: rubygem.mk,v 1.35 2008/03/31 15:40:43 jlam Exp $ +# $NetBSD: rubygem.mk,v 1.36 2008/03/31 15:47:44 jlam Exp $ # # This Makefile fragment is intended to be included by packages that build # and install Ruby gems. @@ -152,9 +152,10 @@ post-extract: gem-extract .if !target(gem-extract) gem-extract: . for _gem_ in ${DISTFILES:M*.gem} - ${RUN} cd ${WRKDIR} && ${RUBYGEM} unpack ${_DISTDIR:Q}/${_gem_:Q} - ${RUN} cd ${WRKDIR} && ${RUBYGEM} spec ${_DISTDIR:Q}/${_gem_:Q} \ - > ${_gem_}spec + ${RUN} cd ${WRKDIR} && ${SETENV} ${MAKE_ENV} \ + ${RUBYGEM} unpack ${_DISTDIR:Q}/${_gem_:Q} + ${RUN} cd ${WRKDIR} && ${SETENV} ${MAKE_ENV} TZ= \ + ${RUBYGEM} spec ${_DISTDIR:Q}/${_gem_:Q} > ${_gem_}spec . endfor .endif |