summaryrefslogtreecommitdiffstats
path: root/databases/ruby-cdb
diff options
context:
space:
mode:
authorseanc <seanc@FreeBSD.org>2006-02-21 07:29:43 +0000
committerseanc <seanc@FreeBSD.org>2006-02-21 07:29:43 +0000
commitccfd9dfe6f118bb131627c04d0b00597c82943ee (patch)
tree9f4af1cd05eabe60b40c25618b0e849ec3251aad /databases/ruby-cdb
parentea7c61053219dcc210c83b1e9ad230a4954af922 (diff)
downloadFreeBSD-ports-ccfd9dfe6f118bb131627c04d0b00597c82943ee.zip
FreeBSD-ports-ccfd9dfe6f118bb131627c04d0b00597c82943ee.tar.gz
Update ruby-cdb to 0.5a and kill off patch now incorporated in upstream
repo. Also fix on amd64 by compiling subport, cdb, with -fPIC. Given this is required for other amd64 ports that could potentially link against cdb, fix this in databases/cdb instead of just ruby-cdb.
Diffstat (limited to 'databases/ruby-cdb')
-rw-r--r--databases/ruby-cdb/Makefile8
-rw-r--r--databases/ruby-cdb/distinfo6
-rw-r--r--databases/ruby-cdb/files/patch-cdb.c48
3 files changed, 4 insertions, 58 deletions
diff --git a/databases/ruby-cdb/Makefile b/databases/ruby-cdb/Makefile
index 93064ed..4457aec 100644
--- a/databases/ruby-cdb/Makefile
+++ b/databases/ruby-cdb/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= cdb
-PORTVERSION= 0.4
-PORTREVISION= 1
+PORTVERSION= 0.5a
CATEGORIES= databases ruby
MASTER_SITES= http://www.fan.gr.jp/~kaz/ruby/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
@@ -24,15 +23,10 @@ USE_RUBY_EXTCONF= yes
CDB_PORTDIR= ${PORTSDIR}/databases/cdb
-WRKSRC= ${WRKDIR}/ruby-${PORTNAME}
INSTALL_TARGET= site-install
.include <bsd.port.pre.mk>
-.if ${ARCH} == "amd64"
-BROKEN= "Does not build on amd64 (needs to link against shared libraries)"
-.endif
-
post-extract:
${RM} -f ${WRKSRC}/cdb
${LN} -s `cd ${CDB_PORTDIR}; ${MAKE} -V WRKSRC` ${WRKSRC}/cdb
diff --git a/databases/ruby-cdb/distinfo b/databases/ruby-cdb/distinfo
index b8d7ef5..ae1a9bd 100644
--- a/databases/ruby-cdb/distinfo
+++ b/databases/ruby-cdb/distinfo
@@ -1,3 +1,3 @@
-MD5 (ruby/ruby-cdb-0.4.tar.gz) = 6b06fe7103e5a155d6a0a47f2596b7de
-SHA256 (ruby/ruby-cdb-0.4.tar.gz) = 2c95476267663ee307457dd682d7b3b1474847004ac7bacea087efa4138b84b2
-SIZE (ruby/ruby-cdb-0.4.tar.gz) = 58737
+MD5 (ruby/ruby-cdb-0.5a.tar.gz) = 3e0cb1d48008e852ad740a15358653d4
+SHA256 (ruby/ruby-cdb-0.5a.tar.gz) = 8b6b84d596eab9f994d2647b7a84c6cc4dee3f38b59c4d0064448252caf78316
+SIZE (ruby/ruby-cdb-0.5a.tar.gz) = 60029
diff --git a/databases/ruby-cdb/files/patch-cdb.c b/databases/ruby-cdb/files/patch-cdb.c
deleted file mode 100644
index 90d3d36..0000000
--- a/databases/ruby-cdb/files/patch-cdb.c
+++ /dev/null
@@ -1,48 +0,0 @@
---- cdb.c.orig Sat Nov 16 01:01:11 2002
-+++ cdb.c Sat Nov 16 01:20:25 2002
-@@ -140,11 +140,11 @@
- char *k;
- struct cdb *cdb;
- uint32 pos;
-- unsigned int len;
-+ long len;
-
- Get_CDB(obj, cdb);
- Check_FD(cdb);
-- k = str2cstr(key, &len);
-+ k = rb_str2cstr(key, &len);
- switch (cdb_find(cdb, k, len)) {
- case 1:
- return _cdb_read(cdb, cdb_datapos(cdb), cdb_datalen(cdb));
-@@ -178,13 +178,13 @@
- char *k;
- VALUE key;
- struct cdb *cdb;
-- unsigned int len;
-+ long len;
-
- Get_CDB(obj, cdb);
- Check_FD(cdb);
-
- if (rb_scan_args(argc, argv, "01", &key) == 1) {
-- k = str2cstr(key, &len);
-+ k = rb_str2cstr(key, &len);
- cdb_findstart(cdb);
-
- while ((ret = cdb_findnext(cdb, k, len)) == 1)
-@@ -330,12 +330,12 @@
- {
- struct cdb_make *cdb;
- char *k, *d;
-- unsigned int klen, dlen;
-+ long klen, dlen;
-
- Get_CDBMake(obj, cdb);
- Check_FD(cdb);
-- k = str2cstr(key, &klen);
-- d = str2cstr(data, &dlen);
-+ k = rb_str2cstr(key, &klen);
-+ d = rb_str2cstr(data, &dlen);
- if (cdb_make_add(cdb, k, klen, d, dlen) == -1) rb_sys_fail(0);
-
- return obj;
OpenPOWER on IntegriCloud