Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/mini_magick: mini_magick-1.3.3-r2.ebuild ChangeLog
Date: Sat, 12 May 2012 17:34:54
Message-Id: 20120512173442.037572004B@flycatcher.gentoo.org
1 flameeyes 12/05/12 17:34:42
2
3 Modified: ChangeLog
4 Added: mini_magick-1.3.3-r2.ebuild
5 Log:
6 Fix metadata handling for Ruby 1.9 by converting first to gemspec and then sed.
7
8 (Portage version: 2.2.0_alpha104/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.14 dev-ruby/mini_magick/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/mini_magick/ChangeLog?rev=1.14&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/mini_magick/ChangeLog?rev=1.14&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/mini_magick/ChangeLog?r1=1.13&r2=1.14
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/mini_magick/ChangeLog,v
20 retrieving revision 1.13
21 retrieving revision 1.14
22 diff -u -r1.13 -r1.14
23 --- ChangeLog 15 Jan 2012 12:30:59 -0000 1.13
24 +++ ChangeLog 12 May 2012 17:34:41 -0000 1.14
25 @@ -1,6 +1,13 @@
26 # ChangeLog for dev-ruby/mini_magick
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mini_magick/ChangeLog,v 1.13 2012/01/15 12:30:59 graaff Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mini_magick/ChangeLog,v 1.14 2012/05/12 17:34:41 flameeyes Exp $
30 +
31 +*mini_magick-1.3.3-r2 (12 May 2012)
32 +
33 + 12 May 2012; Diego E. Pettenò <flameeyes@g.o>
34 + +mini_magick-1.3.3-r2.ebuild:
35 + Fix metadata handling for Ruby 1.9 by converting first to gemspec and then
36 + sed.
37
38 *mini_magick-3.4 (15 Jan 2012)
39
40
41
42
43 1.1 dev-ruby/mini_magick/mini_magick-1.3.3-r2.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/mini_magick/mini_magick-1.3.3-r2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/mini_magick/mini_magick-1.3.3-r2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: mini_magick-1.3.3-r2.ebuild
49 ===================================================================
50 # Copyright 1999-2012 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $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 $
53
54 EAPI=4
55
56 # jruby → test_tempfile_at_path_after_format fails with jruby 1.3.1,
57 # sounds like a bug in JRuby itself, or the code not being compatible.
58 USE_RUBY="ruby18 ruby19"
59
60 RUBY_FAKEGEM_DOCDIR="rdoc"
61 RUBY_FAKEGEM_EXTRADOC="README.rdoc"
62
63 RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
64
65 inherit ruby-fakegem eutils
66
67 DESCRIPTION="Manipulate images with minimal use of memory."
68 HOMEPAGE="http://github.com/probablycorey/mini_magick"
69
70 LICENSE="MIT"
71 SLOT="0"
72 KEYWORDS="~amd64"
73 IUSE=""
74
75 # It's only used at runtime in this case because this extension only
76 # _calls_ the commands. But when we run tests we're going to need tiff
77 # and jpeg support at a minimum.
78 RDEPEND="media-gfx/imagemagick"
79 DEPEND="test? ( media-gfx/imagemagick[tiff,jpeg] )"
80
81 # tests are known to fail under imagemagick 6.5 at least, reported upstream:
82 # http://github.com/probablycorey/mini_magick/issues/#issue/2
83 # update: still fails with imagemagick 6.6.
84 ruby_add_bdepend "test? ( virtual/ruby-test-unit )"
85
86 ruby_add_rdepend ">=dev-ruby/subexec-0.0.4"
87
88 all_ruby_prepare() {
89 # remove executable bit from all files
90 find "${S}" -type f -exec chmod -x {} +
91
92 # Remove spec definition part because the gemspec file is not included
93 sed -i -e '/gemspec/,$ d' Rakefile || die
94
95 # convert the metadata to gemspec for easier editing; this has to be
96 # executed — this requires a ruby interpreter to be set
97 RUBY=ruby \
98 ruby_fakegem_metadata_gemspec ../metadata "${PN}.gemspec" || die
99
100 # fix dependency over subexec, so that 0.1.x is also accepted (tests
101 # pass just fine, package works).
102 sed -i -e 's:~>:>=:' "${PN}.gemspec"
103 }