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/iobuffer/iobuffer-0.1.3-r1.ebuild

42 lines
1.0 KiB

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/iobuffer/iobuffer-0.1.3-r1.ebuild,v 1.2 2010/12/26 14:03:25 graaff Exp $
EAPI="2"
USE_RUBY="ruby18 ree18"
RUBY_FAKEGEM_TASK_DOC=""
RUBY_FAKEGEM_EXTRADOC="CHANGES README"
RUBY_FAKEGEM_TASK_TEST="spec"
inherit ruby-fakegem
DESCRIPTION="IO::Buffer is a fast byte queue which is primarily intended for non-blocking I/O applications"
HOMEPAGE="http://mynyml.com/ruby/flexible-continuous-testing"
LICENSE="MIT"
KEYWORDS="~amd64 ~x86 ~x86-macos"
SLOT="0"
IUSE=""
each_ruby_prepare() {
sed -i "s/lib\/iobuffer/ext\/iobuffer/" spec/buffer_spec.rb || die
}
each_ruby_configure() {
${RUBY} -C ext extconf.rb || die "Failed to configure the extension."
}
each_ruby_compile() {
emake -C ext || die "Failed to compile the extension."
}
each_ruby_test() {
${RUBY} -Iext -S spec spec/buffer_spec.rb
}
each_ruby_install() {
emake -C ext install DESTDIR="${D}" || die "Failed to install the extension."
}