From owner-svn-ports-head@FreeBSD.ORG Wed May 27 17:54:34 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7AD72AD4; Wed, 27 May 2015 17:54:34 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 507A3FC0; Wed, 27 May 2015 17:54:34 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t4RHsY6k032487; Wed, 27 May 2015 17:54:34 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t4RHsXUH032482; Wed, 27 May 2015 17:54:33 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201505271754.t4RHsXUH032482@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Wed, 27 May 2015 17:54:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r387663 - in head/databases/rubygem-memcache: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 May 2015 17:54:34 -0000 Author: sunpoet Date: Wed May 27 17:54:33 2015 New Revision: 387663 URL: https://svnweb.freebsd.org/changeset/ports/387663 Log: - Add LICENSE - Fix build with ruby21 and ruby22 - Fix space/tab - Cosmetic change Added: head/databases/rubygem-memcache/files/ head/databases/rubygem-memcache/files/patch-ext-native_server.c (contents, props changed) Modified: head/databases/rubygem-memcache/Makefile Modified: head/databases/rubygem-memcache/Makefile ============================================================================== --- head/databases/rubygem-memcache/Makefile Wed May 27 17:54:28 2015 (r387662) +++ head/databases/rubygem-memcache/Makefile Wed May 27 17:54:33 2015 (r387663) @@ -10,19 +10,14 @@ MASTER_SITES= RG MAINTAINER= ruby@FreeBSD.org COMMENT= Ruby bindings for libmemcached +LICENSE= MIT + LIB_DEPENDS= libmemcached.so:${PORTSDIR}/databases/libmemcached +CONFIGURE_ARGS= --with-opt-dir=${LOCALBASE} +GEM_ENV= EXTERNAL_LIB="yes" USE_RUBY= yes USE_RUBYGEMS= yes RUBYGEM_AUTOPLIST= yes -GEM_ENV +=EXTERNAL_LIB="YES" -CONFIGURE_ARGS= "--with-opt-dir=${LOCALBASE}" - -.include - -.if ${RUBY_VER} >= 2.1 -BROKEN= Does not build with Ruby 2.1 -.endif - -.include +.include Added: head/databases/rubygem-memcache/files/patch-ext-native_server.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/rubygem-memcache/files/patch-ext-native_server.c Wed May 27 17:54:33 2015 (r387663) @@ -0,0 +1,14 @@ +--- ext/native_server.c.orig 2015-05-27 17:48:45 UTC ++++ ext/native_server.c +@@ -153,11 +153,7 @@ static VALUE mc_initialize(VALUE self, V + return self; + } + +-#if defined(RUBY_19) || defined(RUBY_20) + #define RSTRING_SET_LEN(str, newlen) (rb_str_set_len(str, new_len)) +-#else +-#define RSTRING_SET_LEN(str, newlen) (RSTRING(str)->len = new_len) +-#endif + + static VALUE escape_key(VALUE key, bool* escaped) { + char* str = RSTRING_PTR(key);