# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ #inherit eutils inherit ruby DESCRIPTION="Nihongo Benkyo is a Japanese dictionary and learning tool for Linux and Windows. Its goal is to provide a comprehensive application that will help you learn Japanese." HOMEPAGE="http://www.nihongobenkyo.org/" # The number-part of the URL (7120 in this case) changes with each version, # so version-bumping won't do SRC_URI="http://rubyforge.org/frs/download.php/7120/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" # libxml2 required for import facility IUSE="xml2" USE_RUBY="ruby18 ruby19" DEPEND=">=x11-libs/gtk+-2.6 >=dev-ruby/ruby-gettext-0.6.1 >=dev-ruby/ruby-gnome2-0.12.0 >=dev-ruby/ruby-libglade2-0.12.0 >=dev-ruby/ruby-gtk2-0.12.0 >=dev-ruby/ruby-gdkpixbuf2-0.12.0 =dev-db/sqlite-3* >=dev-ruby/sqlite3-ruby-1.1.0 dev-util/intltool xml2? ( >=dev-libs/libxml2-2.6.22 )" # No clue what of the above is runtime dependency, sorry #RDEPEND="" src_compile() { if ! use xml2 ; then noext="--without-ext" fi ruby setup.rb config $noext || die "ruby setup.rb config failed" ruby setup.rb setup || die "ruby setup.rb setup failed" } src_install() { ruby setup.rb install --prefix=${D} || die erubydoc } pkg_postinst() { einfo "Nihongobenkyo can use different dictionaries, but none is included." einfo "Please visit this page: dictionary http://www.nihongobenkyo.org/data.html" }