[DRE-commits] r6090 - in trunk/multibitnums: . debian debian/patches debian/source

Youhei SASAKI uwabami-guest at alioth.debian.org
Fri Feb 25 07:02:01 UTC 2011


Author: uwabami-guest
Date: 2011-02-25 07:02:00 +0000 (Fri, 25 Feb 2011)
New Revision: 6090

Added:
   trunk/multibitnums/debian/
   trunk/multibitnums/debian/README
   trunk/multibitnums/debian/changelog
   trunk/multibitnums/debian/changelog.old
   trunk/multibitnums/debian/compat
   trunk/multibitnums/debian/control
   trunk/multibitnums/debian/copyright
   trunk/multibitnums/debian/patches/
   trunk/multibitnums/debian/patches/SupportRuby1.9.1
   trunk/multibitnums/debian/patches/series
   trunk/multibitnums/debian/rules
   trunk/multibitnums/debian/source/
   trunk/multibitnums/debian/source/format
   trunk/multibitnums/debian/watch
Log:
[svn-inject] Applying Debian modifications (0.1.2-1) to trunk


Property changes on: trunk/multibitnums/debian
___________________________________________________________________
Added: mergeWithUpstream
   + 1

Added: trunk/multibitnums/debian/README
===================================================================
--- trunk/multibitnums/debian/README	                        (rev 0)
+++ trunk/multibitnums/debian/README	2011-02-25 07:02:00 UTC (rev 6090)
@@ -0,0 +1,62 @@
+Class MultiBitNums
+
+Class of multiple multi-bit data packed in a C string. The number of bits is
+fixed to an arbitrary value. For example, it can accommodate 11-bit integers.
+
+Function overview
+
+Integer encoding/decoding (so far only decoding has been implemented):
+
+  * Each segment of data is assumed to be multi-bit (fixed-length) unsigned
+    integer in network byte order (big endian).
+  * Note: integers of the system does not have to be big-endian (Only the
+    binary data is interpreted as unsigned big-endian).
+
+Class Methods
+
+MultiBitNums.new( str, nbit [, nint] )
+
+    Creates a new object from a binary data (string) containing multi-bit
+    segments.
+
+    ARGUMENTS
+
+      + str (String): binary data containing multi-bit data
+      + nbit (Integer): length in bits of each segments contained in str
+      + nint (Integer, can be omitted): number of nbit-bit data in str. If
+        omitted, derived automatically from the length of str.
+
+    RETURN VALUE
+
+      + a MultiBitNums object
+
+    ERRORS
+
+      + exception is raised if nint is too large for the length of str.
+
+Instance Methods
+
+to_int32str
+
+    Converts into a string containing binary data of 32-bit integers of the
+    system. Useful with NArray.
+
+    ARGUMENTS
+
+    (none)
+
+    RETURN VALUE
+
+      + a String (Its binary expression depends on the integer expression of
+        the system).
+
+    ERRORS
+
+      + exception is raised if nbit (see MultiBitNums.new) is greater than 32.
+
+    EXAMPLE
+
+    mb = MultiBitNums.new(str, nbits)
+    require "narray"           # download it from RAA at www.ruby-lang.org
+    ary = NArray.to_na( mb, "int" )  # the data is read into a NArray ary
+

Added: trunk/multibitnums/debian/changelog
===================================================================
--- trunk/multibitnums/debian/changelog	                        (rev 0)
+++ trunk/multibitnums/debian/changelog	2011-02-25 07:02:00 UTC (rev 6090)
@@ -0,0 +1,6 @@
+multibitnums (0.1.2-1) unstable; urgency=low
+
+  * Initial release (Closes: #538329)
+
+ -- Youhei SASAKI <uwabami at gfd-dennou.org>  Tue, 19 Jun 2011 18:31:08 +0900
+

Added: trunk/multibitnums/debian/changelog.old
===================================================================
--- trunk/multibitnums/debian/changelog.old	                        (rev 0)
+++ trunk/multibitnums/debian/changelog.old	2011-02-25 07:02:00 UTC (rev 6090)
@@ -0,0 +1,14 @@
+multibitnums (0.1.2-2) unstable; urgency=low
+
+  * Section change interpriter to ruby
+  * Soruce name changed (merge upstream)
+
+ -- Youhei SASAKI <uwabami at gfd-dennou.org>  Sun, 14 Jun 2009 06:19:44 +0900
+
+libmultibitnums-ruby (0.1.2-1) unstable; urgency=low
+
+  * New upsteram: re-designed for Etch
+  * using cdbs and ruby-pkg-tools
+
+ -- Youhei SASAKI <uwabami at gfd-dennou.org>  Thu, 14 Jun 2007 20:31:08 +0900
+

Added: trunk/multibitnums/debian/compat
===================================================================
--- trunk/multibitnums/debian/compat	                        (rev 0)
+++ trunk/multibitnums/debian/compat	2011-02-25 07:02:00 UTC (rev 6090)
@@ -0,0 +1 @@
+5

Added: trunk/multibitnums/debian/control
===================================================================
--- trunk/multibitnums/debian/control	                        (rev 0)
+++ trunk/multibitnums/debian/control	2011-02-25 07:02:00 UTC (rev 6090)
@@ -0,0 +1,74 @@
+Source: multibitnums
+Section: ruby
+Priority: optional
+Maintainer: Youhei SASAKI <uwabami at gfd-dennou.org>
+Uploaders: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
+DM-Upload-Allowed: yes
+Build-Depends: cdbs, debhelper (>= 7), quilt,
+  ruby-pkg-tools, graphviz,
+  ruby1.8, ruby1.8-dev, ruby1.9.1, ruby1.9.1-dev
+Standards-Version: 3.9.1
+Homepage: http://www.gfd-dennou.org/library/ruby/
+
+Package: libmultibitnums-ruby
+Architecture: any
+Depends: libmultibitnums-ruby1.8, ${misc:Depends}
+Description: extension library for integers with arbitrary bit lengths
+ Multibitnums is Ruby class library, handling multiple multi-bit data
+ packed in a C string. The number of bits is fixed to an arbitrary
+ value. For example, it can accommodate 11-bit integers.
+ .
+ This is a dependency package which depends on Debian's default Ruby
+ version(currently 1.8.x).
+
+Package: libmultibitnums-ruby1.8
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, libnarray-ruby1.8
+Description: extension library for integers with arbitrary bit lengths
+ Multibitnums is Ruby class library, handling multiple multi-bit data
+ packed in a C string. The number of bits is fixed to an arbitrary
+ value. For example, it can accommodate 11-bit integers.
+ .
+ This package is built for Ruby 1.8.x
+
+Package: libmultibitnums-ruby1.8-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: libmultibitnums-ruby1.8 (=${binary:Version}), ${misc:Depends}
+Description: extension library for integers with arbitrary bit lengths
+ Multibitnums is Ruby class library, handling multiple multi-bit data
+ packed in a C string. The number of bits is fixed to an arbitrary
+ value. For example, it can accommodate 11-bit integers.
+ .
+ This package is built for Ruby 1.8.x
+ .
+ This package is provided primarily to provide a backtrace with names
+ in a debugger, this makes it somewhat easier to interpret core
+ dumps.  Most people will not need this package.
+
+Package: libmultibitnums-ruby1.9.1
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, libnarray-ruby1.9.1
+Description: extension library for integers with arbitrary bit lengths
+ Multibitnums is Ruby class library, handling multiple multi-bit data
+ packed in a C string. The number of bits is fixed to an arbitrary
+ value. For example, it can accommodate 11-bit integers.
+ .
+ This package is built for Ruby 1.9.1
+
+Package: libmultibitnums-ruby1.9.1-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: libmultibitnums-ruby1.8 (=${binary:Version}), ${misc:Depends}
+Description: extension library for integers with arbitrary bit lengths
+ Multibitnums is Ruby class library, handling multiple multi-bit data
+ packed in a C string. The number of bits is fixed to an arbitrary
+ value. For example, it can accommodate 11-bit integers.
+ .
+ This package is built for Ruby 1.9.1
+ .
+ This package is provided primarily to provide a backtrace with names
+ in a debugger, this makes it somewhat easier to interpret core
+ dumps.  Most people will not need this package.

Added: trunk/multibitnums/debian/copyright
===================================================================
--- trunk/multibitnums/debian/copyright	                        (rev 0)
+++ trunk/multibitnums/debian/copyright	2011-02-25 07:02:00 UTC (rev 6090)
@@ -0,0 +1,85 @@
+This package was debianized by Youhei SASAKI <uwabami at gfd-dennou.org> on
+Thu, 14 Jun 2009 20:31:08 +0900.
+
+It was downloaded from 
+   http://www.gfd-dennou.org/library/ruby/products/multibitnums/
+
+Upstream Author: T. Horinouchi <horinout at gfd-dennou.org>
+
+Copyright(c) --2009 T. Horinouchi <horinout at gfd-dennou.org>,
+           Dennou Ruby Project,
+           http://www.gfd-dennou.org/library/ruby/
+
+License: Ruby's.
+
+Ruby's License:
+
+Ruby is copyrighted free software by Yukihiro Matsumoto <matz at netlab.jp>.
+You can redistribute it and/or modify it under either the terms of the GPL
+(see the file GPL), or the conditions below:
+
+  1. You may make and give away verbatim copies of the source form of the
+     software without restriction, provided that you duplicate all of the
+     original copyright notices and associated disclaimers.
+
+  2. You may modify your copy of the software in any way, provided that
+     you do at least ONE of the following:
+
+       a) place your modifications in the Public Domain or otherwise
+          make them Freely Available, such as by posting said
+          modifications to Usenet or an equivalent medium, or by allowing
+          the author to include your modifications in the software.
+
+       b) use the modified software only within your corporation or
+          organization.
+
+       c) give non-standard binaries non-standard names, with
+          instructions on where to get the original software distribution.
+
+       d) make other distribution arrangements with the author.
+
+  3. You may distribute the software in object code or binary form,
+     provided that you do at least ONE of the following:
+
+       a) distribute the binaries and library files of the software,
+          together with instructions (in the manual page or equivalent)
+          on where to get the original distribution.
+
+       b) accompany the distribution with the machine-readable source of
+          the software.
+
+       c) give non-standard binaries non-standard names, with
+          instructions on where to get the original software distribution.
+
+       d) make other distribution arrangements with the author.
+
+  4. You may modify and include the part of the software into any other
+     software (possibly commercial).  But some files in the distribution
+     are not written by the author, so that they are not under these terms.
+
+     For the list of those files and their copying conditions, see the
+     file LEGAL.
+
+  5. The scripts and library files supplied as input to or produced as 
+     output from the software do not automatically fall under the
+     copyright of the software, but belong to whomever generated them, 
+     and may be sold commercially, and may be aggregated with this
+     software.
+
+  6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
+     IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+     WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+     PURPOSE.
+
+GNU General Public License:
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL-3'.
+
+The Debian packaging is:
+
+    Copyright (C) 2009 Youhei SASAKI <uwabami at gfd-dennou.org>
+
+and is licensed under the GPL version 3, 
+see `/usr/share/common-licenses/GPL-3'.
+

Added: trunk/multibitnums/debian/patches/SupportRuby1.9.1
===================================================================
--- trunk/multibitnums/debian/patches/SupportRuby1.9.1	                        (rev 0)
+++ trunk/multibitnums/debian/patches/SupportRuby1.9.1	2011-02-25 07:02:00 UTC (rev 6090)
@@ -0,0 +1,39 @@
+Index: multibitnums/multibitnums.c
+===================================================================
+--- multibitnums.orig/multibitnums.c	2010-06-18 00:23:04.000000000 +0900
++++ multibitnums/multibitnums.c	2010-06-18 00:23:31.000000000 +0900
+@@ -59,7 +59,7 @@
+  */
+ 
+ /* ruby.h for rb_raise */
+-#include <ruby.h>
++#include "ruby.h"
+ 
+ /* sys/typed.h : should be configured whether the system has this or not */
+ #include <sys/types.h>
+@@ -68,6 +68,13 @@
+ typedef long int32_t;
+ #endif
+ 
++#ifndef RSTRING_PTR
++#define RSTRNG_PTR(s) (RSTRING(s)->ptr)
++#endif
++#ifndef RSTRING_LEN
++#define RSTRING_LEN(a) (RSTRING(a)->len)
++#endif
++
+ static VALUE mNumRu = 0;
+ static VALUE cMultiBitNums;
+ 
+@@ -109,9 +116,9 @@
+ 
+     mbs = ALLOC(struct MultiBitNums);
+     mbs->nbit = NUM2INT(nbit);
+-    mbs->len_ptr = RSTRING(str)->len;
++    mbs->len_ptr = RSTRING_LEN(str);
+     mbs->ptr = ALLOC_N(char, mbs->len_ptr);
+-    memcpy( mbs->ptr, RSTRING(str)->ptr, mbs->len_ptr);
++    memcpy( mbs->ptr, RSTRING_PTR(str), mbs->len_ptr);
+ 
+     nintmax = ((mbs->len_ptr*8.0)/mbs->nbit + 0.1);
+     if ( argc != 3 ){

Added: trunk/multibitnums/debian/patches/series
===================================================================
--- trunk/multibitnums/debian/patches/series	                        (rev 0)
+++ trunk/multibitnums/debian/patches/series	2011-02-25 07:02:00 UTC (rev 6090)
@@ -0,0 +1 @@
+SupportRuby1.9.1

Added: trunk/multibitnums/debian/rules
===================================================================
--- trunk/multibitnums/debian/rules	                        (rev 0)
+++ trunk/multibitnums/debian/rules	2011-02-25 07:02:00 UTC (rev 6090)
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+
+PACKAGE_RUBY_VERSIONS:= 1.8 1.9.1
+LIB_PACKAGE_FILTER := %-ruby $(patsubst %,\%-ruby%,$(PACKAGE_RUBY_VERSIONS))
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/ruby-pkg-tools/1/class/ruby-extconf-rb.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+
+DEB_INSTALL_DOCS_ALL := debian/README


Property changes on: trunk/multibitnums/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/multibitnums/debian/source/format
===================================================================
--- trunk/multibitnums/debian/source/format	                        (rev 0)
+++ trunk/multibitnums/debian/source/format	2011-02-25 07:02:00 UTC (rev 6090)
@@ -0,0 +1 @@
+3.0 (quilt)

Added: trunk/multibitnums/debian/watch
===================================================================
--- trunk/multibitnums/debian/watch	                        (rev 0)
+++ trunk/multibitnums/debian/watch	2011-02-25 07:02:00 UTC (rev 6090)
@@ -0,0 +1,2 @@
+version=3
+http://ruby.gfd-dennou.org/products/multibitnums/ multibitnums-(.*)\.tar\.gz




More information about the Pkg-ruby-extras-commits mailing list