From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 5834F13825A for ; Sun, 15 May 2016 05:35:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B243421C067; Sun, 15 May 2016 05:35:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B0B9121C04E for ; Sun, 15 May 2016 05:35:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8E774340C33 for ; Sun, 15 May 2016 05:35:44 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 563BB33A for ; Sun, 15 May 2016 05:35:41 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1463289089.412b66e3239b352098482ebb2c0c794c512e53e0.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/barby/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/barby/Manifest dev-ruby/barby/barby-0.6.4.ebuild X-VCS-Directories: dev-ruby/barby/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 412b66e3239b352098482ebb2c0c794c512e53e0 X-VCS-Branch: master Date: Sun, 15 May 2016 05:35:41 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 76c02e8a-2945-483e-977d-a349031b7f97 X-Archives-Hash: 41df5194d1c2824e3569bc66961454b7 commit: 412b66e3239b352098482ebb2c0c794c512e53e0 Author: Hans de Graaff gentoo org> AuthorDate: Sun May 15 05:11:29 2016 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Sun May 15 05:11:29 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=412b66e3 dev-ruby/barby: add 0.6.4 Package-Manager: portage-2.2.28 dev-ruby/barby/Manifest | 1 + dev-ruby/barby/barby-0.6.4.ebuild | 100 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+) diff --git a/dev-ruby/barby/Manifest b/dev-ruby/barby/Manifest index 89eaa3c..f534d20 100644 --- a/dev-ruby/barby/Manifest +++ b/dev-ruby/barby/Manifest @@ -1 +1,2 @@ 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 diff --git a/dev-ruby/barby/barby-0.6.4.ebuild b/dev-ruby/barby/barby-0.6.4.ebuild new file mode 100644 index 0000000..83dfd7f --- /dev/null +++ b/dev-ruby/barby/barby-0.6.4.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://toretore.eu/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 +}