/[gentoo-x86]/dev-ruby/ruby-gd/ruby-gd-0.8.0.ebuild
Gentoo

Contents of /dev-ruby/ruby-gd/ruby-gd-0.8.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Tue May 1 18:24:03 2012 UTC (2 years, 3 months ago) by armin76
Branch: MAIN
Changes since 1.6: +3 -3 lines
Drop ia64/sparc keywords

(Portage version: 2.1.10.53/cvs/Linux ia64, RepoMan options: --force)

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/ruby-gd/ruby-gd-0.8.0.ebuild,v 1.6 2011/01/23 11:02:10 xarthisius Exp $
4
5 EAPI="2"
6 USE_RUBY="ruby18"
7
8 RUBY_FAKEGEM_TASK_DOC=""
9 RUBY_FAKEGEM_TASK_TEST=""
10
11 RUBY_FAKEGEM_EXTRADOC="Changes readme.en readme.ja"
12
13 inherit ruby-fakegem
14
15 DESCRIPTION="ruby-gd: an interface to Boutell GD library"
16 HOMEPAGE="http://rubyforge.org/projects/ruby-gd/"
17
18 RUBY_PATCHES=( "${FILESDIR}/ruby-gd-0.7.4-fix-interlace.patch" )
19
20 LICENSE="Ruby"
21 SLOT="0"
22 KEYWORDS="amd64 ~ppc ppc64 x86"
23 IUSE="jpeg truetype X"
24
25 DEPEND="
26 >=media-libs/gd-2.0[png]
27 jpeg? ( virtual/jpeg )
28 truetype? ( media-libs/freetype )
29 X? ( x11-libs/libX11 )"
30 RDEPEND="${DEPEND}"
31
32 each_ruby_configure() {
33 local myconf=""
34
35 if use truetype; then
36 myconf="${myconf} --with-ttf --with-freetype"
37 fi
38
39 ${RUBY} extconf.rb --enable-gd2_0 ${myconf} \
40 $(use_with jpeg) \
41 $(use_with X xpm) || die
42 }
43
44 each_ruby_compile() {
45 emake
46 }
47
48 each_ruby_install() {
49 ruby_fakegem_install_gemspec
50 emake DESTDIR="${D}" install || die
51 }
52
53 all_ruby_install() {
54 dodoc Changes readme.* doc/manual.rd doc/INSTALL.* || die
55 dohtml doc/manual.html doc/manual_index.html
56 insinto /usr/share/doc/${PF}/sample
57 doins sample/*
58 }

  ViewVC Help
Powered by ViewVC 1.1.20