From: "Hans de Graaff" <graaff@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/barby/
Date: Thu, 21 Apr 2016 05:17:11 +0000 (UTC) [thread overview]
Message-ID: <1461215337.e7221fd7be32d806f5f01ef04835c99e1a4d2d4f.graaff@gentoo> (raw)
commit: e7221fd7be32d806f5f01ef04835c99e1a4d2d4f
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 21 04:51:42 2016 +0000
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Thu Apr 21 05:08:57 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7221fd7
dev-ruby/barby: add 0.6.3
Package-Manager: portage-2.2.26
dev-ruby/barby/Manifest | 1 +
dev-ruby/barby/barby-0.6.3.ebuild | 124 ++++++++++++++++++++++++++++++++++++++
2 files changed, 125 insertions(+)
diff --git a/dev-ruby/barby/Manifest b/dev-ruby/barby/Manifest
index 41079f3..6369681 100644
--- a/dev-ruby/barby/Manifest
+++ b/dev-ruby/barby/Manifest
@@ -1 +1,2 @@
DIST barby-0.6.2.tgz 92842 SHA256 fd8be7db0d3214fc2e2f330cc62de7c8d1884311b0230501b9cc9a23ec7f5deb SHA512 bb1a0387cfcabe8e282b1624c09574778cf438a5aa9fddaafd413ffe06726e95a766bc3f8bbb51b39894c267b167ce8b3cfe3cbaf83896a90c3509b81478e3a6 WHIRLPOOL 55a9f2171373735fc6fa7bfff60c4faaa0e1a1ab97facfa9a0025a63f9575858177d2df3c5b39dc140a8d163e46c368e1ec2798351fb8208d58fb5c64e4b0c2b
+DIST barby-0.6.3.tgz 92842 SHA256 fd8be7db0d3214fc2e2f330cc62de7c8d1884311b0230501b9cc9a23ec7f5deb SHA512 bb1a0387cfcabe8e282b1624c09574778cf438a5aa9fddaafd413ffe06726e95a766bc3f8bbb51b39894c267b167ce8b3cfe3cbaf83896a90c3509b81478e3a6 WHIRLPOOL 55a9f2171373735fc6fa7bfff60c4faaa0e1a1ab97facfa9a0025a63f9575858177d2df3c5b39dc140a8d163e46c368e1ec2798351fb8208d58fb5c64e4b0c2b
diff --git a/dev-ruby/barby/barby-0.6.3.ebuild b/dev-ruby/barby/barby-0.6.3.ebuild
new file mode 100644
index 0000000..fa9b070
--- /dev/null
+++ b/dev-ruby/barby/barby-0.6.3.ebuild
@@ -0,0 +1,124 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+USE_RUBY="ruby20 ruby21 ruby22"
+
+RUBY_FAKEGEM_TASK_TEST="test"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG README"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+COMMIT="891b15594b34229b8bdb267c10ab5b5309c03320"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Ruby barcode generator that doesn't rely on 3rd party libraries"
+HOMEPAGE="http://toretore.eu/barby/"
+
+GITHUB_USER="toretore"
+SRC_URI="https://github.com/${GITHUB_USER}/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tgz"
+
+RUBY_S="${PN}-${COMMIT}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="datamatrix test qrcode rmagick pdf-writer 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 '/[bB]undler/s:^:#:' test/test_helper.rb
+}
+
+each_ruby_prepare() {
+ if use datamatrix; then
+ sed -i -e '/^end/i s.add_dependency "semacode"' ${RUBY_FAKEGEM_GEMSPEC}
+ else
+ rm \
+ lib/barby/barcode/data_matrix.rb \
+ test/data_matrix_test.rb
+ fi
+
+ if use pdf-writer; then
+ sed -i -e '/^end/i s.add_dependency "pdf-writer"' ${RUBY_FAKEGEM_GEMSPEC}
+ else
+ rm \
+ lib/barby/outputter/pdfwriter_outputter.rb \
+ test/outputter/pdfwriter_outputter_test.rb
+ fi
+
+ 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
+
+ case ${RUBY} in
+ */ruby19)
+ 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
+
+ sed -i \
+ -e '/semacode/d' \
+ -e '/pdf-writer/d' \
+ ${RUBY_FAKEGEM_GEMSPEC}
+ ;;
+ esac
+}
next reply other threads:[~2016-04-21 5:17 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-21 5:17 Hans de Graaff [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-18 9:28 [gentoo-commits] repo/gentoo:master commit in: dev-ruby/barby/ Hans de Graaff
2023-09-18 5:21 Hans de Graaff
2023-09-15 14:56 Hans de Graaff
2023-03-25 7:12 Sam James
2020-08-04 3:40 Hans de Graaff
2020-02-09 10:59 Hans de Graaff
2020-02-02 16:20 Hans de Graaff
2019-12-12 16:46 Michał Górny
2019-11-17 6:06 Hans de Graaff
2019-07-10 4:58 Hans de Graaff
2019-05-25 5:38 Hans de Graaff
2019-05-23 5:39 Hans de Graaff
2019-04-11 18:29 Hans de Graaff
2018-12-13 8:09 Hans de Graaff
2018-08-14 4:02 Hans de Graaff
2018-04-19 19:37 Hans de Graaff
2017-08-27 6:18 Hans de Graaff
2017-08-27 6:18 Hans de Graaff
2016-12-02 7:29 Hans de Graaff
2016-05-15 5:35 Hans de Graaff
2016-04-22 5:07 Hans de Graaff
2016-03-27 21:52 Manuel Rüger
2016-03-27 21:52 Manuel Rüger
2015-08-11 17:30 Peter Wilmott
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1461215337.e7221fd7be32d806f5f01ef04835c99e1a4d2d4f.graaff@gentoo \
--to=graaff@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox