diff options
Diffstat (limited to 'libre/ruby/PKGBUILD')
-rw-r--r-- | libre/ruby/PKGBUILD | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/libre/ruby/PKGBUILD b/libre/ruby/PKGBUILD index d6a755dfd..8e7917dd8 100644 --- a/libre/ruby/PKGBUILD +++ b/libre/ruby/PKGBUILD @@ -18,8 +18,8 @@ pkgname=(ruby ruby-docs) -pkgver=2.7.2 -_jsonver=2.3.0 +pkgver=3.0.1 +_jsonver=2.5.1 pkgrel=1 pkgrel+=.parabola1 _srcrel=1 # increment this to rebuild the sourceball without bumping pkgver @@ -35,11 +35,11 @@ source=(https://cache.ruby-lang.org/pub/ruby/${pkgver:0:3}/ruby-${pkgver}.tar.xz remove-json-ext.patch add-json_pure.patch json-libre.patch) -sha512sums=('7972278b096aa768c7adf2befd26003e18781a29ca317640317d30d93d6e963ded197724c8e2f1dfe1e838c5647176d414a74732a62e931fb50d6f2e0f777349' - '0cda44a77212748d9513e61314dfbc7c0cf82beebcc56eb8b043e4ada698bc475502100389b80fa5c9090341fd1c6d2841fc5c9332e520f1c8dd1084ca505379' - 'cce1402a062ab5a065e7554ae23189cb9c8de0acc27a4c96db5a90a52cfce37fde8d128e95b997e6df05d327d2279a8368276820dfad8b744747ea619ad187ab' - '9ff8a2ec9fdecd05fd506ed6f977dcd483e47611dc6bbe6c4622100a2071c0f6c7b3f813a94b73bebb9f0ed7fe9f6257289cdf971030ad525a3c8a0d065b09c2' - '582017bd0f98878c0ac6f4625854422662d83ae6274a34762082a720052023780dceb17694b1f4e18d9a0dcbb525990341176eac31040aa63099a8b3a8d52071') +sha512sums=('97d2e883656060846b304368d9d836e2f3ef39859c36171c9398a0573818e4ed75bfd7460f901a9553f7f53518c505327a66e74f83704a881469f5ac61fe13d7' + '4df7ec9b86692376e89c2019c2c1ab3ae9af28fb4742864acc6f985c0551fc10795742cc1124d6435e820617c00d4c5f4aa6c83b21d2fff43ed05cd9d0a89087' + 'e3cb4d17872d69d7bc2697b751e27c7f76edbf996f4e3007241cd8a60d2251056cf8dd858f249c0b28088da5b969c63bc5c0d52eef9c95e52e190234d3e46609' + 'c3933f1c6d7ddf669e0cfd8ffdd60abeb59a10bdfcab05a1c1b826ab65bed7019df85c15dd8af0b127a5728d5f6c322fcd724e0b9ecf0d9cdb5d28956050cc9a' + 'bb2cc232a0b096a3c40e219258aaa008183ed9a1f8b3bfd5f84680809f4b60e659f02e1db24480b30e6f11ad726b258da9dab17462621e8bfb8f9b6ed98dfbfd') prepare() { cd "$srcdir/json-${_jsonver}" @@ -60,15 +60,12 @@ prepare() { cp -r ../json-${_jsonver}/lib/* -t lib/ cp ../json-${_jsonver}/json_pure.gemspec -t lib/json/ cp -rT ../json-${_jsonver}/tests test/json + sed -i "s/File.read(\"VERSION\").chomp/\"${_jsonver}\"/g" lib/json/json_pure.gemspec patch -p1 -i ../add-json_pure.patch # Clean up the original json sources cd "$srcdir" rm -rf "json-${_jsonver}" - - cd ruby-${pkgver} - # remove bundled gems, we are going to ship them as separate packages - rm -rf gems/ } build() { @@ -118,12 +115,12 @@ package_ruby() { rm -r "${pkgdir}"/usr/lib/ruby/${rubyver}/{bundler,bundler.rb} rm "${pkgdir}"/usr/bin/{bundle,bundler} rm "${pkgdir}"/usr/lib/ruby/gems/${rubyver}/specifications/default/bundler-*.gemspec - rm "${pkgdir}"/usr/share/man/man1/{bundle,bundle-*}.1 # remove bundled rdoc gem rm -r "${pkgdir}"/usr/lib/ruby/${rubyver}/{rdoc,rdoc.rb} rm "${pkgdir}"/usr/bin/{rdoc,ri} rm "${pkgdir}"/usr/lib/ruby/gems/${rubyver}/specifications/default/rdoc-*.gemspec + rm "${pkgdir}"/usr/share/man/man1/ri.1 # remove irb as it is a separate package now rm -r "${pkgdir}"/usr/lib/ruby/${rubyver}/{irb,irb.rb} @@ -131,8 +128,14 @@ package_ruby() { rm "${pkgdir}"/usr/lib/ruby/gems/${rubyver}/specifications/default/irb-*.gemspec rm "${pkgdir}"/usr/share/man/man1/irb.1 + # remove other binaries that are shipped as separate packages + rm "${pkgdir}"/usr/bin/{rake,rbs,typeprof,erb,racc} + rm "${pkgdir}"/usr/share/man/man1/erb.1 + # remove all bundled gems to avoid conflicts with ruby-* Arch packages rm -r "${pkgdir}"/usr/lib/ruby/gems/${rubyver}/gems/* + rm "${pkgdir}"/usr/lib/ruby/gems/${rubyver}/specifications/*.gemspec + rm "${pkgdir}"/usr/lib/ruby/gems/${rubyver}/cache/*.gem } package_ruby-docs() { |