diff options
author | Hans de Graaff <graaff@gentoo.org> | 2010-10-03 08:05:55 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2010-10-03 08:05:55 +0000 |
commit | e8baa531dd74a6e78c528ee6166140fe41a9fc8c (patch) | |
tree | 0dab07d31fc498f3347f77fcb8b22c150e2a18b8 /dev-ruby/em-http-request | |
parent | Respecting LDFLAGS now, 333847; Prefix ready and keyworded for ~-linux (diff) | |
download | gentoo-2-e8baa531dd74a6e78c528ee6166140fe41a9fc8c.tar.gz gentoo-2-e8baa531dd74a6e78c528ee6166140fe41a9fc8c.tar.bz2 gentoo-2-e8baa531dd74a6e78c528ee6166140fe41a9fc8c.zip |
Initial import. New dependency for dev-ruby/webmock.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/em-http-request')
-rw-r--r-- | dev-ruby/em-http-request/ChangeLog | 10 | ||||
-rw-r--r-- | dev-ruby/em-http-request/em-http-request-0.2.13.ebuild | 47 | ||||
-rw-r--r-- | dev-ruby/em-http-request/metadata.xml | 5 |
3 files changed, 62 insertions, 0 deletions
diff --git a/dev-ruby/em-http-request/ChangeLog b/dev-ruby/em-http-request/ChangeLog new file mode 100644 index 000000000000..418f872d52b4 --- /dev/null +++ b/dev-ruby/em-http-request/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-ruby/em-http-request +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/em-http-request/ChangeLog,v 1.1 2010/10/03 08:05:55 graaff Exp $ + +*em-http-request-0.2.13 (03 Oct 2010) + + 03 Oct 2010; Hans de Graaff <graaff@gentoo.org> + +em-http-request-0.2.13.ebuild, +metadata.xml: + Initial import. New dependency for dev-ruby/webmock. + diff --git a/dev-ruby/em-http-request/em-http-request-0.2.13.ebuild b/dev-ruby/em-http-request/em-http-request-0.2.13.ebuild new file mode 100644 index 000000000000..4aa89c06a84b --- /dev/null +++ b/dev-ruby/em-http-request/em-http-request-0.2.13.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/em-http-request/em-http-request-0.2.13.ebuild,v 1.1 2010/10/03 08:05:55 graaff Exp $ + +EAPI=2 + +USE_RUBY="ruby18" + +RUBY_FAKEGEM_TASK_TEST="spec" + +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md" + +inherit multilib ruby-fakegem + +DESCRIPTION="Asynchronous HTTP client for Ruby, based on EventMachine runtime." +HOMEPAGE="http://github.com/igrigorik/em-http-request" + +LICENSE="Ruby" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +# Tests depend on em-websocket which we don't have packaged yet. +RESTRICT="test" + +ruby_add_rdepend ">=dev-ruby/addressable-2.0.0 >=dev-ruby/eventmachine-0.12.9" + +ruby_add_bdepend "test? ( dev-ruby/rspec:0 )" + +all_ruby_prepare() { + # Fix documentation task, sent to upstream. + sed -i -e 's/README/README.md/' Rakefile || die "Unable to fix Rakefile" +} + +each_ruby_configure() { + for dir in http11_client buffer ; do + ${RUBY} -Cext/$dir extconf.rb || die "Unable to configure $dir" + done +} + +each_ruby_compile() { + for dir in http11_client buffer ; do + emake -Cext/$dir || die "Unable to compile $dir" + cp ext/$dir/*$(get_modname) lib/ || die "Unable to copy shared object from $dir" + done +} diff --git a/dev-ruby/em-http-request/metadata.xml b/dev-ruby/em-http-request/metadata.xml new file mode 100644 index 000000000000..852136183369 --- /dev/null +++ b/dev-ruby/em-http-request/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>ruby</herd> +</pkgmetadata> |