debian/0000755000000000000000000000000011776336464007207 5ustar debian/ruby-image-science.docs0000644000000000000000000000001311734360272013507 0ustar README.txt debian/changelog0000644000000000000000000000336511776336404011062 0ustar ruby-image-science (1.2.2-1.1) unstable; urgency=low [ Luk Claes ] * Non-maintainer upload. * Add build-depends of libstdc++6-4.6-dev (Closes: #679649). -- Luk Claes Sun, 08 Jul 2012 16:52:25 +0000 ruby-image-science (1.2.2-1) unstable; urgency=low * New upstream release -- Gunnar Wolf Tue, 27 Mar 2012 09:45:58 -0600 ruby-image-science (1.2.1-4) unstable; urgency=low * Use a temporary directory for the Inline files used during the test. Thanks to Christian Hofstaedtler for the insight! (Closes: #652802) * Standards-version 3.9.2→3.9.3 (No changes) * Transitional packages should go to the "extra" section -- Gunnar Wolf Thu, 15 Mar 2012 13:17:14 -0600 ruby-image-science (1.2.1-3) unstable; urgency=low * Ouch! Uploaded -2 some minutes ago... And forgot some dependencies :( -- Gunnar Wolf Wed, 14 Sep 2011 18:15:31 -0500 ruby-image-science (1.2.1-2) unstable; urgency=low * Repackaged using gem2deb * Renamed/joined packages to ruby-image-science following current pkg-ruby-extras team policy -- Gunnar Wolf Wed, 14 Sep 2011 16:49:15 -0500 libimage-science-ruby (1.2.1-1) unstable; urgency=low * New upstream release * Reworked some files explicitly listed in debian/rules so they are handled in a cleaner DebHelper way * Bumped up standards-version to 3.8.3 (no changes needed) * added missing misc:Depends dependencies * Changed section to Ruby as per ftp-masters' request -- Gunnar Wolf Wed, 26 Aug 2009 11:56:29 -0500 libimage-science-ruby (1.1.3-1) unstable; urgency=low * Initial upload (Closes: #499196) -- Gunnar Wolf Tue, 16 Sep 2008 18:42:16 -0500 debian/rules0000755000000000000000000000136211734360272010255 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 # # Uncomment to ignore all test failures (but the tests will run anyway) #export DH_RUBY_IGNORE_TESTS=all # # Uncomment to ignore some test failures (but the tests will run anyway). # Valid values: #export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems export DH_RUBY_IGNORE_TESTS=ruby1.9.1 # # If you need to specify the .gemspec (eg there is more than one) #export DH_RUBY_GEMSPEC=gem.gemspec %: dh $@ --buildsystem=ruby --with ruby override_dh_installechangelogs: dh_installchangelogs History.txt override_dh_install: dh_install # The provided binaries are provided as examples (and listed # in the corresponding file), not as general usage binaries. rm -rf debian/ruby-image-science/usr/bin debian/require-rubygems.overrides0000644000000000000000000000010411734360272014421 0ustar debian/ruby-image-science/usr/lib/ruby/vendor_ruby/image_science.rb debian/source/0000755000000000000000000000000011734360272010473 5ustar debian/source/format0000644000000000000000000000001411734360272011701 0ustar 3.0 (quilt) debian/ruby-test-files.yaml0000644000000000000000000000004211734360272013111 0ustar --- - test/test_image_science.rb debian/compat0000644000000000000000000000000211734360272010371 0ustar 7 debian/watch0000644000000000000000000000015711734360272010227 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/image_science .*/image_science-(.*).tar.gz debian/patches/0000755000000000000000000000000011734360272010622 5ustar debian/patches/series0000644000000000000000000000004111734360272012032 0ustar fix_ruby_path inline_path_in_tmp debian/patches/inline_path_in_tmp0000644000000000000000000000256211734360272014412 0ustar Author: Gunnar Wolf true -end +# instead of using Inline's regular directory in the user's home, use +# a temporary directory +# +# dir = File.expand_path "~/.ruby_inline" +# if test ?d, dir then +# require 'fileutils' +# puts "nuking #{dir}" +# # force removal, Windoze is bitching at me, something to hunt later... +# FileUtils.rm_r dir, :force => true +# end + +require 'tmpdir' +ENV['INLINEDIR'] = Dir.mktmpdir require 'rubygems' require 'minitest/unit' debian/patches/fix_ruby_path0000644000000000000000000000105111734360272013405 0ustar Author: Gunnar Wolf Forwarded: Not-needed (trivial) Last-update: 2011-09-14 Description: Fix the hashbang to use the systemwide Ruby Index: ruby-image-science-1.2.1/lib/image_science.rb =================================================================== --- ruby-image-science-1.2.1.orig/lib/image_science.rb 2011-09-14 16:49:15.000000000 -0500 +++ ruby-image-science-1.2.1/lib/image_science.rb 2011-09-14 17:37:28.000000000 -0500 @@ -1,4 +1,4 @@ -#!/usr/local/bin/ruby -w +#!/usr/bin/ruby -w require 'rubygems' require 'inline' debian/ruby-image-science.examples0000644000000000000000000000004111734360272014376 0ustar bench.rb bin/image_science_thumb debian/README.Debian0000644000000000000000000000345011734360272011236 0ustar 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 , Wed, 14 Sep 2011 17:02:08 -0500 debian/control0000644000000000000000000000501011776336270010601 0ustar Source: ruby-image-science Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Gunnar Wolf DM-Upload-Allowed: yes Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.2.8~), ruby-minitest, libfreeimage-dev, ruby-inline | libinline-ruby, libstdc++6-4.6-dev Standards-Version: 3.9.3 Vcs-Git: git://git.debian.org/pkg-ruby-extras/ruby-image-science.git Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/ruby-image-science.git;a=summary Homepage: http://seattlerb.rubyforge.org/ImageScience.html XS-Ruby-Versions: all Package: ruby-image-science Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-inline | libinline-ruby, libfreeimage-dev # hoe (>= 2.3.3, development) Replaces: libimage-science-ruby (<< 1.2.1-1~), libimage-science-ruby-doc (<< 1.2.1-1~), libimage-science-ruby1.8 (<< 1.2.1-1~) Breaks: libimage-science-ruby (<< 1.2.1-1~), libimage-science-ruby-doc (<< 1.2.1-1~), libimage-science-ruby1.8 (<< 1.2.1-1~) Provides: libimage-science-ruby, libimage-science-ruby-doc, 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. # Transitional packages Package: libimage-science-ruby Section: oldlibs Priority: extra Architecture: all Depends: ${misc:Depends}, ruby-image-science Description: Transitional package for ruby-image-science This is a transitional package to ease upgrades to the ruby-image-science package. It can safely be removed. Package: libimage-science-ruby-doc Section: oldlibs Priority: extra Architecture: all Depends: ${misc:Depends}, ruby-image-science Description: Transitional package for ruby-image-science This is a transitional package to ease upgrades to the ruby-image-science package. It can safely be removed. Package: libimage-science-ruby1.8 Section: oldlibs Priority: extra Architecture: all Depends: ${misc:Depends}, ruby-image-science Description: Transitional package for ruby-image-science This is a transitional package to ease upgrades to the ruby-image-science package. It can safely be removed. debian/copyright0000644000000000000000000000251211734360272011126 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: image_science Source: http://seattlerb.rubyforge.org/ImageScience.html Files: * Copyright: © 2006-2009 Ryan Davis, Seattle.rb License: MIT Files: debian/* Copyright: 2011 Gunnar wolf License: MIT License: MIT 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.