Gentoo Archives: gentoo-commits

From: "Hans de Graaff (graaff)" <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/rmagick: ChangeLog rmagick-2.7.0.ebuild
Date: Mon, 29 Sep 2008 06:22:25
Message-Id: E1KkC9G-0005rU-34@stork.gentoo.org
1 graaff 08/09/29 06:22:22
2
3 Modified: ChangeLog
4 Added: rmagick-2.7.0.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.118 dev-ruby/rmagick/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rmagick/ChangeLog?rev=1.118&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rmagick/ChangeLog?rev=1.118&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rmagick/ChangeLog?r1=1.117&r2=1.118
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/rmagick/ChangeLog,v
19 retrieving revision 1.117
20 retrieving revision 1.118
21 diff -u -r1.117 -r1.118
22 --- ChangeLog 17 Sep 2008 18:15:56 -0000 1.117
23 +++ ChangeLog 29 Sep 2008 06:22:21 -0000 1.118
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-ruby/rmagick
26 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rmagick/ChangeLog,v 1.117 2008/09/17 18:15:56 graaff Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rmagick/ChangeLog,v 1.118 2008/09/29 06:22:21 graaff Exp $
29 +
30 +*rmagick-2.7.0 (29 Sep 2008)
31 +
32 + 29 Sep 2008; Hans de Graaff <graaff@g.o> +rmagick-2.7.0.ebuild:
33 + Version bump
34
35 *rmagick-2.6.0 (17 Sep 2008)
36
37
38
39
40 1.1 dev-ruby/rmagick/rmagick-2.7.0.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rmagick/rmagick-2.7.0.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rmagick/rmagick-2.7.0.ebuild?rev=1.1&content-type=text/plain
44
45 Index: rmagick-2.7.0.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/rmagick/rmagick-2.7.0.ebuild,v 1.1 2008/09/29 06:22:21 graaff Exp $
50
51 inherit ruby
52
53 # The gem for this package doesn't seem to play well with portage. It
54 # runs a GNUish configure script, with argument passed directly from
55 # the gem install command, but gem install doesn't use the same style
56 # of arguments. Thus, unless you're smart enough to come up with a
57 # fix, please leave this as a source package install.
58
59 MY_PV=${PV//_/-}
60 DESCRIPTION="An interface between Ruby and the ImageMagick(TM) image processing library"
61 HOMEPAGE="http://rmagick.rubyforge.org/"
62 SRC_URI="mirror://rubyforge/rmagick/RMagick-${MY_PV}.tar.bz2"
63 LICENSE="Artistic"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
66 IUSE="examples doc"
67 DEPEND="virtual/ruby
68 >=media-gfx/imagemagick-6.3.5.6"
69
70 S="${WORKDIR}/RMagick-${PV}"
71
72 # hdri causes extensive changes in the imagemagick internals, and
73 # rmagick is not ready to deal with those, see bug 184356.
74 pkg_setup() {
75 if built_with_use --missing false media-gfx/imagemagick hdri ; then
76 eerror "imagemagick is built with the hdri USE flag, this is not supported by rmagick"
77 eerror "please rebuild imagemagick without hdri support if you want to use rmagick"
78 die "imagemagick is built with the hdri USE flag, this is not supported by rmagick"
79 fi
80 }
81
82 # Use a custom src_compile because the setup.rb included with RMagick
83 # doesn't like extra parameters during the setup phase.
84 src_compile() {
85 # When documentation is built many examples are also run. Not all
86 # of them may work (e.g. due to missing additional dependencies)
87 # so we allow the examples to fail.
88 if ! use doc ; then
89 RUBY_ECONF="--disable-htmldoc --allow-example-errors"
90 fi
91
92 ${RUBY} setup.rb config --prefix=/usr "$@" \
93 ${RUBY_ECONF} ${EXTRA_ECONF} || die "setup.rb config failed"
94 ${RUBY} setup.rb setup || die "setup.rb setup failed"
95 }
96
97 # Use a custom src_install instead of the default one in ruby.eclass
98 # because the one in ruby.eclass does not include setting the prefix
99 # for the installation step and assumes that arguments can be given
100 # also during the install phase.
101 src_install() {
102 if ! use doc ; then
103 RUBY_ECONF="--disable-htmldoc --allow-example-errors"
104 fi
105
106 ${RUBY} setup.rb config --prefix="${D}/usr" "$@" \
107 ${RUBY_ECONF} ${EXTRA_ECONF} || die "setup.rb config failed"
108 ${RUBY} setup.rb install --prefix="${D}" || die "setup.rb install failed"
109
110 cd "${S}"
111 dodoc ChangeLog README.html README-Mac-OSX.txt
112
113 use examples && dodoc examples/*
114 }