# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/fxruby/fxruby-1.2.2.ebuild,v 1.11 2007/01/31 07:39:53 pingu Exp $ inherit ruby IUSE="" MY_P=FXRuby-${PV} KEYWORDS="sparc x86 ~ppc alpha hppa" DESCRIPTION="Ruby language binding to the FOX GUI toolkit" HOMEPAGE="http://www.fxruby.org/" SRC_URI="http://rubyforge.org/frs/download.php/1612/${P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" DEPEND="=x11-libs/fox-1.2* x11-libs/fxscintilla" USE_RUBY="ruby16 ruby18 ruby19" S=${WORKDIR}/${MY_P} src_unpack() { unpack ${A} einfo "Avoid all -O0 builds" cd ${S} sed -i -e 's:-O0 -Iinclude:-Iinclude:g' \ ext/fox12/extconf.rb || die "Can't fix forced -O0" } src_compile() { ruby install.rb config --prefix=/usr || die ruby install.rb setup || die } src_install() { ruby install.rb config --prefix=${D}/usr || die ruby install.rb install || die dodoc ANNOUNCE ChangeLog README* cp -r examples ${D}/usr/share/doc/${PF} dohtml -r doc/* }