debian/0000755000000000000000000000000012254673574007205 5ustar debian/rules0000755000000000000000000000053111635725475010264 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 %: dh $@ --buildsystem=ruby --with ruby debian/watch0000644000000000000000000000015711635725475010241 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/globalhotkeys .*/globalhotkeys-(.*).tar.gz debian/source/0000755000000000000000000000000011635725475010505 5ustar debian/source/format0000644000000000000000000000001411635725475011713 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000237711635725475011151 0ustar This package was debianized by Vincent Carmona Tue, 03 Aug 2010 19:10:14 +0200 It was downloaded from: http://rubyforge.org/frs/?group_id=5494 Upstream Author: Vincent Carmona Copyright: Copyright (C) 2010-2011 by Vincent Carmona License: GPL-2+ rghk is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. rghk is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with rghk; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA X-Comment: On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in the /usr/share/common-licenses/GPL- file. Packaging: Copyright (C) 2010 by Vincent Carmona released under GPL-2 debian/control0000644000000000000000000000167112254673574010615 0ustar Source: ruby-globalhotkeys Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Vincent Carmona , Lucas Nussbaum Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.5~), libgtk2.0-dev Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-globalhotkeys.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-globalhotkeys.git;a=summary Homepage: http://zik.rubyforge.org/rghk/ XS-Ruby-Versions: all Package: ruby-globalhotkeys Architecture: any XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-gtk2 Description: Ruby binding to define global hotkeys This librairy aims to provide easy global hotkeys setting for ruby applications so users can interact with an application even if it does not have the focus. debian/patches/0000755000000000000000000000000012254672625010630 5ustar debian/patches/series0000644000000000000000000000015212254672625012043 0ustar extconf-add-space-additional-cflags.patch port-to-newer-ruby.patch fix-require.diff format-security.patch debian/patches/extconf-add-space-additional-cflags.patch0000644000000000000000000000074312254672625020505 0ustar Description: add a space between default and additional CFLAGS Author: Cédric Boutillier Origin: vendor Last-Update: 2013-12-19 --- a/extconf.rb +++ b/extconf.rb @@ -30,7 +30,7 @@ find_header('ruby.h') or exit 1 gtk_cflags=`pkg-config --cflags gtk+-2.0`.chomp! -$CFLAGS+=gtk_cflags +$CFLAGS+=" " + gtk_cflags find_library('X11', 'XKeysymToKeycode') or exit 1 find_library('gobject-2.0', 'g_type_init') or exit 1 find_library('gdk-x11-2.0', '') or exit 1 debian/patches/port-to-newer-ruby.patch0000644000000000000000000000235212254672625015354 0ustar Description: port to Ruby >= 1.9 Author: Cédric Boutillier Origin: vendor Last-Update: 2013-12-19 --- a/globalhotkeys.c +++ b/globalhotkeys.c @@ -114,7 +114,7 @@ if (keycode==0) rb_raise(eInvalidKeyVal, "Invalid key value."); - if NIL_P(modifier) + if (NIL_P(modifier)) mod=0; else mod=NUM2UINT(modifier); @@ -187,7 +187,7 @@ uint ignored[]={0, RGHK_LOCK_MASK, RGHK_NUM_LOCK_MASK, RGHK_LOCK_MASK|RGHK_NUM_LOCK_MASK}; del=rb_funcall(rb_cv_get(cKeyBinder, "@@stock"), rb_intern("delete"), 1, self); - if NIL_P(del) + if (NIL_P(del)) return Qfalse; xdisplay=GDK_WINDOW_XDISPLAY(root_window); @@ -216,13 +216,13 @@ //rb_funcall(rb_stdout, rb_intern("puts"), 1, RARRAY(xkey)->ptr[1]); uint keycode=XKeysymToKeycode(GDK_WINDOW_XDISPLAY(root_window), FIX2UINT(rb_iv_get(kb_obj, "@key"))); - if (keycode==FIX2UINT(RARRAY(xkey)->ptr[0])) + if (keycode==FIX2UINT(RARRAY_PTR(xkey)[0])) { uint ignored=RGHK_LOCK_MASK|RGHK_NUM_LOCK_MASK; - uint mod=FIX2UINT(RARRAY(xkey)->ptr[1])&~ignored; + uint mod=FIX2UINT(RARRAY_PTR(xkey)[1])&~ignored; uint keymod; - if NIL_P(rb_iv_get(kb_obj, "@mod")) + if (NIL_P(rb_iv_get(kb_obj, "@mod"))) keymod=0; else keymod=FIX2UINT(rb_iv_get(kb_obj, "@mod")); debian/patches/format-security.patch0000644000000000000000000000077312254672625015015 0ustar Description: fix format security error Author: Cédric Boutillier Origin: vendor Last-Update: 2013-12-19 --- a/globalhotkeys.c +++ b/globalhotkeys.c @@ -130,7 +130,7 @@ XSync(xdisplay, FALSE); XSetErrorHandler(handler); if (strcmp(xlib_error, "")!=0) - rb_raise(eXlibError, xlib_error); + rb_raise(eXlibError, "%s", xlib_error); //XGrabKey(xdisplay, keycode, AnyModifier, GDK_WINDOW_XWINDOW(root_window), False, GrabModeAsync, GrabModeAsync); rb_iv_set(self, "@key", key); debian/patches/fix-require.diff0000644000000000000000000000141211635725475013724 0ustar Author: Vincent Carmona Description: Fix require bug * "require 'globalhotkeys'" was loading globalhotkeys.so * instead of globalhotkeys.rb --- a/extconf.rb +++ b/extconf.rb @@ -62,4 +62,4 @@ f.close add_distclean(keysyms_file) -create_makefile("globalhotkeys") +create_makefile("globalhotkeys_ext") --- a/globalhotkeys.c +++ b/globalhotkeys.c @@ -263,7 +263,7 @@ } void -Init_globalhotkeys() +Init_globalhotkeys_ext() { /* * rghk provides a simple way to set global hotkeys. --- a/lib/globalhotkeys.rb +++ b/lib/globalhotkeys.rb @@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA =end -require 'globalhotkeys.so' +require 'globalhotkeys_ext.so' #:main: GlobalHotKeys module GlobalHotKeys debian/compat0000644000000000000000000000000211635725475010403 0ustar 7 debian/changelog0000644000000000000000000000471012254673574011061 0ustar ruby-globalhotkeys (0.3.2-4) unstable; urgency=medium * Team upload * debian/control: + remove obsolete DM-Upload-Allowed + use canonical URI in Vcs-* fields + bump Standards-Version to 3.9.5 (no changes needed) + build for Ruby1.9.1 and Ruby2.0, drop Ruby1.8 support (Closes: #730949) + replace ruby1.8 by ruby and libgtk2-ruby1.8 by ruby-gtk2 in Depends * Drop transitional packages * debian/patches: added the following patches + extconf-add-space-additional-cflags.patch: add missing space in CFLAGS + port-to-newer-ruby.patch: adapt C code to Ruby 1.9 and 2.0 + format-security.patch: fix a format security error -- Cédric Boutillier Thu, 19 Dec 2013 23:46:56 +0100 ruby-globalhotkeys (0.3.2-3) unstable; urgency=low * d/patches: add fix-require.diff "require 'globalhotkeys'" loaded so file. * d/control: update Standards-Version -- Vincent Carmona Sat, 30 Apr 2011 02:24:32 +0200 ruby-globalhotkeys (0.3.2-2) unstable; urgency=low * debian/rules: drop override to remove the duplicate file in the arch-specific dir, as this was fixed in gem2deb instead. * Bump Build-dep on gem2deb to >= 0.2.2. * Add myself to Uploaders. -- Lucas Nussbaum Wed, 13 Apr 2011 23:25:45 +0200 ruby-globalhotkeys (0.3.2-1) unstable; urgency=low * Use new policy for ruby package. - d/control: rename source and binary packages. use only one binary package. use gem2deb. - delete d/ruby-globalhotkeys.{doc-base, examples, rdoc} files. - d/watch: watch for gem. -- Vincent Carmona Fri, 08 Apr 2011 02:07:24 +0200 libglobalhotkeys-ruby (0.3.1-1) unstable; urgency=low * New upstream release * copyrigth: change years. * libglobalhotkeys-ruby.examples: upstream sample directory was moved. -- Vincent Carmona Thu, 10 Mar 2011 21:56:10 +0100 libglobalhotkeys-ruby (0.2.0-1) unstable; urgency=low * New upstream release * debian/libglobalhotkeys-ruby.rdoc add lib/globalhotkeys.rb -- Vincent Carmona Sun, 05 Sep 2010 07:13:08 +0200 libglobalhotkeys-ruby (0.1.1-1) unstable; urgency=low * Initial release for debian (closes: Bug#590960) * Change name from rghk to libglobalhotkeys-ruby. ruby library are usually named libname-ruby. * Install documentation and example. -- Vincent Carmona Tue, 03 Aug 2010 19:10:14 +0200