/[gentoo-x86]/dev-ruby/mini_magick/mini_magick-1.3.3-r2.ebuild
Gentoo

Contents of /dev-ruby/mini_magick/mini_magick-1.3.3-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Nov 5 00:40:23 2013 UTC (10 months, 3 weeks ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Cleanup old.

(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key )

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/mini_magick/mini_magick-1.3.3-r2.ebuild,v 1.1 2012/05/12 17:34:41 flameeyes Exp $
4
5 EAPI=4
6
7 # jruby → test_tempfile_at_path_after_format fails with jruby 1.3.1,
8 # sounds like a bug in JRuby itself, or the code not being compatible.
9 USE_RUBY="ruby18 ruby19"
10
11 RUBY_FAKEGEM_DOCDIR="rdoc"
12 RUBY_FAKEGEM_EXTRADOC="README.rdoc"
13
14 RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
15
16 inherit ruby-fakegem eutils
17
18 DESCRIPTION="Manipulate images with minimal use of memory."
19 HOMEPAGE="http://github.com/probablycorey/mini_magick"
20
21 LICENSE="MIT"
22 SLOT="0"
23 KEYWORDS="~amd64"
24 IUSE=""
25
26 # It's only used at runtime in this case because this extension only
27 # _calls_ the commands. But when we run tests we're going to need tiff
28 # and jpeg support at a minimum.
29 RDEPEND="media-gfx/imagemagick"
30 DEPEND="test? ( media-gfx/imagemagick[tiff,jpeg] )"
31
32 # tests are known to fail under imagemagick 6.5 at least, reported upstream:
33 # http://github.com/probablycorey/mini_magick/issues/#issue/2
34 # update: still fails with imagemagick 6.6.
35 ruby_add_bdepend "test? ( virtual/ruby-test-unit )"
36
37 ruby_add_rdepend ">=dev-ruby/subexec-0.0.4"
38
39 all_ruby_prepare() {
40 # remove executable bit from all files
41 find "${S}" -type f -exec chmod -x {} +
42
43 # Remove spec definition part because the gemspec file is not included
44 sed -i -e '/gemspec/,$ d' Rakefile || die
45
46 # convert the metadata to gemspec for easier editing; this has to be
47 # executed — this requires a ruby interpreter to be set
48 RUBY=ruby \
49 ruby_fakegem_metadata_gemspec ../metadata "${PN}.gemspec" || die
50
51 # fix dependency over subexec, so that 0.1.x is also accepted (tests
52 # pass just fine, package works).
53 sed -i -e 's:~>:>=:' "${PN}.gemspec"
54 }

  ViewVC Help
Powered by ViewVC 1.1.20