diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-01-31 14:35:47 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-01-31 14:35:47 +0000 |
commit | de1b5616937a93216577e49efab60ab23fee3c08 (patch) | |
tree | cfb4ad925894965fea5058b9dc0566ab16f1b32d | |
parent | Marked ~ppc-macos (diff) | |
download | historical-de1b5616937a93216577e49efab60ab23fee3c08.tar.gz historical-de1b5616937a93216577e49efab60ab23fee3c08.tar.bz2 historical-de1b5616937a93216577e49efab60ab23fee3c08.zip |
Initial import of ffi gem for Ruby 1.8 and Ruby 1.9. This will be used by ffi-based extensions, supported by both MRI and JRuby.
Package-Manager: portage-2.2_rc62/cvs/Linux x86_64
-rw-r--r-- | dev-ruby/ffi/ChangeLog | 11 | ||||
-rw-r--r-- | dev-ruby/ffi/Manifest | 15 | ||||
-rw-r--r-- | dev-ruby/ffi/ffi-0.5.4.ebuild | 44 | ||||
-rw-r--r-- | dev-ruby/ffi/files/ffi-0.5.4-rakefile.patch | 31 | ||||
-rw-r--r-- | dev-ruby/ffi/metadata.xml | 5 |
5 files changed, 106 insertions, 0 deletions
diff --git a/dev-ruby/ffi/ChangeLog b/dev-ruby/ffi/ChangeLog new file mode 100644 index 000000000000..fba908d71e3f --- /dev/null +++ b/dev-ruby/ffi/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-ruby/ffi +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ffi/ChangeLog,v 1.1 2010/01/31 14:35:47 flameeyes Exp $ + +*ffi-0.5.4 (31 Jan 2010) + + 31 Jan 2010; Diego E. Pettenò <flameeyes@gentoo.org> +ffi-0.5.4.ebuild, + +files/ffi-0.5.4-rakefile.patch, +metadata.xml: + Initial import of ffi gem for Ruby 1.8 and Ruby 1.9. This will be used by + ffi-based extensions, supported by both MRI and JRuby. + diff --git a/dev-ruby/ffi/Manifest b/dev-ruby/ffi/Manifest new file mode 100644 index 000000000000..f5ef114549f1 --- /dev/null +++ b/dev-ruby/ffi/Manifest @@ -0,0 +1,15 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX ffi-0.5.4-rakefile.patch 813 RMD160 ce1ddea8eff873df8b47f1e7913423ba6d49f945 SHA1 0f7eb061ea45ad7f199adb414955bf36c9b48d1a SHA256 a2bb0199e086a826ee6a998381d38fe096b8c6d2e915c20db859acc2d69d86d2 +DIST ffi-git-0.5.4.tgz 814659 RMD160 f14fc946cd72f3a2cd55e7111f97bfc7bb75c592 SHA1 6ed3d20ee01dc4d85cea8b1a1159ee60de70acee SHA256 c2bad1607289293d869e452e1bf1e7334abaa13c3157bae48292353c5799fe8e +EBUILD ffi-0.5.4.ebuild 1016 RMD160 8d9751ea983ab41447218ff1654e7cbd7d7a67b5 SHA1 6bf047d57d02b9dc466a43242429e42063b5a301 SHA256 6a827dddd768f68cc8b8cf60e80368b5e0523a0649c78cd1b1677fd173f827cc +MISC ChangeLog 485 RMD160 086c2b212cbd270f01d32eb39b84ce26235467e0 SHA1 8ca1b060377845ff72e45b99ab7c80bd3611e845 SHA256 6e23e56049a1c9ab20aa4d4830a06487bd054156a96e6b663d9381615ff15f17 +MISC metadata.xml 157 RMD160 5d9e2c7ecba96ffebd936d38acedf859cdea84e1 SHA1 8ce15dcc608eeb5616aeec610dc695cbe6f93e02 SHA256 11fba03a217e2d996f5cd8895493a5692ece8ddac2c1a2dfc71d0e830555121c +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.14 (GNU/Linux) + +iEYEARECAAYFAktllUwACgkQAiZjviIA2XiFuACdEZ6gCDI4EiqtHe4dAMEbUPkF +SHgAmwYH9nxk97B1KLhB3pQxf7UOOSus +=TZSs +-----END PGP SIGNATURE----- diff --git a/dev-ruby/ffi/ffi-0.5.4.ebuild b/dev-ruby/ffi/ffi-0.5.4.ebuild new file mode 100644 index 000000000000..017b9eb66761 --- /dev/null +++ b/dev-ruby/ffi/ffi-0.5.4.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ffi/ffi-0.5.4.ebuild,v 1.1 2010/01/31 14:35:47 flameeyes Exp $ + +EAPI=2 + +# jruby → unneeded, this is part of the standard JRuby distribution, +# and would just install a dummy +USE_RUBY="ruby18 ruby19" + +RUBY_FAKEGEM_TASK_TEST="spec" + +RUBY_FAKEGEM_TASK_DOC="doc:rdoc" +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_EXTRADOC="History.txt README.rdoc" + +inherit ruby-fakegem + +DESCRIPTION="Ruby extension for programmatically loading dynamic libraries" +HOMEPAGE="http://wiki.github.com/ffi/ffi" + +SRC_URI="http://github.com/ffi/ffi/tarball/0.5.4 -> ${PN}-git-${PV}.tgz" + +S="${WORKDIR}/ffi-ffi-57b5d81" + +IUSE="" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +all_ruby_prepare() { + epatch "${FILESDIR}"/${P}-rakefile.patch +} + +each_ruby_compile() { + ${RUBY} -S rake compile || die "compile failed" +} + +all_ruby_install() { + all_fakegem_install + + docinto examples + dodoc samples/* || die +} diff --git a/dev-ruby/ffi/files/ffi-0.5.4-rakefile.patch b/dev-ruby/ffi/files/ffi-0.5.4-rakefile.patch new file mode 100644 index 000000000000..7f418c6ea959 --- /dev/null +++ b/dev-ruby/ffi/files/ffi-0.5.4-rakefile.patch @@ -0,0 +1,31 @@ +Index: ffi-ffi-57b5d81/Rakefile +=================================================================== +--- ffi-ffi-57b5d81.orig/Rakefile ++++ ffi-ffi-57b5d81/Rakefile +@@ -12,16 +12,7 @@ require 'date' + require 'fileutils' + require 'rbconfig' + +-begin +- require 'bones' +- Bones.setup +-rescue LoadError +- begin +- load 'tasks/setup.rb' +- rescue LoadError +- raise RuntimeError, '### please install the "bones" gem ###' +- end +-end ++load 'tasks/setup.rb' + + LIBEXT = case Config::CONFIG['host_os'].downcase + when /darwin/ +@@ -130,7 +121,7 @@ if RUBY_PLATFORM == "java" + sh %{#{Gem.ruby} -S spec #{Dir["spec/ffi/rbx/*_spec.rb"].join(" ")} -fs --color} + end + else +- TEST_DEPS.unshift :compile ++# TEST_DEPS.unshift :compile + desc "Run all specs" + task :specs => TEST_DEPS do + ENV["MRI_FFI"] = "1" diff --git a/dev-ruby/ffi/metadata.xml b/dev-ruby/ffi/metadata.xml new file mode 100644 index 000000000000..852136183369 --- /dev/null +++ b/dev-ruby/ffi/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> |