Package: vpim
Version: 0.695-1.1
Severity: normal
Tags: patch

Dear maintainer,

I have prepared an NMU for vpim to drop the dependency on ruby1.8, since
we want to remove it from the archive so it will not be in Jessie. The
diff is attached, and the package was uploaded to DELAYED/3.

Thanks.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.12-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=pt_BR.utf8, LC_CTYPE=pt_BR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages vpim depends on:
ii  ruby  1:1.9.3

vpim recommends no packages.

Versions of packages vpim suggests:
ii  facter  1.7.3-1

-- no debconf information

-- 
Antonio Terceiro <terce...@debian.org>
diff -u vpim-0.695/debian/changelog vpim-0.695/debian/changelog
--- vpim-0.695/debian/changelog
+++ vpim-0.695/debian/changelog
@@ -1,3 +1,15 @@
+vpim (0.695-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Port to Ruby 1.9+ (Closes: #682772)
+    - debian/control: change Build-Depends to gem2deb; drop dependency on
+      ruby1.8
+    - debian/rules: change build to call `dh_ruby --setuprb` instead of
+      manually calling `ruby setup.rb`. This will make sure the package will
+      install code that is available for all Ruby interpreters.
+
+ -- Antonio Terceiro <terce...@debian.org>  Wed, 15 Jan 2014 13:30:44 +0100
+
 vpim (0.695-1) unstable; urgency=low
 
   * New upstream release
diff -u vpim-0.695/debian/control vpim-0.695/debian/control
--- vpim-0.695/debian/control
+++ vpim-0.695/debian/control
@@ -2,14 +2,15 @@
 Section: libs
 Priority: optional
 Maintainer: Joey Schulze <j...@debian.org>
-Build-Depends: ruby, ruby1.8
+Build-Depends: gem2deb
 Standards-Version: 3.8.0
+XS-Ruby-Versions: all
 
 Package: vpim
 Architecture: all
 Section: libs
 Priority: optional
-Depends: ruby, ruby1.8
+Depends: ruby
 Suggests: facter
 Description: Ruby support for vCard and iCalendar
  This package provides calendaring, scheduling, and contact support
diff -u vpim-0.695/debian/rules vpim-0.695/debian/rules
--- vpim-0.695/debian/rules
+++ vpim-0.695/debian/rules
@@ -28,12 +28,13 @@
 installdoc = install -g root -o root -m 644
 
 build:
-       ruby setup.rb config --installdirs=std
-       ruby setup.rb setup
+       dh_ruby --setuprb --build
        touch stamp-build
 
 clean: debclean
+       dh_ruby --setuprb --clean
        ruby setup.rb distclean
+       rm -f debian/vpim.substvars
        rm -f stamp-build
 
 debclean:
@@ -44,6 +45,9 @@
 binary-arch:
 # Nothing to be done here
 
+export DH_RUBY_IGNORE_TESTS=require-rubygems
+export DH_RUBY_USE_DH_AUTO_INSTALL_DESTDIR=yes
+
 binary-indep: debclean
        test -f stamp-build || $(MAKE) -f debian/rules build
        $(installbin) -d debian/tmp/DEBIAN
@@ -56,7 +60,7 @@
        $(installdoc) debian/copyright debian/tmp/usr/share/doc/$(package)/
        $(installdoc) debian/README.Debian debian/tmp/usr/share/doc/$(package)/
        #
-       ruby setup.rb install --prefix=debian/tmp
+       dh_ruby --setuprb --install debian/tmp
        $(installdoc) CHANGES debian/tmp/usr/share/doc/$(package)/changelog
        $(installdoc) samples/README.mutt debian/tmp/usr/share/doc/$(package)/
        $(installdoc) README debian/tmp/usr/share/doc/$(package)/

Attachment: signature.asc
Description: Digital signature

Reply via email to