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.8.0-r1.ebuild
Date: Fri, 26 Dec 2008 13:36:58
Message-Id: E1LGCs2-0003Jo-Lo@stork.gentoo.org
1 graaff 08/12/26 13:36:54
2
3 Modified: ChangeLog
4 Added: rmagick-2.8.0-r1.ebuild
5 Log:
6 Put documentation files in the right places, fixing #252389
7 (Portage version: 2.1.6.3/cvs/Linux 2.6.26-gentoo-r2 x86_64)
8
9 Revision Changes Path
10 1.129 dev-ruby/rmagick/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rmagick/ChangeLog?rev=1.129&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rmagick/ChangeLog?rev=1.129&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rmagick/ChangeLog?r1=1.128&r2=1.129
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/rmagick/ChangeLog,v
19 retrieving revision 1.128
20 retrieving revision 1.129
21 diff -u -r1.128 -r1.129
22 --- ChangeLog 13 Dec 2008 16:28:40 -0000 1.128
23 +++ ChangeLog 26 Dec 2008 13:36:54 -0000 1.129
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.128 2008/12/13 16:28:40 armin76 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rmagick/ChangeLog,v 1.129 2008/12/26 13:36:54 graaff Exp $
29 +
30 +*rmagick-2.8.0-r1 (26 Dec 2008)
31 +
32 + 26 Dec 2008; Hans de Graaff <graaff@g.o> +rmagick-2.8.0-r1.ebuild:
33 + Put documentation files in the right place, fixing #252389.
34
35 13 Dec 2008; Raúl Porcel <armin76@g.o> rmagick-1.15.15.ebuild,
36 rmagick-2.6.0.ebuild:
37
38
39
40 1.1 dev-ruby/rmagick/rmagick-2.8.0-r1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rmagick/rmagick-2.8.0-r1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rmagick/rmagick-2.8.0-r1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: rmagick-2.8.0-r1.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.8.0-r1.ebuild,v 1.1 2008/12/26 13:36:54 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 --doc-dir="${D}/usr/share/doc/${P}/html" "$@" \
108 ${RUBY_ECONF} ${EXTRA_ECONF} || die "setup.rb config failed"
109 ${RUBY} setup.rb install --prefix="${D}" || die "setup.rb install failed"
110
111 cd "${S}"
112 dodoc ChangeLog README.html README-Mac-OSX.txt
113
114 use examples && dodoc examples/*
115 }