From 2378ab3b5d374c6f5df74f853702253a1d109120 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 25 Mar 2023 06:43:24 +0000 Subject: dev-ruby/barby: update EAPI 6 -> 8, enable ruby30, enable ruby31 Signed-off-by: Sam James --- dev-ruby/barby/barby-0.6.8-r1.ebuild | 101 +++++++++++++++++++++++++++++++++++ dev-ruby/barby/barby-0.6.8.ebuild | 101 ----------------------------------- 2 files changed, 101 insertions(+), 101 deletions(-) create mode 100644 dev-ruby/barby/barby-0.6.8-r1.ebuild delete mode 100644 dev-ruby/barby/barby-0.6.8.ebuild (limited to 'dev-ruby/barby') diff --git a/dev-ruby/barby/barby-0.6.8-r1.ebuild b/dev-ruby/barby/barby-0.6.8-r1.ebuild new file mode 100644 index 000000000000..0ce49ddabc93 --- /dev/null +++ b/dev-ruby/barby/barby-0.6.8-r1.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby27 ruby30 ruby31" + +RUBY_FAKEGEM_TASK_TEST="test" + +RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Ruby barcode generator that doesn't rely on 3rd party libraries" +HOMEPAGE="http://toreto.re/barby/" + +GITHUB_USER="toretore" +SRC_URI="https://github.com/${GITHUB_USER}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test qrcode rmagick prawn png cairo" + +ruby_add_rdepend " + rmagick? ( dev-ruby/rmagick:* ) + cairo? ( dev-ruby/rcairo )" + +ruby_add_rdepend "qrcode? ( dev-ruby/rqrcode ) + png? ( dev-ruby/chunky_png ) + prawn? ( dev-ruby/prawn:* )" + +ruby_add_bdepend "test? ( dev-ruby/minitest )" + +# testing requires imagemagick capable of png output +DEPEND+=" test? ( media-gfx/imagemagick[png] )" + +# prawn breaks tests for some reasons, needs to be investigated; code +# still works though. +RESTRICT="!test? ( test ) prawn? ( test )" + +all_ruby_prepare() { + sed -i -e 's/README/README.md/' Rakefile || die + + sed -i -e '/[bB]undler/s:^:#:' test/test_helper.rb || die + + if use qrcode; then + sed -i -e '/^end/i s.add_dependency "rqrcode"' ${RUBY_FAKEGEM_GEMSPEC} + else + rm \ + lib/barby/barcode/qr_code.rb \ + test/qr_code_test.rb + fi + + if use rmagick; then + sed -i -e '/^end/i s.add_dependency "rmagick"' ${RUBY_FAKEGEM_GEMSPEC} + else + rm \ + lib/barby/outputter/rmagick_outputter.rb \ + test/outputter/rmagick_outputter_test.rb + fi + + if use prawn; then + sed -i -e '/^end/i s.add_dependency "prawn"' ${RUBY_FAKEGEM_GEMSPEC} + else + rm \ + lib/barby/outputter/prawn_outputter.rb \ + test/outputter/prawn_outputter_test.rb + fi + + if use png; then + sed -i -e '/^end/i s.add_dependency "chunky_png"' ${RUBY_FAKEGEM_GEMSPEC} + else + rm \ + lib/barby/outputter/png_outputter.rb \ + test/outputter/png_outputter_test.rb + fi + + if use cairo; then + sed -i -e '/^end/i s.add_dependency "cairo"' ${RUBY_FAKEGEM_GEMSPEC} + else + rm \ + lib/barby/outputter/cairo_outputter.rb \ + test/outputter/cairo_outputter_test.rb + fi + + sed -i -e '/files/ s:^:#:' ${RUBY_FAKEGEM_GEMSPEC} || die + + rm -f \ + lib/barby/barcode/data_matrix.rb \ + test/data_matrix_test.rb \ + lib/barby/outputter/pdfwriter_outputter.rb \ + test/outputter/pdfwriter_outputter_test.rb || die + + sed -i \ + -e '/semacode/d' \ + -e '/pdf-writer/d' \ + ${RUBY_FAKEGEM_GEMSPEC} || die +} diff --git a/dev-ruby/barby/barby-0.6.8.ebuild b/dev-ruby/barby/barby-0.6.8.ebuild deleted file mode 100644 index 4914a6e63785..000000000000 --- a/dev-ruby/barby/barby-0.6.8.ebuild +++ /dev/null @@ -1,101 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -USE_RUBY="ruby24 ruby25 ruby26 ruby27" - -RUBY_FAKEGEM_TASK_TEST="test" - -RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.md" - -RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" - -inherit ruby-fakegem - -DESCRIPTION="Ruby barcode generator that doesn't rely on 3rd party libraries" -HOMEPAGE="http://toreto.re/barby/" - -GITHUB_USER="toretore" -SRC_URI="https://github.com/${GITHUB_USER}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64" -IUSE="test qrcode rmagick prawn png cairo" - -ruby_add_rdepend " - rmagick? ( dev-ruby/rmagick:* ) - cairo? ( dev-ruby/rcairo )" - -ruby_add_rdepend "qrcode? ( dev-ruby/rqrcode ) - png? ( dev-ruby/chunky_png ) - prawn? ( dev-ruby/prawn:* )" - -ruby_add_bdepend "test? ( dev-ruby/minitest )" - -# testing requires imagemagick capable of png output -DEPEND+=" test? ( media-gfx/imagemagick[png] )" - -# prawn breaks tests for some reasons, needs to be investigated; code -# still works though. -RESTRICT="!test? ( test ) prawn? ( test )" - -all_ruby_prepare() { - sed -i -e 's/README/README.md/' Rakefile || die - - sed -i -e '/[bB]undler/s:^:#:' test/test_helper.rb || die - - if use qrcode; then - sed -i -e '/^end/i s.add_dependency "rqrcode"' ${RUBY_FAKEGEM_GEMSPEC} - else - rm \ - lib/barby/barcode/qr_code.rb \ - test/qr_code_test.rb - fi - - if use rmagick; then - sed -i -e '/^end/i s.add_dependency "rmagick"' ${RUBY_FAKEGEM_GEMSPEC} - else - rm \ - lib/barby/outputter/rmagick_outputter.rb \ - test/outputter/rmagick_outputter_test.rb - fi - - if use prawn; then - sed -i -e '/^end/i s.add_dependency "prawn"' ${RUBY_FAKEGEM_GEMSPEC} - else - rm \ - lib/barby/outputter/prawn_outputter.rb \ - test/outputter/prawn_outputter_test.rb - fi - - if use png; then - sed -i -e '/^end/i s.add_dependency "chunky_png"' ${RUBY_FAKEGEM_GEMSPEC} - else - rm \ - lib/barby/outputter/png_outputter.rb \ - test/outputter/png_outputter_test.rb - fi - - if use cairo; then - sed -i -e '/^end/i s.add_dependency "cairo"' ${RUBY_FAKEGEM_GEMSPEC} - else - rm \ - lib/barby/outputter/cairo_outputter.rb \ - test/outputter/cairo_outputter_test.rb - fi - - sed -i -e '/files/ s:^:#:' ${RUBY_FAKEGEM_GEMSPEC} || die - - rm -f \ - lib/barby/barcode/data_matrix.rb \ - test/data_matrix_test.rb \ - lib/barby/outputter/pdfwriter_outputter.rb \ - test/outputter/pdfwriter_outputter_test.rb || die - - sed -i \ - -e '/semacode/d' \ - -e '/pdf-writer/d' \ - ${RUBY_FAKEGEM_GEMSPEC} || die -} -- cgit v1.2.3-65-gdbad