You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-ruby/ruby-dict/ruby-dict-0.9.4-r1.ebuild

41 lines
962 B

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-dict/ruby-dict-0.9.4-r1.ebuild,v 1.3 2012/05/01 18:24:03 armin76 Exp $
EAPI=2
# ruby19 → require 'md5' fails
USE_RUBY="ruby18 jruby"
inherit ruby-ng
DESCRIPTION="RFC 2229 client in Ruby"
HOMEPAGE="http://www.caliban.org/ruby/ruby-dict.shtml"
SRC_URI="http://www.caliban.org/files/ruby/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc x86 ~x86-fbsd"
IUSE=""
each_ruby_test() {
ewarn "Tests will use network connection"
${RUBY} -Ilib ./rdict test || die
}
each_ruby_install() {
doruby lib/dict.rb || die "doruby failed"
}
all_ruby_install() {
dobin rdict || die "rdict failed"
dodoc README Changelog TODO doc/rfc2229.txt || die
dohtml doc/dict.html doc/rdict.html || die
# This would probably need a 3rb section..
# doman doc/dict.3
doman doc/rdict.1 || die "doman failed"
}