public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
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: Fri,  2 Dec 2016 07:29:21 +0000 (UTC)	[thread overview]
Message-ID: <1480663642.60f4d08194aa8e46da860b14a06b67a7218e57d6.graaff@gentoo> (raw)

commit:     60f4d08194aa8e46da860b14a06b67a7218e57d6
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Fri Dec  2 07:26:09 2016 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Fri Dec  2 07:27:22 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60f4d081

dev-ruby/barby: add 0.6.5

Package-Manager: portage-2.3.0

 dev-ruby/barby/Manifest           |   1 +
 dev-ruby/barby/barby-0.6.5.ebuild | 100 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 101 insertions(+)

diff --git a/dev-ruby/barby/Manifest b/dev-ruby/barby/Manifest
index f534d20..7abef48 100644
--- a/dev-ruby/barby/Manifest
+++ b/dev-ruby/barby/Manifest
@@ -1,2 +1,3 @@
 DIST barby-0.6.3.tar.gz 92841 SHA256 51546e7f58fc4587ec7977ac924874ac89ee1397ddd11d3fdeaa3a567dcebb92 SHA512 b7415298ee2d8bb17a88b5c647d707a15151d2110834e87c2d598def88290ad90947bc49ded175b44050d8d95510602d374699fd91f2fb873728e8536dc70ef6 WHIRLPOOL e0272be0adeb828d7745ddbb9ffe61674314943bfd3ad5aaca29a998b38bdd9dbe25d1e4333b182c63edd0240c509a32037c4e9277cdbf0b01723aa261e19a6a
 DIST barby-0.6.4.tar.gz 92848 SHA256 af9bc2d134c5889820ee0fdf87041552f56d0e2bdbf518b5af08240a2f1dd065 SHA512 2cf8c03b73c372578297dbee8de9b814a3fabc9eeed4359e4e93ff3bcfa747825cbff110770eeaa57a6a1a2b1dee88a4e5e38dd5dc141b1a221c5cd533ff6fe2 WHIRLPOOL 9ec2b3a829ce373d52ba15a6863b0e225b9b2a3d2f41b75461ad5f6c93dd6b93c727914a07f997e027ed07ebf1a0f01aebf322847234ace692a0de8a93cbcfef
+DIST barby-0.6.5.tar.gz 93781 SHA256 7a9d444b916e15c7c25602bc3d066191b7cdf08404b9efe2762188a9ecaa4e9e SHA512 f6101edf7a75986c55577d27dcbb0628fc7a6a4d2b8b4eab7a53e2703fbd0a1ec70a062c7a1e3d2b65db2afeecf8f0375a936c2932125b0d96647b8d24dd0e5c WHIRLPOOL c731582495375df230ca0a05a810ab6d2ac69c83ccd63393b1f2ff9372e6c5fe9048bd19d5e5fad55e7eb0608ed9d7dd27ff08ec3372601cabc9674ca76c6f6a

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 00000000..5525469
--- /dev/null
+++ b/dev-ruby/barby/barby-0.6.5.ebuild
@@ -0,0 +1,100 @@
+# 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.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
+}


             reply	other threads:[~2016-12-02  7:29 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-02  7:29 Hans de Graaff [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-06-12  5:40 [gentoo-commits] repo/gentoo:master commit in: dev-ruby/barby/ Hans de Graaff
2025-01-18  9:28 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-05-15  5:35 Hans de Graaff
2016-04-22  5:07 Hans de Graaff
2016-04-21  5:17 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=1480663642.60f4d08194aa8e46da860b14a06b67a7218e57d6.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