diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-09-11 19:05:07 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-09-12 09:53:37 +0100 |
commit | 4792a3c4f569895f111e20277b94dac15aa51eae (patch) | |
tree | ec4ca6b8fd4b67f689c3542698e12e7d4e910476 | |
parent | 48e617b326693a3ca96d92e3ceb46b55833f505c (diff) | |
download | definitions-4792a3c4f569895f111e20277b94dac15aa51eae.tar.gz |
chef: Manually fix Erubis build
Seems to use an obsolete build system called 'rook', which I cannot get
to work.
-rw-r--r-- | strata/chef/erubis-master.morph | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/strata/chef/erubis-master.morph b/strata/chef/erubis-master.morph index 38e7d0cf..70646f08 100644 --- a/strata/chef/erubis-master.morph +++ b/strata/chef/erubis-master.morph @@ -6,11 +6,16 @@ products: - artifact: erubis-doc include: - usr/lib/ruby/gems/\d[\w.]*/doc/.* +configure-commands: +# Manually do what it seems like the 'rook' build system would do, if it worked +# Values taken from 'Rookbook.props'. +- find -type f -exec sed -e 's/\$Release\$/2.7.0/g' -i \{} \; +- find -type f -exec sed -e 's/\$Copyright\$/copyright(c) 2006-2011 kuwata-lab.com all rights reserved./g' -i \{} \; build-commands: - gem build erubis.gemspec install-commands: - mkdir -p "$DESTDIR/$(gem environment home)" - gem install --install-dir "$DESTDIR/$(gem environment home)" --bindir "$DESTDIR/$PREFIX/bin" - --ignore-dependencies --local ./erubis-master.gem + --ignore-dependencies --local ./erubis-2.7.0.gem x-build-dependencies-rubygems: {} x-runtime-dependencies-rubygems: {} |