Index: head/security/ruby-camellia/Makefile =================================================================== --- head/security/ruby-camellia/Makefile (revision 385742) +++ head/security/ruby-camellia/Makefile (revision 385743) @@ -1,41 +1,38 @@ # Created by: Yoshisato YANAGISAWA # $FreeBSD$ PORTNAME= camellia PORTVERSION= 1.2 CATEGORIES= security ruby MASTER_SITES= http://info.isl.ntt.co.jp/crypt/camellia/dl/ PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} DISTNAME= ${PORTNAME}-rb-${PORTVERSION} 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 INSTALL_TARGET= site-install DOCS= README.txt History.txt License.txt EXAMPLES= ext/camellia-example.rb OPTIONS_DEFINE= DOCS post-install: ${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR} .for f in ${EXAMPLES} ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/ .endfor ${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR} .for f in ${DOCS} ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODDOCDIR}/ .endfor -.include - -.if ${RUBY_VER} >= 2.1 -BROKEN= Does not build -.endif - -.include +.include Index: head/security/ruby-camellia/files/patch-ext_camellia-rb.c =================================================================== --- head/security/ruby-camellia/files/patch-ext_camellia-rb.c (nonexistent) +++ head/security/ruby-camellia/files/patch-ext_camellia-rb.c (revision 385743) @@ -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); Property changes on: head/security/ruby-camellia/files/patch-ext_camellia-rb.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/ruby-camellia/files/patch-setup.rb =================================================================== --- head/security/ruby-camellia/files/patch-setup.rb (nonexistent) +++ head/security/ruby-camellia/files/patch-setup.rb (revision 385743) @@ -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) Property changes on: head/security/ruby-camellia/files/patch-setup.rb ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/ruby-camellia/pkg-descr =================================================================== --- head/security/ruby-camellia/pkg-descr (revision 385742) +++ head/security/ruby-camellia/pkg-descr (revision 385743) @@ -1,5 +1,5 @@ This is a Camellia package for Ruby. Camellia engine is implemented in "C". 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