public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Hans de Graaff" <graaff@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/graaff:master commit in: dev-ruby/krb5-auth/files/, dev-ruby/krb5-auth/
Date: Thu, 11 Oct 2012 12:03:26 +0000 (UTC)	[thread overview]
Message-ID: <1349956996.a7f793677d7dc2c32ae9cc82aa9273c91c6862ec.graaff@gentoo> (raw)

commit:     a7f793677d7dc2c32ae9cc82aa9273c91c6862ec
Author:     Hans de Graaff <hans <AT> degraaff <DOT> org>
AuthorDate: Thu Oct 11 12:03:16 2012 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Thu Oct 11 12:03:16 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=dev/graaff.git;a=commit;h=a7f79367

Add ruby19 with proper patch.

(Portage version: 2.1.11.9/git/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)

---
 dev-ruby/krb5-auth/ChangeLog                       |    8 ++-
 dev-ruby/krb5-auth/Manifest                        |   13 +--
 .../krb5-auth/files/krb5-auth-0.7-ruby19.patch     |   78 ++++++++++++++++++++
 dev-ruby/krb5-auth/krb5-auth-0.7-r4.ebuild         |   54 ++++++++++++++
 4 files changed, 144 insertions(+), 9 deletions(-)

diff --git a/dev-ruby/krb5-auth/ChangeLog b/dev-ruby/krb5-auth/ChangeLog
index 0d620af..956f63d 100644
--- a/dev-ruby/krb5-auth/ChangeLog
+++ b/dev-ruby/krb5-auth/ChangeLog
@@ -1,7 +1,13 @@
 # ChangeLog for dev-ruby/krb5-auth
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+*krb5-auth-0.7-r4 (11 Oct 2012)
+
+  11 Oct 2012; Hans de Graaff <graaff@gentoo.org> +krb5-auth-0.7-r4.ebuild,
+  +files/krb5-auth-0.7-ruby19.patch:
+  Add ruby19 with proper patch.
+
 *krb5-auth-0.7-r3 (03 Jun 2011)
 
   03 Jun 2011; Hans de Graaff <graaff@gentoo.org> -krb5-auth-0.7-r1.ebuild,

diff --git a/dev-ruby/krb5-auth/Manifest b/dev-ruby/krb5-auth/Manifest
index 2bd68a6..f85dded 100644
--- a/dev-ruby/krb5-auth/Manifest
+++ b/dev-ruby/krb5-auth/Manifest
@@ -1,14 +1,11 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA256
 
-DIST krb5-auth-0.7.gem 17920 RMD160 8f0fe9412432c9c782eaeb483c8bcd75b1d09828 SHA1 a6c70a21281a07d312fd278cb6292811f6e90bf8 SHA256 35aaf49c7132dee136fed295c59050f74fd4400d9884cf65c024ed773c115d1f
-EBUILD krb5-auth-0.7-r3.ebuild 1262 RMD160 11dbbcfdffcf7109d44125e7969b2db61b878c21 SHA1 592a747465e4ad15155b49d226c7e39ce306588b SHA256 09d25513e212d8e200018f6523d8a5b6413bfae4fc8475b7b6210c829857c305
-MISC ChangeLog 1140 RMD160 fb45aa017c422b0e1b85b10225bb815de6c4cf46 SHA1 e7b5a86aba29d76a6878603eaeb50bdbe6731316 SHA256 e25dbea45dc3d21db6abe6e215188551805e542e985d68273c16e2573ba6d808
-MISC metadata.xml 201 RMD160 bbf7920d9809941fb024d20016dbe2fb9f15ff97 SHA1 e629d21795e99a77bd0a6aded1a153fd12d5b2c5 SHA256 c90b12c6600840878686d4544dbc51d97b0715add76b40d9400415cdef6324ad
+DIST krb5-auth-0.7.gem 17920 SHA256 35aaf49c7132dee136fed295c59050f74fd4400d9884cf65c024ed773c115d1f SHA512 4a2c45775042da7801854a02164d5c8ffbd77e2f16a263aa2e6607a62f1a780094d7cb5d05280250b20bffadc6aa00c57135eb1c3b52ed65b6f8eec2e1608866 WHIRLPOOL 395bf852e7042221d704d7437fc4b515a54543272998d1ff0a57805502fcfa7eb8b8a255dc8085cd27252eb520f076eceedb67128fcd4ea74af06235f6fc5b25
 -----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.17 (GNU/Linux)
+Version: GnuPG v2.0.19 (GNU/Linux)
 
-iF4EAREIAAYFAk3oxi8ACgkQrnu0mw69JkqPXAD/SVxzvOyfwkaO4muTbwupwKFJ
-glVYFlIStVaD8QQlAvYBAIs0BQ9L9nQr6lqxqm2Of3VRKUrqxIUD3kwMLb/EbT3U
-=pTpA
+iF4EAREIAAYFAlB2tYQACgkQiIP6VqMIqNdk+gD9EH4kYlL+iNdUmnBw8JA0tfbf
+nkfxilrAuaq4jTMf+wYA/RZFcTHPIPfzZn6hwp2ph9llZfweCll8GvgBoMCXfQqD
+=y3Dp
 -----END PGP SIGNATURE-----

diff --git a/dev-ruby/krb5-auth/files/krb5-auth-0.7-ruby19.patch b/dev-ruby/krb5-auth/files/krb5-auth-0.7-ruby19.patch
new file mode 100644
index 0000000..fd2e53d
--- /dev/null
+++ b/dev-ruby/krb5-auth/files/krb5-auth-0.7-ruby19.patch
@@ -0,0 +1,78 @@
+--- ext/ruby_krb5_auth.c.orig	2012-10-11 13:57:23.777814902 +0200
++++ ext/ruby_krb5_auth.c	2012-10-11 13:59:45.437841443 +0200
+@@ -25,6 +25,10 @@
+ #include <stdio.h>
+ #include <strings.h>
+ 
++#ifndef StringValuePtr
++# define StringValuePtr(s) STR2CSTR(s)
++#endif
++
+ static VALUE mKerberos;
+ static VALUE cKrb5;
+ static VALUE cCred;
+@@ -183,8 +187,8 @@
+ {
+   Check_Type(_user,T_STRING);
+   Check_Type(_pass,T_STRING);
+-  char *user = STR2CSTR(_user);
+-  char *pass = STR2CSTR(_pass);
++  char *user = StringValuePtr(_user);
++  char *pass = StringValuePtr(_pass);
+ 
+   struct ruby_krb5 *kerb;
+   krb5_error_code krbret;
+@@ -238,14 +242,14 @@
+   }
+   else if (argc == 1) {
+     Check_Type(argv[0], T_STRING);
+-    princ = STR2CSTR(argv[0]);
++    princ = StringValuePtr(argv[0]);
+     keytab_name = NULL;
+   }
+   else if (argc == 2) {
+     Check_Type(argv[0], T_STRING);
+     Check_Type(argv[1], T_STRING);
+-    princ = STR2CSTR(argv[0]);
+-    keytab_name = STR2CSTR(argv[1]);
++    princ = StringValuePtr(argv[0]);
++    keytab_name = StringValuePtr(argv[1]);
+   }
+   else {
+     rb_raise(rb_eRuntimeError, "Invalid arguments");
+@@ -310,7 +314,7 @@
+ static VALUE Krb5_change_password(VALUE self, VALUE _newpass)
+ {
+   Check_Type(_newpass,T_STRING);
+-  char *newpass = STR2CSTR(_newpass);
++  char *newpass = StringValuePtr(_newpass);
+ 
+   struct ruby_krb5 *kerb;
+   krb5_error_code krbret;
+@@ -351,7 +355,7 @@
+   }
+   else if (argc == 1) {
+     Check_Type(argv[0], T_STRING);
+-    cache_name = STR2CSTR(argv[0]);
++    cache_name = StringValuePtr(argv[0]);
+   }
+   else {
+     rb_raise(rb_eRuntimeError, "Invalid arguments");
+@@ -431,7 +435,7 @@
+   }
+   else if (argc == 1) {
+     Check_Type(argv[0], T_STRING);
+-    cache_name = STR2CSTR(argv[0]);
++    cache_name = StringValuePtr(argv[0]);
+   }
+   else {
+     rb_raise(rb_eRuntimeError, "Invalid arguments");
+@@ -536,7 +540,7 @@
+   }
+   else if (argc == 1) {
+     Check_Type(argv[0], T_STRING);
+-    cache_name = STR2CSTR(argv[0]);
++    cache_name = StringValuePtr(argv[0]);
+   }
+   else {
+     rb_raise(rb_eRuntimeError, "Invalid arguments");

diff --git a/dev-ruby/krb5-auth/krb5-auth-0.7-r4.ebuild b/dev-ruby/krb5-auth/krb5-auth-0.7-r4.ebuild
new file mode 100644
index 0000000..4378845
--- /dev/null
+++ b/dev-ruby/krb5-auth/krb5-auth-0.7-r4.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/zentest/zentest-3.3.0.ebuild,v 1.1 2006/08/28 14:34:06 pclouds Exp $
+
+EAPI=4
+USE_RUBY="ruby18 ruby19"
+
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="README TODO example.rb"
+
+RUBY_FAKEGEM_TASK_TEST=""
+
+RUBY_FAKEGEM_EXTRAINSTALL="ext"
+
+inherit multilib ruby-fakegem
+
+DESCRIPTION="Ruby bindings for the Kerberos library"
+HOMEPAGE="http://rubyforge.org/projects/krb5-auth/"
+LICENSE="GPL-2"
+
+KEYWORDS="~amd64 ~x86 ~x86-macos"
+SLOT="0"
+IUSE=""
+
+DEPEND="${DEPEND} virtual/krb5"
+RDEPEND="${RDEPEND} virtual/krb5"
+
+RUBY_PATCHES=( ${P}-ruby19.patch )
+
+all_ruby_prepare() {
+	# Move the example out of the bin directory to avoid auto-installation
+	mv bin/example.rb . || die
+	rmdir bin || die
+}
+
+each_ruby_configure() {
+	${RUBY} -Cext extconf.rb || die
+}
+
+each_ruby_compile() {
+	# We have injected --no-undefined in Ruby as a safety precaution
+	# against broken ebuilds, but these bindings unfortunately rely on
+	# a symbol that cannot be linked directly.
+	find . -name Makefile -print0 | xargs -0 \
+		sed -i -e 's:-Wl,--no-undefined::' || die "--no-undefined removal failed"
+
+	emake -Cext || die
+}
+
+all_ruby_install() {
+	all_fakegem_install
+
+	dodoc example.rb
+}


                 reply	other threads:[~2012-10-11 12:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1349956996.a7f793677d7dc2c32ae9cc82aa9273c91c6862ec.graaff@gentoo \
    --to=graaff@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox