svn commit: r387663 - in head/databases/rubygem-memcache: . files
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Wed May 27 17:54:34 UTC 2015
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 at 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 <bsd.port.pre.mk>
-
-.if ${RUBY_VER} >= 2.1
-BROKEN= Does not build with Ruby 2.1
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
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);
More information about the svn-ports-all
mailing list