Update ruby-rcsparse to 0.0.0.47 which is latest revision on GitHub,
60871fde79db91aed56b3974e8ebc829342d18e8. * Now it compatible on newer Ruby. * License is gnu-agpl-v3.
This commit is contained in:
parent
915b7e8c8e
commit
b7ee6728e5
3 changed files with 18 additions and 82 deletions
|
@ -1,21 +1,25 @@
|
|||
# $NetBSD: Makefile,v 1.12 2013/05/26 01:44:44 ryoon Exp $
|
||||
# $NetBSD: Makefile,v 1.13 2015/02/01 16:36:32 taca Exp $
|
||||
|
||||
DISTNAME= fromcvs-rcsparse-d8303aab
|
||||
# Bump simply to 0.0.0.46, I am not sure...
|
||||
PKGNAME= ${RUBY_PKGPREFIX}-rcsparse-0.0.0.46
|
||||
DISTNAME= rcsparse-${VERS}
|
||||
PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME}
|
||||
CATEGORIES= devel ruby
|
||||
MASTER_SITES= -http://gitorious.org/fromcvs/rcsparse/archive-tarball/d8303aab
|
||||
EXTRACT_SUFX= .tar.gz
|
||||
MASTER_SITES= -https://github.com/corecode/rcsparse/archive/${REVISION}.zip
|
||||
EXTRACT_SUFX= .zip
|
||||
|
||||
MAINTAINER= pkgsrc-users@NetBSD.org
|
||||
HOMEPAGE= http://gitorious.org/fromcvs/rcsparse
|
||||
HOMEPAGE= https://github.com/corecode/rcsparse/
|
||||
COMMENT= RCS parsing library for Ruby
|
||||
LICENSE= corecode-license
|
||||
LICENSE= gnu-agpl-v3
|
||||
|
||||
WRKSRC= ${WRKDIR}/fromcvs-rcsparse
|
||||
# This is our own version.
|
||||
VERS= 0.0.0.47
|
||||
REVISION= 60871fde79db91aed56b3974e8ebc829342d18e8
|
||||
|
||||
WRKSRC= ${WRKDIR}/rcsparse-${REVISION}
|
||||
USE_RUBY_EXTCONF= yes
|
||||
|
||||
RUBY_VERSION_SUPPORTED= 18
|
||||
post-extract:
|
||||
cd ${WRKSRC}; find . -type f -exec ${CHMOD} -x {} \;
|
||||
|
||||
.include "../../lang/ruby/modules.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
$NetBSD: distinfo,v 1.8 2013/05/26 01:44:44 ryoon Exp $
|
||||
$NetBSD: distinfo,v 1.9 2015/02/01 16:36:32 taca Exp $
|
||||
|
||||
SHA1 (fromcvs-rcsparse-d8303aab.tar.gz) = d8078cd41c36684115e0972f40abd0cb9fddf6e6
|
||||
RMD160 (fromcvs-rcsparse-d8303aab.tar.gz) = a7733c036b322ae28be99bf1e12584ec533bb8af
|
||||
Size (fromcvs-rcsparse-d8303aab.tar.gz) = 141703 bytes
|
||||
SHA1 (patch-aa) = 4cb6e84ffa2661e8ede6dec1ef3f7bc55ea53df5
|
||||
SHA1 (rcsparse-0.0.0.47.zip) = 279d06f6c9c00a61cf0a857bb3a7b796e4c9ad59
|
||||
RMD160 (rcsparse-0.0.0.47.zip) = 6fd2694970a49b1f15ca770766cb707067270392
|
||||
Size (rcsparse-0.0.0.47.zip) = 146300 bytes
|
||||
|
|
|
@ -1,67 +0,0 @@
|
|||
$NetBSD: patch-aa,v 1.1 2010/09/10 06:19:50 taca Exp $
|
||||
|
||||
Use modern Ruby API.
|
||||
|
||||
--- rb-rcsparse.c.orig 2009-08-06 22:21:50.000000000 +0000
|
||||
+++ rb-rcsparse.c
|
||||
@@ -170,9 +170,9 @@ rb_rcsfile_initialize(int argc, VALUE *a
|
||||
Data_Get_Struct(self, struct rb_rcsfile, rb_rf);
|
||||
rb_scan_args(argc, argv, "1", &fname);
|
||||
SafeStringValue(fname);
|
||||
- rb_rf->rf = rcsopen(RSTRING(fname)->ptr);
|
||||
+ rb_rf->rf = rcsopen(RSTRING_PTR(fname));
|
||||
if (rb_rf->rf == NULL)
|
||||
- rb_sys_fail(RSTRING(fname)->ptr);
|
||||
+ rb_sys_fail(RSTRING_PTR(fname));
|
||||
rb_rf->symbols = Qnil;
|
||||
return self;
|
||||
}
|
||||
@@ -311,7 +311,7 @@ rb_rcsfile_checkout(int argc, VALUE *arg
|
||||
|
||||
if (rb_scan_args(argc, argv, "01", &rev) == 1) {
|
||||
StringValue(rev);
|
||||
- revstr = RSTRING(rev)->ptr;
|
||||
+ revstr = RSTRING_PTR(rev);
|
||||
}
|
||||
data = rcscheckout(rb_rf->rf, revstr, &len);
|
||||
if (data == NULL)
|
||||
@@ -332,7 +332,7 @@ rb_rcsfile_resolve_sym(int argc, VALUE *
|
||||
|
||||
if (rb_scan_args(argc, argv, "01", &sym) == 1) {
|
||||
StringValue(sym);
|
||||
- symstr = RSTRING(sym)->ptr;
|
||||
+ symstr = RSTRING_PTR(sym);
|
||||
}
|
||||
rev = rcsrevfromsym(rb_rf->rf, symstr);
|
||||
if (rev == NULL)
|
||||
@@ -350,7 +350,7 @@ rb_rcsfile_getlog(VALUE self, VALUE rev)
|
||||
char *data;
|
||||
|
||||
StringValue(rev);
|
||||
- data = rcsgetlog(rb_rf->rf, RSTRING(rev)->ptr);
|
||||
+ data = rcsgetlog(rb_rf->rf, RSTRING_PTR(rev));
|
||||
if (data == NULL)
|
||||
return Qnil;
|
||||
ret = rb_tainted_str_new2(data);
|
||||
@@ -378,8 +378,8 @@ rb_revtree_aref(VALUE self, VALUE index)
|
||||
|
||||
StringValue(index);
|
||||
s.rev = &st;
|
||||
- st.str = RSTRING(index)->ptr;
|
||||
- st.len = RSTRING(index)->len;
|
||||
+ st.str = RSTRING_PTR(index);
|
||||
+ st.len = RSTRING_LEN(index);
|
||||
f = RB_FIND(rcsrevtree, rb_rcsfile_revs(self), &s);
|
||||
if (f == NULL)
|
||||
return Qnil;
|
||||
@@ -466,8 +466,8 @@ rb_revtree_key_p(VALUE self, VALUE index
|
||||
|
||||
StringValue(index);
|
||||
s.rev = &st;
|
||||
- st.str = RSTRING(index)->ptr;
|
||||
- st.len = RSTRING(index)->len;
|
||||
+ st.str = RSTRING_PTR(index);
|
||||
+ st.len = RSTRING_LEN(index);
|
||||
f = RB_FIND(rcsrevtree, rb_rcsfile_revs(self), &s);
|
||||
if (f == NULL)
|
||||
return Qfalse;
|
Loading…
Reference in a new issue