lang/ruby34: Import improvements from lang/ruby33/Makefile
On March 2024 I started work to add ruby 3.4 to ports tree based on
lang/ruby33 at that time, and finally it was added as commit
438427bea8dd. After that, however, I noticed there are some
improvements in lang/ruby33/Makefile. So import them.