[DRE-commits] r3002 - in packages: . libimage-science-ruby libimage-science-ruby/trunk libimage-science-ruby/trunk/debian libimage-science-ruby/trunk/debian/patches

gwolf at alioth.debian.org gwolf at alioth.debian.org
Mon Sep 22 23:35:19 UTC 2008


Author: gwolf
Date: 2008-09-22 23:35:17 +0000 (Mon, 22 Sep 2008)
New Revision: 3002

Added:
   packages/libimage-science-ruby/
   packages/libimage-science-ruby/tags/
   packages/libimage-science-ruby/trunk/
   packages/libimage-science-ruby/trunk/debian/
   packages/libimage-science-ruby/trunk/debian/README.Debian
   packages/libimage-science-ruby/trunk/debian/changelog
   packages/libimage-science-ruby/trunk/debian/compat
   packages/libimage-science-ruby/trunk/debian/control
   packages/libimage-science-ruby/trunk/debian/copyright
   packages/libimage-science-ruby/trunk/debian/patches/
   packages/libimage-science-ruby/trunk/debian/patches/fix_ruby_path
   packages/libimage-science-ruby/trunk/debian/patches/series
   packages/libimage-science-ruby/trunk/debian/rules
   packages/libimage-science-ruby/trunk/debian/watch
Log:
Bah, since when does a "svn mv" equal a "svn rm"? Putting
libimage-science-ruby back in the tree, for $DEITY's sake... :-/


Added: packages/libimage-science-ruby/trunk/debian/README.Debian
===================================================================
--- packages/libimage-science-ruby/trunk/debian/README.Debian	                        (rev 0)
+++ packages/libimage-science-ruby/trunk/debian/README.Debian	2008-09-22 23:35:17 UTC (rev 3002)
@@ -0,0 +1,39 @@
+This package uses libinline-ruby, a Ruby module that allows for easily
+embedding and on-the-fly compiling C code in Ruby modules.
+
+Although it will work right away on most typical situations, there are
+a couple of catches you should keep in mind:
+
+- To minimize startup times, the inlined C code is cached. This means,
+  any user who calls this module in his Ruby code will get a directory
+  called ".ruby_inline" on his home directory. Inside this directory,
+  Inline will store the C code to be compiled and the compiled
+  objects. The directory can be safely purged, as it will be
+  regenerated as needed.
+
+- You can set up the environment variable INLINEDIR to specify a
+  different directory, i.e., to cope with the cases where the current
+  user has no rights to write on his own directory (which is often the
+  case when using this module for Web-facing application servers). You
+  can safely point it to a randomized temporary directory, as in:
+
+  $ su - nobody -c 'export INLINEDIR=$(mktemp -d); \
+         ruby -e "require \"image_science\""; \
+         rm -rf $INLINEDIR'
+
+  Of course, you would replace the call to Ruby to the startup for
+  your application. There will be a slight time penalty upon
+  initialization, as this will compile anew the code each time it is
+  started, but will allow you to work with users unable to work in
+  their home directories.
+
+- It might also be a good idea, specially on slower systems, to set
+  INLINEDIR to a fixed location, i.e. to create user-owned
+  /var/lib/inline/$(whoami) directories. This would avoid the
+  recompilation penalty - You should just remember to purge the
+  directory should you stop using this module.
+
+Of course, for most use cases, the default .ruby_inline directory will
+serve you well.
+
+ -- Gunnar Wolf <gwolf at debian.org>, Mon, 22 Sep 2008 18:16:12 -0500

Added: packages/libimage-science-ruby/trunk/debian/changelog
===================================================================
--- packages/libimage-science-ruby/trunk/debian/changelog	                        (rev 0)
+++ packages/libimage-science-ruby/trunk/debian/changelog	2008-09-22 23:35:17 UTC (rev 3002)
@@ -0,0 +1,5 @@
+libimage-science-ruby (1.1.3-1) unstable; urgency=low
+
+  * Initial upload (Closes: #499196)
+
+ -- Gunnar Wolf <gwolf at debian.org>  Tue, 16 Sep 2008 18:42:16 -0500

Added: packages/libimage-science-ruby/trunk/debian/compat
===================================================================
--- packages/libimage-science-ruby/trunk/debian/compat	                        (rev 0)
+++ packages/libimage-science-ruby/trunk/debian/compat	2008-09-22 23:35:17 UTC (rev 3002)
@@ -0,0 +1 @@
+7

Added: packages/libimage-science-ruby/trunk/debian/control
===================================================================
--- packages/libimage-science-ruby/trunk/debian/control	                        (rev 0)
+++ packages/libimage-science-ruby/trunk/debian/control	2008-09-22 23:35:17 UTC (rev 3002)
@@ -0,0 +1,52 @@
+Source: libimage-science-ruby
+Section: libs
+Priority: optional
+Maintainer: Gunnar Wolf <gwolf at debian.org>
+Uploaders: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
+Build-Depends: ruby-pkg-tools (>= 0.8), cdbs, debhelper (>= 7), quilt, libsetup-ruby1.8, libfreeimage-dev, libinline-ruby
+Build-Depends-Indep: ruby1.8, rdoc
+Standards-Version: 3.8.0
+Homepage: http://seattlerb.rubyforge.org/ImageScience.html
+
+Package: libimage-science-ruby
+Architecture: all
+Depends: libimage-science-ruby1.8
+Description: Clean Ruby library to provide simple transformations on images
+ ImageScience is a clean Ruby library allowing for simple
+ transformations on images, mainly geared towards generating thumbnails
+ - The provided functions aim at scaling and cropping images.
+ .
+ Emphasis is made on keeping the code as lean as possible (at less than
+ 200 LoC), and on correctness to avoid memory leaks and similar
+ problems that often accompany similar libraries.
+ .
+ This is a dummy package depending on the library for the current
+ default version of Ruby.
+
+Package: libimage-science-ruby-doc
+Architecture: all
+Section: doc
+Suggests: libimage-science-ruby
+Description: Clean Ruby library to provide simple transformations on images
+ ImageScience is a clean Ruby library allowing for simple
+ transformations on images, mainly geared towards generating thumbnails
+ - The provided functions aim at scaling and cropping images.
+ .
+ Emphasis is made on keeping the code as lean as possible (at less than
+ 200 LoC), and on correctness to avoid memory leaks and similar
+ problems that often accompany similar libraries.
+ .
+ This is the documentation package, with upstream documentation, as well as
+ generated rdoc.
+
+Package: libimage-science-ruby1.8
+Architecture: all
+Depends: ruby1.8, libinline-ruby1.8, libfreeimage-dev
+Description: Clean Ruby library to provide simple transformations on images
+ ImageScience is a clean Ruby library allowing for simple
+ transformations on images, mainly geared towards generating thumbnails
+ - The provided functions aim at scaling and cropping images.
+ .
+ Emphasis is made on keeping the code as lean as possible (at less than
+ 200 LoC), and on correctness to avoid memory leaks and similar
+ problems that often accompany similar libraries.

Added: packages/libimage-science-ruby/trunk/debian/copyright
===================================================================
--- packages/libimage-science-ruby/trunk/debian/copyright	                        (rev 0)
+++ packages/libimage-science-ruby/trunk/debian/copyright	2008-09-22 23:35:17 UTC (rev 3002)
@@ -0,0 +1,31 @@
+This package was debianized by Gunnar Wolf <gwolf at debian.org> on
+Tue, 16 Sep 2008 18:42:16 -0500
+
+It was downloaded from http://rubyforge.org/frs/?group_id=1513
+
+Upstream Author: Ryan Davis <support at zenspider.com>
+
+LICENSE:
+
+(The MIT License)
+
+Copyright (c) 2006-2007 Ryan Davis, Seattle.rb
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Added: packages/libimage-science-ruby/trunk/debian/patches/fix_ruby_path
===================================================================
--- packages/libimage-science-ruby/trunk/debian/patches/fix_ruby_path	                        (rev 0)
+++ packages/libimage-science-ruby/trunk/debian/patches/fix_ruby_path	2008-09-22 23:35:17 UTC (rev 3002)
@@ -0,0 +1,30 @@
+Index: libimage-science-ruby-1.1.3/bench.rb
+===================================================================
+--- libimage-science-ruby-1.1.3.orig/bench.rb	2008-09-15 20:19:36.000000000 -0500
++++ libimage-science-ruby-1.1.3/bench.rb	2008-09-15 20:19:44.000000000 -0500
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/ruby -w
++#!/usr/bin/ruby -w
+ 
+ require 'benchmark'
+ require 'rubygems'
+Index: libimage-science-ruby-1.1.3/lib/image_science.rb
+===================================================================
+--- libimage-science-ruby-1.1.3.orig/lib/image_science.rb	2008-09-15 20:19:36.000000000 -0500
++++ libimage-science-ruby-1.1.3/lib/image_science.rb	2008-09-15 20:19:41.000000000 -0500
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/ruby -w
++#!/usr/bin/ruby -w
+ 
+ require 'rubygems'
+ require 'inline'
+Index: libimage-science-ruby-1.1.3/quick_thumb
+===================================================================
+--- libimage-science-ruby-1.1.3.orig/quick_thumb	2008-09-15 20:19:36.000000000 -0500
++++ libimage-science-ruby-1.1.3/quick_thumb	2008-09-15 20:19:46.000000000 -0500
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/ruby -w
++#!/usr/bin/ruby -w
+ 
+ abort "#{File.basename $0} max_length files..." unless ARGV.size > 1
+ 

Added: packages/libimage-science-ruby/trunk/debian/patches/series
===================================================================
--- packages/libimage-science-ruby/trunk/debian/patches/series	                        (rev 0)
+++ packages/libimage-science-ruby/trunk/debian/patches/series	2008-09-22 23:35:17 UTC (rev 3002)
@@ -0,0 +1 @@
+fix_ruby_path

Added: packages/libimage-science-ruby/trunk/debian/rules
===================================================================
--- packages/libimage-science-ruby/trunk/debian/rules	                        (rev 0)
+++ packages/libimage-science-ruby/trunk/debian/rules	2008-09-22 23:35:17 UTC (rev 3002)
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+include /usr/share/ruby-pkg-tools/1/class/ruby-setup-rb.mk
+
+install/libimage-science-ruby::
+	# Add the examples, README
+	install -d debian/libimage-science-ruby/usr/share/doc/libimage-science-ruby/examples
+	install bench.rb debian/libimage-science-ruby/usr/share/doc/libimage-science-ruby/examples/
+	install quick_thumb debian/libimage-science-ruby/usr/share/doc/libimage-science-ruby/examples/
+	install README.txt debian/libimage-science-ruby/usr/share/doc/libimage-science-ruby/
+	install History.txt debian/libimage-science-ruby/usr/share/doc/libimage-science-ruby/


Property changes on: packages/libimage-science-ruby/trunk/debian/rules
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/libimage-science-ruby/trunk/debian/watch
===================================================================
--- packages/libimage-science-ruby/trunk/debian/watch	                        (rev 0)
+++ packages/libimage-science-ruby/trunk/debian/watch	2008-09-22 23:35:17 UTC (rev 3002)
@@ -0,0 +1,2 @@
+version=3
+http://rubyforge.org/frs/?group_id=1513 .*/image_science-(.*)\.tgz




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