summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2012-09-29 06:04:44 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2012-09-29 06:04:44 +0000
commit0cfe60cd67639af6a5e583a98e96fc60d6611f5f (patch)
tree2503cc714bbd38076ddc638f68aee4dff21a6ed4 /dev-ruby/curb
parentAdd missing header files to fix build with jack enabled (bug #436376 by Domin... (diff)
downloadgentoo-2-0cfe60cd67639af6a5e583a98e96fc60d6611f5f.tar.gz
gentoo-2-0cfe60cd67639af6a5e583a98e96fc60d6611f5f.tar.bz2
gentoo-2-0cfe60cd67639af6a5e583a98e96fc60d6611f5f.zip
Initial import of curb.
(Portage version: 2.2.0_alpha134/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/curb')
-rw-r--r--dev-ruby/curb/ChangeLog9
-rw-r--r--dev-ruby/curb/curb-0.8.1.ebuild36
-rw-r--r--dev-ruby/curb/metadata.xml5
3 files changed, 50 insertions, 0 deletions
diff --git a/dev-ruby/curb/ChangeLog b/dev-ruby/curb/ChangeLog
new file mode 100644
index 000000000000..97cf65731e85
--- /dev/null
+++ b/dev-ruby/curb/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-ruby/curb
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/curb/ChangeLog,v 1.1 2012/09/29 06:04:44 flameeyes Exp $
+
+*curb-0.8.1 (29 Sep 2012)
+
+ 29 Sep 2012; Diego E. Pettenò <flameeyes@gentoo.org> +curb-0.8.1.ebuild,
+ +metadata.xml:
+ Initial import of curb.
diff --git a/dev-ruby/curb/curb-0.8.1.ebuild b/dev-ruby/curb/curb-0.8.1.ebuild
new file mode 100644
index 000000000000..65d6199ab0a9
--- /dev/null
+++ b/dev-ruby/curb/curb-0.8.1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/curb/curb-0.8.1.ebuild,v 1.1 2012/09/29 06:04:44 flameeyes Exp $
+
+EAPI=4
+USE_RUBY="ruby18 ruby19 ree18"
+
+RUBY_FAKEGEM_RECIPE_TEST="rake"
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Ruby-language bindings for libcurl"
+HOMEPAGE="http://curb.rubyforge.org/"
+
+LICENSE="Ruby"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND+=" net-misc/curl[ssl]"
+RDEPEND+=" net-misc/curl[ssl]"
+
+all_ruby_prepare() {
+ # fix tests when localhost is also ::1
+ sed -i -e 's|localhost:|127.0.0.1:|g' tests/*.rb || die
+}
+
+each_ruby_configure() {
+ ${RUBY} -Cext extconf.rb || die "extconf.rb failed"
+}
+
+each_ruby_compile() {
+ emake -Cext CFLAGS="${CFLAGS} -fPIC" archflags="${LDFLAGS}"
+ cp -l ext/curb_core$(get_modname) lib || die
+}
diff --git a/dev-ruby/curb/metadata.xml b/dev-ruby/curb/metadata.xml
new file mode 100644
index 000000000000..852136183369
--- /dev/null
+++ b/dev-ruby/curb/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>