Date: Fri, 8 May 2015 09:21:47 +0000 (UTC) From: Michael Moll <mmoll@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r385743 - in head/security/ruby-camellia: . files Message-ID: <201505080921.t489LlXw042308@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mmoll Date: Fri May 8 09:21:47 2015 New Revision: 385743 URL: https://svnweb.freebsd.org/changeset/ports/385743 Log: security/ruby-camellia: unbreak build for ruby 2.1+ PR: 199267 Differential Revision: https://reviews.freebsd.org/D2476 Submitted by: Yoshisato Yanagisawa <osho@pcc-software.org> (maintainer) Approved by: swills (mentor) Added: head/security/ruby-camellia/files/ head/security/ruby-camellia/files/patch-ext_camellia-rb.c (contents, props changed) head/security/ruby-camellia/files/patch-setup.rb (contents, props changed) Modified: head/security/ruby-camellia/Makefile head/security/ruby-camellia/pkg-descr Modified: head/security/ruby-camellia/Makefile ============================================================================== --- head/security/ruby-camellia/Makefile Fri May 8 09:17:53 2015 (r385742) +++ head/security/ruby-camellia/Makefile Fri May 8 09:21:47 2015 (r385743) @@ -12,6 +12,9 @@ DIST_SUBDIR= ruby MAINTAINER= osho@pcc-software.org COMMENT= Ruby extension library which implements Camellia encryption +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/License.txt + USE_RUBY= yes USE_RUBY_SETUP= yes @@ -32,10 +35,4 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODDOCDIR}/ .endfor -.include <bsd.port.pre.mk> - -.if ${RUBY_VER} >= 2.1 -BROKEN= Does not build -.endif - -.include <bsd.port.post.mk> +.include <bsd.port.mk> Added: head/security/ruby-camellia/files/patch-ext_camellia-rb.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/ruby-camellia/files/patch-ext_camellia-rb.c Fri May 8 09:21:47 2015 (r385743) @@ -0,0 +1,31 @@ +--- ext/camellia-rb.c.orig 2009-01-26 13:53:51.000000000 +0900 ++++ ext/camellia-rb.c +@@ -111,7 +111,7 @@ + /* + # encryption method + */ +-static VALUE encrypt(VALUE self, VALUE args) ++static VALUE camellia_encrypt(VALUE self, VALUE args) + { + camelliaObject *camellia; + unsigned char *data; +@@ -147,7 +147,7 @@ + /* + # decryption method + */ +-static VALUE decrypt(VALUE self,VALUE args) ++static VALUE camellia_decrypt(VALUE self,VALUE args) + { + camelliaObject *camellia; + unsigned char *data; +@@ -537,8 +537,8 @@ + //rb_define_singleton_method(cCamellia, "new", s_new, 0); + rb_define_private_method(cCamellia, "initialize", set_key, 1); + //rb_define_method(cCamellia, "set_key", set_key, 1); +- rb_define_method(cCamellia, "encrypt", encrypt, 1); +- rb_define_method(cCamellia, "decrypt", decrypt, 1); ++ rb_define_method(cCamellia, "encrypt", camellia_encrypt, 1); ++ rb_define_method(cCamellia, "decrypt", camellia_decrypt, 1); + rb_define_method(cCamellia, "cfb_salt", cfb_salt, 1); + rb_define_method(cCamellia, "cfb_encrypt", cfb_encrypt, 1); + rb_define_method(cCamellia, "cfb_decrypt", cfb_decrypt, 1); Added: head/security/ruby-camellia/files/patch-setup.rb ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/ruby-camellia/files/patch-setup.rb Fri May 8 09:21:47 2015 (r385743) @@ -0,0 +1,11 @@ +--- setup.rb.orig 2009-01-20 10:46:11.000000000 +0900 ++++ setup.rb +@@ -785,7 +785,7 @@ + else + require 'rbconfig' + end +- ::Config::CONFIG ++ ::RbConfig::CONFIG + end + + def initialize(ardir_root, config) Modified: head/security/ruby-camellia/pkg-descr ============================================================================== --- head/security/ruby-camellia/pkg-descr Fri May 8 09:17:53 2015 (r385742) +++ head/security/ruby-camellia/pkg-descr Fri May 8 09:21:47 2015 (r385743) @@ -2,4 +2,4 @@ This is a Camellia package for Ruby. Cam Supported key length : 128bit/192bit/256bit Supported modes of operation : ECB/CFB/CBC -WWW: http://info.isl.ntt.co.jp/crypt/eng/camellia/index.html +WWW: http://info.isl.ntt.co.jp/crypt/eng/camellia/index.html
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505080921.t489LlXw042308>