diff options
author | Matsuu Takuto <matsuu@gentoo.org> | 2012-03-16 00:09:15 +0000 |
---|---|---|
committer | Matsuu Takuto <matsuu@gentoo.org> | 2012-03-16 00:09:15 +0000 |
commit | f4de8a05fbd2f7c97594e30333fdd5fc0dac77cf (patch) | |
tree | 27d27953712d7995c57a5c693bdddd35442f3236 /dev-ruby/ruby-shadow | |
parent | add some more ifdefery to the patch, by Fabian Kislat, bug #407607 (diff) | |
download | gentoo-2-f4de8a05fbd2f7c97594e30333fdd5fc0dac77cf.tar.gz gentoo-2-f4de8a05fbd2f7c97594e30333fdd5fc0dac77cf.tar.bz2 gentoo-2-f4de8a05fbd2f7c97594e30333fdd5fc0dac77cf.zip |
Fixed compile issue.
(Portage version: 2.1.10.44/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/ruby-shadow')
-rw-r--r-- | dev-ruby/ruby-shadow/ChangeLog | 8 | ||||
-rw-r--r-- | dev-ruby/ruby-shadow/files/ruby-shadow-2.1.2-file_ptr.patch | 13 | ||||
-rw-r--r-- | dev-ruby/ruby-shadow/ruby-shadow-2.1.2-r1.ebuild | 32 |
3 files changed, 52 insertions, 1 deletions
diff --git a/dev-ruby/ruby-shadow/ChangeLog b/dev-ruby/ruby-shadow/ChangeLog index ce3169d7aa2e..726cbd828d2c 100644 --- a/dev-ruby/ruby-shadow/ChangeLog +++ b/dev-ruby/ruby-shadow/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-ruby/ruby-shadow # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-shadow/ChangeLog,v 1.16 2012/03/14 16:31:32 matsuu Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-shadow/ChangeLog,v 1.17 2012/03/16 00:09:15 matsuu Exp $ + +*ruby-shadow-2.1.2-r1 (16 Mar 2012) + + 16 Mar 2012; MATSUU Takuto <matsuu@gentoo.org> +ruby-shadow-2.1.2-r1.ebuild, + +files/ruby-shadow-2.1.2-file_ptr.patch: + Fixed compile issue. *ruby-shadow-2.1.2 (14 Mar 2012) diff --git a/dev-ruby/ruby-shadow/files/ruby-shadow-2.1.2-file_ptr.patch b/dev-ruby/ruby-shadow/files/ruby-shadow-2.1.2-file_ptr.patch new file mode 100644 index 000000000000..0246624b9721 --- /dev/null +++ b/dev-ruby/ruby-shadow/files/ruby-shadow-2.1.2-file_ptr.patch @@ -0,0 +1,13 @@ +diff --git a/shadow.c b/shadow.c +index c44a4d8..41ff003 100644 +--- a/shadow.c ++++ b/shadow.c +@@ -170,7 +170,7 @@ rb_shadow_putspent(VALUE self, VALUE entry, VALUE file) + + for(i=0; i<=8; i++) + val[i] = RSTRUCT_PTR( entry )[i]; //val[i] = RSTRUCT(entry)->ptr[i]; +- cfile = file_pr( RFILE(file)->fptr ); ++ cfile = file_ptr( RFILE(file)->fptr ); + + centry.sp_namp = StringValuePtr(val[0]); + centry.sp_pwdp = StringValuePtr(val[1]); diff --git a/dev-ruby/ruby-shadow/ruby-shadow-2.1.2-r1.ebuild b/dev-ruby/ruby-shadow/ruby-shadow-2.1.2-r1.ebuild new file mode 100644 index 000000000000..16b14dffb8c3 --- /dev/null +++ b/dev-ruby/ruby-shadow/ruby-shadow-2.1.2-r1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-shadow/ruby-shadow-2.1.2-r1.ebuild,v 1.1 2012/03/16 00:09:15 matsuu Exp $ + +EAPI="4" +USE_RUBY="ruby18 ruby19 ree18" + +RUBY_FAKEGEM_TASK_TEST="" +RUBY_FAKEGEM_EXTRADOC="HISTORY README README.euc" + +inherit ruby-fakegem + +DESCRIPTION="ruby shadow bindings" +HOMEPAGE="http://ttsky.net" + +LICENSE="Ruby" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86" +IUSE="" + +RUBY_PATCHES="${FILESDIR}/${P}-file_ptr.patch" + +each_ruby_configure() { + ${RUBY} extconf.rb || die "Configuration failed." + sed -i -e "/^ldflags =/s/$/ \$(LDFLAGS)/" Makefile || die +} + +each_ruby_compile() { + emake || die "Compilation failed." + mkdir lib + cp shadow.so lib +} |