mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
- Add LICENSE
- Fix build with ruby21 and ruby22 - Fix space/tab - Cosmetic change
This commit is contained in:
parent
0050849657
commit
52eeeed150
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=387663
@ -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 <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>
|
||||
|
14
databases/rubygem-memcache/files/patch-ext-native_server.c
Normal file
14
databases/rubygem-memcache/files/patch-ext-native_server.c
Normal file
@ -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);
|
Loading…
Reference in New Issue
Block a user