diff options
author | Hans de Graaff <graaff@gentoo.org> | 2010-01-16 18:06:21 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2010-01-16 18:06:21 +0000 |
commit | 633f9d8d90e1fe366a6af8da897427192c6bef3c (patch) | |
tree | 7176481c351c56f5cf665269d6af5e6c4589f0b8 /dev-ruby | |
parent | Remove bundled copy of coverage. Fixes bug #300757 (diff) | |
download | gentoo-2-633f9d8d90e1fe366a6af8da897427192c6bef3c.tar.gz gentoo-2-633f9d8d90e1fe366a6af8da897427192c6bef3c.tar.bz2 gentoo-2-633f9d8d90e1fe366a6af8da897427192c6bef3c.zip |
Overdue version bump, made possible since we can now easily patch gems. Converted to ruby-fakegem.
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/ruby-gd/ChangeLog | 10 | ||||
-rw-r--r-- | dev-ruby/ruby-gd/ruby-gd-0.8.0.ebuild | 58 |
2 files changed, 66 insertions, 2 deletions
diff --git a/dev-ruby/ruby-gd/ChangeLog b/dev-ruby/ruby-gd/ChangeLog index f3e768acc011..bf2b907c2216 100644 --- a/dev-ruby/ruby-gd/ChangeLog +++ b/dev-ruby/ruby-gd/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-ruby/ruby-gd -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-gd/ChangeLog,v 1.21 2009/12/20 14:13:53 graaff Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-gd/ChangeLog,v 1.22 2010/01/16 18:06:21 graaff Exp $ + +*ruby-gd-0.8.0 (16 Jan 2010) + + 16 Jan 2010; Hans de Graaff <graaff@gentoo.org> +ruby-gd-0.8.0.ebuild: + Overdue version bump, made possible since we can now easily patch gems. + Converted to ruby-fakegem. 20 Dec 2009; Hans de Graaff <graaff@gentoo.org> ruby-gd-0.7.4-r1.ebuild: Remove obsolete virtual/ruby dependency. diff --git a/dev-ruby/ruby-gd/ruby-gd-0.8.0.ebuild b/dev-ruby/ruby-gd/ruby-gd-0.8.0.ebuild new file mode 100644 index 000000000000..f3b9d4b26890 --- /dev/null +++ b/dev-ruby/ruby-gd/ruby-gd-0.8.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-gd/ruby-gd-0.8.0.ebuild,v 1.1 2010/01/16 18:06:21 graaff Exp $ + +EAPI="2" +USE_RUBY="ruby18" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_TASK_TEST="" + +RUBY_FAKEGEM_EXTRADOC="Changes readme.en readme.ja" + +inherit ruby-fakegem + +DESCRIPTION="ruby-gd: an interface to Boutell GD library" +HOMEPAGE="http://rubyforge.org/projects/ruby-gd/" + +RUBY_PATCHES=( "${FILESDIR}/ruby-gd-0.7.4-fix-interlace.patch" ) + +LICENSE="Ruby" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86" +IUSE="jpeg truetype X" + +DEPEND=" + >=media-libs/gd-2.0[png] + jpeg? ( media-libs/jpeg ) + truetype? ( media-libs/freetype ) + X? ( x11-libs/libX11 )" +RDEPEND="${DEPEND}" + +each_ruby_configure() { + local myconf="" + + if use truetype; then + myconf="${myconf} --with-ttf --with-freetype" + fi + + ${RUBY} extconf.rb --enable-gd2_0 ${myconf} \ + $(use_with jpeg) \ + $(use_with X xpm) || die +} + +each_ruby_compile() { + emake +} + +each_ruby_install() { + ruby_fakegem_genspec + emake DESTDIR="${D}" install || die +} + +all_ruby_install() { + dodoc Changes readme.* doc/manual.rd doc/INSTALL.* || die + dohtml doc/manual.html doc/manual_index.html + insinto /usr/share/doc/${PF}/sample + doins sample/* +} |