summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2014-09-19 05:48:05 +0000
committerHans de Graaff <graaff@gentoo.org>2014-09-19 05:48:05 +0000
commitaf2ccb2987b379c1673ffb9d9033ebd5c422f6df (patch)
tree3f9a5b7253a5704546da97614bcca8a2caacb7ee /dev-ruby/ffi
parentAdd new revision for ruby21 and create stable candidate. (diff)
downloadgentoo-2-af2ccb2987b379c1673ffb9d9033ebd5c422f6df.tar.gz
gentoo-2-af2ccb2987b379c1673ffb9d9033ebd5c422f6df.tar.bz2
gentoo-2-af2ccb2987b379c1673ffb9d9033ebd5c422f6df.zip
Add new revision to create a stable candidate.
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
Diffstat (limited to 'dev-ruby/ffi')
-rw-r--r--dev-ruby/ffi/ChangeLog8
-rw-r--r--dev-ruby/ffi/ffi-1.9.3-r1.ebuild61
-rw-r--r--dev-ruby/ffi/ffi-1.9.3.ebuild4
3 files changed, 70 insertions, 3 deletions
diff --git a/dev-ruby/ffi/ChangeLog b/dev-ruby/ffi/ChangeLog
index d6cd7314ba3a..5255b1d07cda 100644
--- a/dev-ruby/ffi/ChangeLog
+++ b/dev-ruby/ffi/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-ruby/ffi
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ffi/ChangeLog,v 1.72 2014/08/13 18:46:24 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ffi/ChangeLog,v 1.73 2014/09/19 05:48:05 graaff Exp $
+
+*ffi-1.9.3-r1 (19 Sep 2014)
+
+ 19 Sep 2014; Hans de Graaff <graaff@gentoo.org> ffi-1.9.3.ebuild,
+ +ffi-1.9.3-r1.ebuild:
+ Add new revision to create a stable candidate.
13 Aug 2014; Raúl Porcel <armin76@gentoo.org> ffi-1.9.3.ebuild:
Add ~sparc wrt #468536
diff --git a/dev-ruby/ffi/ffi-1.9.3-r1.ebuild b/dev-ruby/ffi/ffi-1.9.3-r1.ebuild
new file mode 100644
index 000000000000..c3d4bb0a572d
--- /dev/null
+++ b/dev-ruby/ffi/ffi-1.9.3-r1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ffi/ffi-1.9.3-r1.ebuild,v 1.1 2014/09/19 05:48:05 graaff Exp $
+
+EAPI=5
+
+# jruby → unneeded, this is part of the standard JRuby distribution, and
+# would just install a dummy.
+USE_RUBY="ruby19 ruby20 ruby21"
+
+RUBY_FAKEGEM_TASK_TEST="specs"
+
+RUBY_FAKEGEM_TASK_DOC="doc:yard"
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Ruby extension for programmatically loading dynamic libraries"
+HOMEPAGE="http://wiki.github.com/ffi/ffi"
+
+SRC_URI="http://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${PN}-git-${PV}.tgz"
+
+IUSE=""
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
+
+RDEPEND+=" virtual/libffi"
+DEPEND+=" virtual/libffi"
+
+ruby_add_bdepend "dev-ruby/rake-compiler dev-ruby/yard
+ test? ( dev-ruby/rspec:2 )"
+
+ruby_add_rdepend "virtual/ruby-threads"
+
+all_ruby_prepare() {
+ sed -i -e '/tasks/ s:^:#:' \
+ -e '/Gem::Tasks/,/end/ s:^:#:' Rakefile || die
+
+ # Fix Makefile for tests
+ sed -i -e '/CCACHE :=/ s:^:#:' \
+ -e 's/-O2//' \
+ -e 's/^CFLAGS =/CFLAGS +=/' libtest/GNUmakefile || die
+}
+
+each_ruby_compile() {
+ ${RUBY} -S rake compile || die "compile failed"
+ ${RUBY} -S rake -f gen/Rakefile || die "types.conf generation failed"
+}
+
+each_ruby_test() {
+ CC=$(tc-getCC) CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" ${RUBY} -S rake specs || die
+}
+
+all_ruby_install() {
+ all_fakegem_install
+
+ docinto examples
+ dodoc samples/*
+}
diff --git a/dev-ruby/ffi/ffi-1.9.3.ebuild b/dev-ruby/ffi/ffi-1.9.3.ebuild
index 98279247924e..439ab7482682 100644
--- a/dev-ruby/ffi/ffi-1.9.3.ebuild
+++ b/dev-ruby/ffi/ffi-1.9.3.ebuild
@@ -1,12 +1,12 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ffi/ffi-1.9.3.ebuild,v 1.9 2014/08/13 18:46:24 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ffi/ffi-1.9.3.ebuild,v 1.10 2014/09/19 05:48:05 graaff Exp $
EAPI=5
# jruby → unneeded, this is part of the standard JRuby distribution, and
# would just install a dummy.
-USE_RUBY="ruby19 ruby20 ruby21"
+USE_RUBY="ruby19 ruby20"
RUBY_FAKEGEM_TASK_TEST="specs"