--- vpim-0.695.orig/debian/README.Debian +++ vpim-0.695/debian/README.Debian @@ -0,0 +1,9 @@ +vPim for Debian +--------------- + +o How to collaborate with Evolution Addressbook on mutt + This is to query the PIM data from Evolution Addressbook on mutt. + You need to include the below two lines into your .muttrc: + + source "/usr/lib/evolution/2.0/evolution-addressbook-export | /usr/bin/vcf-to-mutt.rb --aliases|" + set query_command = "/usr/lib/evolution/2.0/evolution-addressbook-export | /usr/bin/vcf-to-mutt '%s'" --- vpim-0.695.orig/debian/changelog +++ vpim-0.695/debian/changelog @@ -0,0 +1,57 @@ +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 Wed, 15 Jan 2014 13:30:44 +0100 + +vpim (0.695-1) unstable; urgency=low + + * New upstream release + * Remove call to non-existant method size of class Enumerable in itip + * Require external library with proper path in vpim/repo.rb (closes: + Bug#515094) + * Add suggestion for facter + * Remove copied libraries atom.rb and plist.rb + + -- Joey Schulze Wed, 20 May 2009 20:16:22 +0200 + +vpim (0.658-1) unstable; urgency=low + + * New upstream release + + -- Joey Schulze Fri, 15 Aug 2008 09:28:57 +0200 + +vpim (0.619.1-3) unstable; urgency=low + + * Restore information to use the Evolution addressbook in Mutt + * Add ruby as build-depends (closes: Bug#493403) + + -- Joey Schulze Sat, 02 Aug 2008 21:46:09 +0200 + +vpim (0.619.1-2) unstable; urgency=low + + * Import entire Ruby license as required by ftpmaster + + -- Joey Schulze Thu, 10 Jul 2008 11:14:31 +0200 + +vpim (0.619.1-1) unstable; urgency=low + + * Removed non-free RFC documents from source etc/ directory + * Repackaged source tarball + * Bumped standards version + * switched binary-arch and binary-indep targets + + -- Joey Schulze Wed, 09 Jul 2008 08:54:20 +0200 + +vpim (0.619-1) unstable; urgency=low + + * Initial Debian package + + -- Joey Schulze Wed, 02 Jul 2008 08:26:55 +0200 + --- vpim-0.695.orig/debian/control +++ vpim-0.695/debian/control @@ -0,0 +1,20 @@ +Source: vpim +Section: libs +Priority: optional +Maintainer: Joey Schulze +Build-Depends: gem2deb +Standards-Version: 3.8.0 +XS-Ruby-Versions: all + +Package: vpim +Architecture: all +Section: libs +Priority: optional +Depends: ruby +Suggests: facter +Description: Ruby support for vCard and iCalendar + This package provides calendaring, scheduling, and contact support + for Ruby through vCard and iCalendar, the standard formats for + exchange and storage of contact information and calendars, respectively. +Homepage: http://vpim.rubyforge.org/ + --- vpim-0.695.orig/debian/copyright +++ vpim-0.695/debian/copyright @@ -0,0 +1,116 @@ +This is the Debian GNU/Linux prepackaged version of vPim, a pure-ruby +library for decoding and encoding vCard and iCalendar data. + +This package was put together by Joey Schulze +from sources obtained from: + http://rubyforge.org/projects/vpim + +Copyright: Copyright (C) 2008 Sam Roberts +License: May be distributed under the same terms as Ruby + +The Ruby license is at the end of this document. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +Some components are distributed under the MIT license which is quoted +verbatim at the end of this document. + +atom.rb: Copyright (c) 2008 The Kaphan Foundation + Copyright (c) 2008 Peerworks +plist.rb: Copyright 2006, Ben Bleything and + Patrick May + + +For notifications about new releases, or asking questions about vPim, +please subscribe to the "vpim-talk" list: + + http://rubyforge.org/mailman/listinfo/vpim-talk + +The source of the Debian package is managed through CVS. It is publically +available at or as +<:pserver:anonymous@cvs.infodrom.org/var/cvs/debian/vpim/>. + + +---------------------------------------------------------------------- +Imported from /usr/share/doc/ruby1.8/copyright + +Ruby's License: + +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. +---------------------------------------------------------------------- +MIT License + +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. --- vpim-0.695.orig/debian/mailcap +++ vpim-0.695/debian/mailcap @@ -0,0 +1,2 @@ +text/calendar; itip %s; copiousoutput; description="iCalendar data" +text/x-vcard; vcf-dump %s; copiousoutput; description="vCard data" --- vpim-0.695.orig/debian/postinst +++ vpim-0.695/debian/postinst @@ -0,0 +1,5 @@ +#! /bin/sh + +if [ "$1" = "configure" -a -x "`which update-mime 2>/dev/null`" ]; then + update-mime +fi --- vpim-0.695.orig/debian/postrm +++ vpim-0.695/debian/postrm @@ -0,0 +1,3 @@ +#! /bin/sh + +if which update-mime >/dev/null 2>&1; then update-mime; fi --- vpim-0.695.orig/debian/rules +++ vpim-0.695/debian/rules @@ -0,0 +1,118 @@ +#! /usr/bin/make -f + +# Copyright 1994-99,2001,2008,9 joey@infodrom.org (Joey Schulze) +# +# This program 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; version 2 dated June, 1991. +# +# This program 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 this program; if not, write to the Free Software +# Foundation Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA + +SHELL=/bin/bash + +# The name and version of the source +# +source = $(shell grep "^Source: " debian/control|head -1|sed 's/Source: \(.*\)/\1/g') +package = $(shell grep "^Package: " debian/control|head -1|sed 's/Package: \(.*\)/\1/g') +version = $(shell grep "^$(source) " debian/changelog|head -1 |sed 's/.*(\(.*\)\-[^\-]*).*/\1/g') +revision = $(shell grep "^$(source) " debian/changelog|head -1 |sed 's/.*([^\-]*\-\(.*\)).*/\1/g') + +installbin = install -g root -o root -m 755 +installdoc = install -g root -o root -m 644 + +build: + 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: +# Cleans debian binary directories to allow binary creation + rm -rf debian/tmp + rm -f debian/{files,substvars} + +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 + chown -R root.root debian/tmp + chmod -R g-ws debian/tmp + $(installbin) -d debian/tmp/usr/share/doc/$(package) + $(installbin) debian/{postinst,postrm} debian/tmp/DEBIAN/ +# $(installdoc) debian/conffiles debian/tmp/DEBIAN/ + $(installdoc) debian/changelog debian/tmp/usr/share/doc/$(package)/changelog.Debian + $(installdoc) debian/copyright debian/tmp/usr/share/doc/$(package)/ + $(installdoc) debian/README.Debian debian/tmp/usr/share/doc/$(package)/ + # + 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)/ + # + $(installbin) -d debian/tmp/usr/bin + $(installbin) samples/cmd-itip.rb debian/tmp/usr/bin/itip + $(installbin) samples/mutt-aliases-to-vcf.rb debian/tmp/usr/bin/mutt-aliases-to-vcf + $(installbin) samples/ics-dump.rb debian/tmp/usr/bin/ics-dump + $(installbin) samples/ics-to-rss.rb debian/tmp/usr/bin/ics-to-rss + $(installbin) samples/vcf-dump.rb debian/tmp/usr/bin/vcf-dump + $(installbin) samples/vcf-to-ics.rb debian/tmp/usr/bin/vcf-to-ics + $(installbin) samples/vcf-to-mutt.rb debian/tmp/usr/bin/vcf-to-mutt + # + $(installbin) -d debian/tmp/usr/lib/mime/packages + $(installdoc) debian/mailcap debian/tmp/usr/lib/mime/packages/$(package) + # + gzip -9f debian/tmp/usr/share/doc/$(package)/changelog{,.Debian} + # + rm debian/tmp/usr/lib/ruby/*/plist.rb + rm debian/tmp/usr/lib/ruby/*/atom.rb + # +# $(installbin) -d debian/tmp/usr/share/man/man{5,8} +# $(installdoc) syslog.conf.5 debian/tmp/usr/share/man/man5 +# $(installdoc) {sysklogd,syslogd,klogd,debian/syslogd-listfiles}.8 debian/tmp/usr/share/man/man8 +# $(installdoc) syslog-facility.8 debian/tmp/usr/share/man/man8 +# gzip -9 debian/tmp/usr/share/man/man?/* + # + dpkg-gencontrol -isp + dpkg --build debian/tmp .. + +binary: binary-indep binary-arch + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b' or dsc; false + +dsc: + -test -d debian/tmp && $(MAKE) -f debian/rules clean + if [ ! -f ../$(source)_$(version).orig.tar.gz -a -f ../orig/$(source)_$(version).orig.tar.gz ]; \ + then \ + ln -s orig/$(source)_$(version).orig.tar.gz ../$(source)_$(version).orig.tar.gz; \ + touch /tmp/stamp-$(source)-link; \ + fi; \ + cd .. && dpkg-source -b $(source)-$(version) + if [ -f /tmp/stamp-$(source)-link ]; then \ + rm ../$(source)_$(version).orig.tar.gz /tmp/stamp-$(source)-link; \ + fi + +checkroot: + $(checkdir) + test root = "`whoami`" + +dist: binary dsc + +.PHONY: binary binary-arch binary-indep clean checkroot + --- vpim-0.695.orig/lib/vpim/repo.rb +++ vpim-0.695/lib/vpim/repo.rb @@ -9,7 +9,7 @@ require 'enumerator' require "net/http" -require 'plist' +require 'facter/util/plist' require 'vpim/icalendar' require 'vpim/duration' --- vpim-0.695.orig/samples/cmd-itip.rb +++ vpim-0.695/samples/cmd-itip.rb @@ -71,10 +71,6 @@ events = cal.events - if events.size != 1 - raise "!! #{events.size} calendar events is more than 1!" - end - events.each do |e| summary = e.summary || e.comment || ''