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