There is a block form for `inreplace` that lets multiple things be changed; this reads the source file once instead of multiple times:

```
inreplace 'libraries/liblmdb/Makefile' do |s|
  s.gsub! old, new
  s.gsub! old, new
  s.gsub! old, new
end
```