diff options
author | Hans de Graaff <graaff@gentoo.org> | 2015-04-10 05:57:15 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2015-04-10 05:57:15 +0000 |
commit | ca0e7e1da1db8d4f139bad3e0176e06f2c787b51 (patch) | |
tree | 2844373126ecd78c95eda261820f73c88eb227c3 /dev-ruby/mini_magick/mini_magick-4.2.1.ebuild | |
parent | Version bump. (diff) | |
download | gentoo-2-ca0e7e1da1db8d4f139bad3e0176e06f2c787b51.tar.gz gentoo-2-ca0e7e1da1db8d4f139bad3e0176e06f2c787b51.tar.bz2 gentoo-2-ca0e7e1da1db8d4f139bad3e0176e06f2c787b51.zip |
Version bump.
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
Diffstat (limited to 'dev-ruby/mini_magick/mini_magick-4.2.1.ebuild')
-rw-r--r-- | dev-ruby/mini_magick/mini_magick-4.2.1.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/dev-ruby/mini_magick/mini_magick-4.2.1.ebuild b/dev-ruby/mini_magick/mini_magick-4.2.1.ebuild new file mode 100644 index 000000000000..e79e2213b635 --- /dev/null +++ b/dev-ruby/mini_magick/mini_magick-4.2.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mini_magick/mini_magick-4.2.1.ebuild,v 1.1 2015/04/10 05:57:15 graaff Exp $ + +EAPI=5 + +USE_RUBY="ruby19 ruby20 ruby21 ruby22" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +RUBY_FAKEGEM_BINWRAP="" + +inherit ruby-fakegem eutils + +DESCRIPTION="Manipulate images with minimal use of memory" +HOMEPAGE="http://github.com/minimagick/minimagick" +SRC_URI="https://github.com/minimagick/minimagick/archive/v${PV}.tar.gz -> ${P}.tar.gz" +RUBY_S="minimagick-${PV}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +# It's only used at runtime in this case because this extension only +# _calls_ the commands. But when we run tests we're going to need tiff +# and jpeg support at a minimum. +RDEPEND+=" media-gfx/imagemagick" +DEPEND+=" test? ( media-gfx/imagemagick[tiff,jpeg,png] >=media-gfx/graphicsmagick-1.3.20[tiff,jpeg,png] )" + +ruby_add_bdepend "test? ( dev-ruby/mocha dev-ruby/posix-spawn )" + +all_ruby_prepare() { + # remove executable bit from all files + find "${S}" -type f -exec chmod -x {} + + + sed -i -e '/\([Bb]undler\|pry\)/ s:^:#:' spec/spec_helper.rb || die + + # Don't force a specific formatter but use overall Gentoo defaults. + sed -i -e '/config.formatter/d' spec/spec_helper.rb || die + + # Avoid test depending on graphicsmagick + sed -e '/identifies when gm exists/,/^ end/ s:^:#:' \ + -i spec/lib/mini_magick_spec.rb || die +} |