aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2017-06-13 09:04:40 +0300
committerSteve Kemp <steve@steve.org.uk>2017-06-13 09:04:40 +0300
commit9e03581ab991974be02d58532dffcf5e1df667ae (patch)
tree40ca4338e29f5039bad99d0be9ae0eb34f0a86ba
parent40533e34cca72fee719a9d84f6e07b13ca893b6e (diff)
Updated to avoid Ruby 1.8-specific file.
Rather than referring to `/usr/lib/ruby/1.8/setup.rb` I've updated to use `/usr/lib/ruby/vendor_ruby/setup.rb` (which comes from the `ruby-setup` package.
-rw-r--r--Makefile13
1 files changed, 6 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 2254496..3f38e20 100644
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,7 @@ clean:
$(RM) -r tmp
$(RM) -r OpenBSD
$(RM) setup.rb
-
+
distclean: clean
if [ -e ./setup.rb ] ; then ruby ./setup.rb distclean ; fi
@@ -35,15 +35,15 @@ distclean: clean
test: setup.rb
ruby ./setup.rb test
-setup.rb: /usr/lib/ruby/1.8/setup.rb
- ln -sf /usr/lib/ruby/1.8/setup.rb .
+setup.rb: /usr/lib/ruby/vendor_ruby/setup.rb
+ ln -sf /usr/lib/ruby/vendor_ruby/setup.rb .
OpenBSD: OpenBSD/sha256.asc
OpenBSD/sha256: OpenBSD/ruby-mauvealert.tar.gz OpenBSD/ruby-protobuf.tar.gz
#
# rejig sha256sum to openbsd sha256
- #
+ #
$(RM) OpenBSD/sha256
cd OpenBSD && sha256sum * | sed -e 's/\([^ ]\+\) \(.*\)$$/SHA256 (\2) = \1/' > sha256
@@ -65,12 +65,11 @@ OpenBSD/ruby-protobuf.tar.gz:
mkdir -p tmp/ruby-protobuf-source
git clone https://github.com/macks/ruby-protobuf.git tmp/ruby-protobuf-source
cd tmp/ruby-protobuf-source && git checkout -b v0.4.5
- ln -sf /usr/lib/ruby/1.8/setup.rb tmp/ruby-protobuf-source/
- cd tmp/ruby-protobuf-source && ruby ./setup.rb config ${OPENBSD_SETUP_FLAGS}
+ ln -sf /usr/lib/ruby/vendor_ruby/setup.rb tmp/ruby-protobuf-source/
+ cd tmp/ruby-protobuf-source && ruby ./setup.rb config ${OPENBSD_SETUP_FLAGS}
cd tmp/ruby-protobuf-source && ruby ./setup.rb setup
cd tmp/ruby-protobuf-source && ruby ./setup.rb install --prefix=../ruby-protobuf
mkdir -p OpenBSD
tar -C tmp/ruby-protobuf -czvf $@ .
.PHONY: all clean openbsd_tarball test distclean OpenBSD
-