--- libcairo-ruby-1.5.0.orig/debian/changelog +++ libcairo-ruby-1.5.0/debian/changelog @@ -0,0 +1,65 @@ +libcairo-ruby (1.5.0-1) unstable; urgency=low + + * New upstream release. + * Bumped libcairo2-dev requirement to >= 1.2.0. + * Enabled CDBS simple patch sys in debian/rules. + * Added patch 001-extconf-ruby1.9.patch to fix the API incompatbility + with ruby1.9. + * Added patch 002-missing-decl-and-string-len-struct.patch to add a + missing variable declaration and fix struct member errors + (courtesy of Michael Ablassmeier). + + -- Paul van Tilburg Wed, 13 Jun 2007 14:26:29 +0100 + +libcairo-ruby (1.4.1-1) unstable; urgency=low + + * New upstream release: + - Modified debian/rules to switch to extconf installation + * Adapted debian/control, debian/rules, and removed debian/control.in + to drop the Uploaders rule. + * Changed priority to optional, no idea why it was extras. + * Added debian/libcairo-ruby.examples to install the examples using this + file, not directly from debian/rules. + * New maintainer: me! I'm taking over from Thierry Reding. + + -- Paul van Tilburg Wed, 18 Apr 2007 21:56:48 +0200 + +libcairo-ruby (1.2.0-1) unstable; urgency=low + + * New upstream release. + * Fixed the URL in the description (courtesy of Tomas Pospisek, + closes: #361857). + * Bumped standards version to 3.7.2; no changes required. + + -- Paul van Tilburg Mon, 3 Jul 2006 12:10:17 +0200 + +libcairo-ruby (1.0.0-3) unstable; urgency=low + + [ Thierry Reding ] + * libcairo-ruby1.8 now replaces libcairo-ruby (<= 1.0.0-1) to make it + installable again. Thanks to David Weinehall and Adam Majer for pointing + this out. (Closes: #361192) + + -- Paul van Tilburg Mon, 10 Apr 2006 21:07:27 +0200 + +libcairo-ruby (1.0.0-2) unstable; urgency=low + + [ Thierry Reding ] + * Now uses CDBS for packaging. + * Provides packages linked against Ruby 1.8 and Ruby 1.9. + * Set myself as maintainer, the Debian Ruby/Extras Team as uploaders. + * Added versioned build-dependency on ruby-pkg-tools (>= 0.8) in order for + the @RUBY_EXTRAS_TEAM@ marker to be recognized. + + -- Thierry Reding Wed, 22 Mar 2006 13:39:17 +0100 + +libcairo-ruby (1.0.0-1) unstable; urgency=low + + * Initial release. (Closes: #342466) + * Uses "The Uploaders Rule" to automatically fill in the Uploaders: field in + the `debian/control' file so that all pkg-ruby-extras team members will be + listed. + * Added a note about the `setup.rb' script's license (LGPL) to the + `debian/copyright' file. + + -- Thierry Reding Wed, 4 Jan 2006 23:13:45 +0100 --- libcairo-ruby-1.5.0.orig/debian/control +++ libcairo-ruby-1.5.0/debian/control @@ -0,0 +1,48 @@ +Source: libcairo-ruby +Section: libs +Priority: optional +Maintainer: Paul van Tilburg +Uploaders: Debian Ruby Extras Maintainers +Build-Depends: debhelper (>> 5), ruby, ruby1.8, ruby1.8-dev, ruby1.9, ruby1.9-dev, cdbs, ruby-pkg-tools (>= 0.8), libcairo2-dev (>= 1.2.0) +Standards-Version: 3.7.2 + +Package: libcairo-ruby +Architecture: all +Depends: libcairo-ruby1.8 +Description: Cairo bindings for the Ruby language + Cairo is a multi-platform library providing anti-aliased vector-based + rendering for multiple target backends. This package contains libraries for + using Cairo with the Ruby programming language. It is most likely useful in + conjunction with Ruby bindings for other libraries such as GTK+. + . + Homepage: http://cairographics.org/rcairo + . + This is a dependency package which depends on Debian's default version of Ruby + (currently 1.8). + +Package: libcairo-ruby1.8 +Architecture: any +Depends: ruby1.8, ${shlibs:Depends}, ${misc:Depends} +Replaces: libcairo-ruby (<= 1.0.0-1) +Description: Cairo bindings for the Ruby language + Cairo is a multi-platform library providing anti-aliased vector-based + rendering for multiple target backends. This package contains libraries for + using Cairo with the Ruby programming language. It is most likely useful in + conjunction with Ruby bindings for other libraries such as GTK+. + . + Homepage: http://cairographics.org/rcairo + . + This package is built for Ruby 1.8. + +Package: libcairo-ruby1.9 +Architecture: any +Depends: ruby1.9, ${shlibs:Depends}, ${misc:Depends} +Description: Cairo bindings for the Ruby language + Cairo is a multi-platform library providing anti-aliased vector-based + rendering for multiple target backends. This package contains libraries for + using Cairo with the Ruby programming language. It is most likely useful in + conjunction with Ruby bindings for other libraries such as GTK+. + . + Homepage: http://cairographics.org/rcairo + . + This package is built for Ruby 1.9. --- libcairo-ruby-1.5.0.orig/debian/compat +++ libcairo-ruby-1.5.0/debian/compat @@ -0,0 +1 @@ +5 --- libcairo-ruby-1.5.0.orig/debian/watch +++ libcairo-ruby-1.5.0/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://cairographics.org/releases/rcairo-(.*)\.tar\.gz --- libcairo-ruby-1.5.0.orig/debian/libcairo-ruby.examples +++ libcairo-ruby-1.5.0/debian/libcairo-ruby.examples @@ -0,0 +1 @@ +samples/* --- libcairo-ruby-1.5.0.orig/debian/patches/001-extconf-ruby1.9.patch +++ libcairo-ruby-1.5.0/debian/patches/001-extconf-ruby1.9.patch @@ -0,0 +1,11 @@ +--- extconf.rb.orig 2007-06-13 14:33:38.000000000 +0100 ++++ extconf.rb 2007-06-13 14:26:07.000000000 +0100 +@@ -80,7 +80,7 @@ + File.open("Makefile", "w") do |f| + objs = [] + co = nil +- makefile.each do |line| ++ makefile.each_line do |line| + case line + when /^TARGET\s*=\s*/ + f.print("TARGET = #{ext_dir_name}/#{$POSTMATCH}") --- libcairo-ruby-1.5.0.orig/debian/patches/002-missing-decl-and-string-len-struct.patch +++ libcairo-ruby-1.5.0/debian/patches/002-missing-decl-and-string-len-struct.patch @@ -0,0 +1,35 @@ +--- src/rb_cairo_surface.c.orig 2007-06-13 14:45:28.000000000 +0100 ++++ src/rb_cairo_surface.c 2007-06-13 14:46:59.000000000 +0100 +@@ -30,6 +30,7 @@ + VALUE rb_cCairo_PSSurface; + VALUE rb_cCairo_SVGSurface; + VALUE rb_cCairo_WIN32Surface; ++VALUE ruby_errinfo; + + static ID cr_id_target; + static ID cr_id_read; +@@ -133,13 +134,13 @@ + output = closure->target; + data = rb_str_new ((const char *)closure->data, closure->length); + +- length = RSTRING (data)->len; ++ length = RSTRING_LEN(data); + while (length != 0) + { + VALUE rb_written_bytes = rb_funcall (output, cr_id_write, 1, data); + written_bytes = NUM2LONG (rb_written_bytes); + data = rb_str_substr (data, written_bytes, +- RSTRING (data)->len - written_bytes); ++ RSTRING_LEN(data) - written_bytes); + length -= written_bytes; + } + +@@ -180,7 +181,7 @@ + + result = rb_str_new2 (""); + +- for (rest = length; rest != 0; rest = length - RSTRING (result)->len) ++ for (rest = length; rest != 0; rest = length - RSTRING_LEN(result)) + { + rb_str_concat (result, rb_funcall (input, cr_id_read, 1, INT2NUM (rest))); + } --- libcairo-ruby-1.5.0.orig/debian/copyright +++ libcairo-ruby-1.5.0/debian/copyright @@ -0,0 +1,80 @@ + +This package originally Debianised by Thierry Reding , +on November 20th, 2005. + +Originally obtained from . + +Copyright: + + Rcairo is copyrighted free software by Evan Marin, Øyvind Kolås, + MenTaLguY and Kouhei Sutou, distributed under the same conditions as + ruby; which follow: + +----------------------------------------------------------------------------- + +Ruby is copyrighted free software by Yukihiro Matsumoto . +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. + +----------------------------------------------------------------------------- + +On Debian systems, the full text of the GNU General Public License can be +found at /usr/share/common-licenses/GPL. + +The setup.rb file included in the package's source is released under the GNU +LGPL. On Debian systems, the complete text of the GNU Lesser General Public +can be found in `/usr/share/common-licenses/LGPL'. + --- libcairo-ruby-1.5.0.orig/debian/rules +++ libcairo-ruby-1.5.0/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f +# +# CDBS file to build the RCairo packages. + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk +include /usr/share/ruby-pkg-tools/1/class/ruby-extconf-rb.mk