summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-09-11 19:05:07 +0100
committerJim MacArthur <jim.macarthur@codethink.co.uk>2015-01-19 19:07:36 +0000
commit082ddc8ed5f9b195e7509d936e2c639a47981129 (patch)
treeb98aacc16b3fbae5bd6fdec509976f05e8fcebf5
parent1edf0f5bb43519f9a2e85a1135e9c8190f3d17bf (diff)
downloaddefinitions-082ddc8ed5f9b195e7509d936e2c639a47981129.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.morph7
1 files changed, 6 insertions, 1 deletions
diff --git a/strata/chef/erubis-master.morph b/strata/chef/erubis-master.morph
index 3fedd0d7..f15e0968 100644
--- a/strata/chef/erubis-master.morph
+++ b/strata/chef/erubis-master.morph
@@ -6,9 +6,14 @@ 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