From 9e03581ab991974be02d58532dffcf5e1df667ae Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Tue, 13 Jun 2017 09:04:40 +0300 Subject: 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. --- Makefile | 13 ++++++------- 1 file 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 - -- cgit v1.2.1