diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-ruby/barby | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-ruby/barby')
-rw-r--r-- | dev-ruby/barby/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/barby/barby-0.6.2.ebuild | 124 | ||||
-rw-r--r-- | dev-ruby/barby/metadata.xml | 37 |
3 files changed, 162 insertions, 0 deletions
diff --git a/dev-ruby/barby/Manifest b/dev-ruby/barby/Manifest new file mode 100644 index 000000000000..41079f3b931f --- /dev/null +++ b/dev-ruby/barby/Manifest @@ -0,0 +1 @@ +DIST barby-0.6.2.tgz 92842 SHA256 fd8be7db0d3214fc2e2f330cc62de7c8d1884311b0230501b9cc9a23ec7f5deb SHA512 bb1a0387cfcabe8e282b1624c09574778cf438a5aa9fddaafd413ffe06726e95a766bc3f8bbb51b39894c267b167ce8b3cfe3cbaf83896a90c3509b81478e3a6 WHIRLPOOL 55a9f2171373735fc6fa7bfff60c4faaa0e1a1ab97facfa9a0025a63f9575858177d2df3c5b39dc140a8d163e46c368e1ec2798351fb8208d58fb5c64e4b0c2b diff --git a/dev-ruby/barby/barby-0.6.2.ebuild b/dev-ruby/barby/barby-0.6.2.ebuild new file mode 100644 index 000000000000..cdb4db1eb5dc --- /dev/null +++ b/dev-ruby/barby/barby-0.6.2.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +USE_RUBY="ruby19 ruby20 ruby21" + +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 +} diff --git a/dev-ruby/barby/metadata.xml b/dev-ruby/barby/metadata.xml new file mode 100644 index 000000000000..8adfddf6d0b3 --- /dev/null +++ b/dev-ruby/barby/metadata.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>ruby</herd> + <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> + <flag name="datamatrix"> + Add support for datamatrix using <pkg>dev-ruby/semacode</pkg>. + </flag> + <flag name="pdf-writer"> + Add support for writing PDFs using <pkg>dev-ruby/pdf-writer</pkg>. + </flag> + </use> + <upstream> + <remote-id type="github">toretore/barby</remote-id> + </upstream> +</pkgmetadata> |