diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-ruby/barby |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-ruby/barby')
-rw-r--r-- | dev-ruby/barby/Manifest | 5 | ||||
-rw-r--r-- | dev-ruby/barby/barby-0.6.5.ebuild | 99 | ||||
-rw-r--r-- | dev-ruby/barby/metadata.xml | 34 |
3 files changed, 138 insertions, 0 deletions
diff --git a/dev-ruby/barby/Manifest b/dev-ruby/barby/Manifest new file mode 100644 index 000000000000..67f8ac23bd92 --- /dev/null +++ b/dev-ruby/barby/Manifest @@ -0,0 +1,5 @@ +DIST barby-0.6.5.tar.gz 93781 SHA256 7a9d444b916e15c7c25602bc3d066191b7cdf08404b9efe2762188a9ecaa4e9e SHA512 f6101edf7a75986c55577d27dcbb0628fc7a6a4d2b8b4eab7a53e2703fbd0a1ec70a062c7a1e3d2b65db2afeecf8f0375a936c2932125b0d96647b8d24dd0e5c WHIRLPOOL c731582495375df230ca0a05a810ab6d2ac69c83ccd63393b1f2ff9372e6c5fe9048bd19d5e5fad55e7eb0608ed9d7dd27ff08ec3372601cabc9674ca76c6f6a +EBUILD barby-0.6.5.ebuild 2398 SHA256 7bbe17b1a92381580bd6dd448c16dd0d12bf6d6370c1c6a6d116c7fe550e2f17 SHA512 68c24482f7cafc57594484de1bcd6e91c4caee9fada2008f09551e4a8ffa89d7245bcab3cf6a1c0667162ad1067ead14f8fd33286ac79b45880d44b9c65eadef WHIRLPOOL f717fde1351acc3757afceb739af922b2fe77f5dcec829b39ce4eaf1af89627a0e459bc28827a1908bb89b704aa25f3a86f3f809ba5dea4f6dfacaf51e2b7657 +MISC ChangeLog 3746 SHA256 268f037479503d47fa02e420c65f667e316c7f047a01c1275928785f36d564a5 SHA512 545a4ea04e9517057f1e64724125f137a8dad4cdc7465e8bf38817ecd30db237301f4db796807a5ecd7bc0b911c130a392af365e229d777e37770aa66c615c14 WHIRLPOOL 82d903782e0c09ac5a727aa190656098b4f7a4deaac88194141d10f07cd75bf0807a02f0c8a2a634d9d8e7ff60d7b3b351a7b1d21cffa903187f91bbfb7f1397 +MISC ChangeLog-2015 2199 SHA256 1150db449a15d3ca226194d1a70026dad51c9cb527d9c8068036471d72538c4b SHA512 3772f8ebbf4dffd5522b81aab774ee0f9133901040ebde5b06f510a3cce3884aa96f0efc966fdedcde06fad2608c45b3fe2345c58c99839eaa429f932627f556 WHIRLPOOL dfa569d62261f957ebf2c5c85696849280e8af904701fb9921d049647d99c91cca640f6b2e43d2d2a4819f12aceb1336df28eff72e094e3af361354e5f580075 +MISC metadata.xml 1073 SHA256 85b09f53ee1e36f70cb1205cee243dda2efd3884f0be5c90b54960ff20f981c9 SHA512 c3e13b0b201a8a8556b5f725d366b78da9ee82bae9707a8722055d0e5e73571560209657e4c7ef69a777934585cdd2d0e001a979f35773f9f31ac99d6346f4dd WHIRLPOOL 8f5c56a4e32918795d7297eacb657c7348c37fa18d447a9a261c54ccc7b52b3e8f7f7ec00fc6a6b5440ad85b42be506f74cea9dce2b9f29ac97d0ee58d031c11 diff --git a/dev-ruby/barby/barby-0.6.5.ebuild b/dev-ruby/barby/barby-0.6.5.ebuild new file mode 100644 index 000000000000..b20dbf36c774 --- /dev/null +++ b/dev-ruby/barby/barby-0.6.5.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +USE_RUBY="ruby22 ruby23" + +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="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 + + 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/metadata.xml b/dev-ruby/barby/metadata.xml new file mode 100644 index 000000000000..11d98bf735dc --- /dev/null +++ b/dev-ruby/barby/metadata.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>ruby@gentoo.org</email> + <name>Gentoo Ruby Project</name> + </maintainer> + <use> + <flag name="qrcode"> + Add support for QRCode 2D codes using + <pkg>dev-ruby/rqrcode</pkg>. + </flag> + <flag name="prawn"> + Add support for writing PDF documents using + <pkg>dev-ruby/prawn</pkg>. + </flag> + <flag name="png"> + Add support for writing PNG images using + <pkg>dev-ruby/chunky_png</pkg>. + </flag> + <flag name="rmagick"> + Add support for writing images (among others PNG, GIF and JPEG) + using <pkg>dev-ruby/rmagick</pkg>. Not available on JRuby. + </flag> + <flag name="cairo"> + Add support for writing images (PNG, PS, EPS and, if supported, + PDF and SVG) using <pkg>dev-ruby/rcairo</pkg>. Not available on + JRuby. + </flag> + </use> + <upstream> + <remote-id type="github">toretore/barby</remote-id> + </upstream> +</pkgmetadata> |