--- libgetopt-tabular-perl-0.3.orig/debian/control +++ libgetopt-tabular-perl-0.3/debian/control @@ -0,0 +1,34 @@ +Source: libgetopt-tabular-perl +Section: perl +Priority: optional +Build-Depends: debhelper (>= 5.0.0), quilt +Build-Depends-Indep: perl (>= 5.8.8-12) +Maintainer: Debian Perl Group +Uploaders: Damyan Ivanov +Standards-Version: 3.7.3 +Homepage: http://search.cpan.org/dist/Getopt-Tabular/ +Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libgetopt-tabular-perl/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-perl/trunk/libgetopt-tabular-perl/ + +Package: libgetopt-tabular-perl +Architecture: all +Depends: ${perl:Depends}, ${misc:Depends} +Description: table-driven argument parsing for Perl 5 + Getopt::Tabular is a Perl 5 module for table-driven argument parsing, + vaguely inspired by John Ousterhout's Tk_ParseArgv. + . + Some nice features of Getopt::Tabular are: + * Command-line arguments are carefully type-checked, both by pattern and + number -- e.g. if an option requires two integers, GetOptions makes sure + that exactly two integers follow it! + * The valid command-line arguments are specified in a data structure + separate from the call to GetOptions; this makes it easier to have very + long lists of options, and to parse options from multiple sources + (e.g. the command line, an environment variable, and a configuration file). + * Getopt::Tabular can intelligently generate help text based on your option + descriptions. + * The type system is extensible, and if you can define your desired argument + type using a single Perl regular expression then it's particularly easy to + extend. + * Options can be abbreviated and come in any order. + * A "spoof" mode in which arguments are parsed without side-effects. --- libgetopt-tabular-perl-0.3.orig/debian/rules +++ libgetopt-tabular-perl-0.3/debian/rules @@ -0,0 +1,79 @@ +#!/usr/bin/make -f +# This debian/rules file is provided as a template for normal perl +# packages. It was created by Marc Brockschmidt for +# the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may +# be used freely wherever it is useful. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# If set to a true value then MakeMaker's prompt function will +# always return the default without waiting for user input. +export PERL_MM_USE_DEFAULT=1 + +PACKAGE=$(shell dh_listpackages) + +ifndef PERL +PERL = /usr/bin/perl +endif + +TMP =$(CURDIR)/debian/$(PACKAGE) + +include /usr/share/quilt/quilt.make + +build: build-stamp +build-stamp: $(QUILT_STAMPFN) + dh_testdir + + # As this is a architecture independent package, we are not + # supposed to install stuff to /usr/lib. MakeMaker creates + # the dirs, we prevent this by setting the INSTALLVENDORARCH + # and VENDORARCHEXP environment variables. + + $(PERL) Makefile.PL INSTALLDIRS=vendor + $(MAKE) + $(MAKE) test + + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + + dh_clean build-stamp install-stamp + + [ ! -f Makefile ] || $(MAKE) realclean + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + + $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr + + [ ! -d $(TMP)/usr/lib/perl5 ] || \ + rmdir --parents --ignore-fail-on-non-empty -v $(TMP)/usr/lib/perl5 + + touch $@ + +binary-arch: +binary-indep: build install + dh_testdir + dh_testroot + dh_installexamples demo + dh_installdocs + dh_installchangelogs Changes + dh_perl + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +binary: binary-indep binary-arch +.PHONY: install build clean binary-indep binary-arch binary --- libgetopt-tabular-perl-0.3.orig/debian/watch +++ libgetopt-tabular-perl-0.3/debian/watch @@ -0,0 +1,3 @@ +# format version number, currently 3; this line is compulsory! +version=3 +http://search.cpan.org/dist/Getopt-Tabular/ .*/Getopt-Tabular-v?(\d[\d_.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ --- libgetopt-tabular-perl-0.3.orig/debian/copyright +++ libgetopt-tabular-perl-0.3/debian/copyright @@ -0,0 +1,23 @@ +This is the debian package for the Getopt::Tabular module. +It was created by David Paleino using dh-make-perl. + +It was downloaded from http://search.cpan.org/dist/Getopt-Tabular/ + +The upstream author is: Greg Ward + +Started in July, 1995 as ParseArgs.pm, with John Ousterhout's +Tk_ParseArgv.c as a loose inspiration. Many many features added over +the ensuing months; documentation written in a mad frenzy 16-18 April, +1996. Renamed to Getopt::Tabular, revamped, reorganized, and +documentation expanded 8-11 November, 1996. + +Copyright (c) 1995-97 Greg Ward. All rights reserved. This is +free software; you can redistribute it and/or modify it under the same +terms as Perl itself. + +Perl is released under GNU General Public License (available at +'/usr/share/common-licenses/GPL') or the Artistic License (available at +'/usr/share/common-licenses/Artistic') + +The Debian packaging is (C) 2008, David Paleino and +is licensed under the same terms as the software itself (see above). --- libgetopt-tabular-perl-0.3.orig/debian/compat +++ libgetopt-tabular-perl-0.3/debian/compat @@ -0,0 +1 @@ +5 --- libgetopt-tabular-perl-0.3.orig/debian/changelog +++ libgetopt-tabular-perl-0.3/debian/changelog @@ -0,0 +1,6 @@ +libgetopt-tabular-perl (0.3-1) unstable; urgency=low + + [ David Paleino ] + * Initial Release (Closes: #458918) + + -- Damyan Ivanov Fri, 04 Jan 2008 19:54:51 +0200 --- libgetopt-tabular-perl-0.3.orig/debian/patches/01-fix_perl_path.patch +++ libgetopt-tabular-perl-0.3/debian/patches/01-fix_perl_path.patch @@ -0,0 +1,8 @@ +--- libgetopt-tabular-perl.orig/demo ++++ libgetopt-tabular-perl/demo +@@ -1,4 +1,4 @@ +-#!/usr/local/bin/perl5 -w ++#!/usr/bin/perl -w + + # Example program for the Getopt::Tabular package. See Getopt/Tabular.pod + # for detailed explanation of How Things Work. --- libgetopt-tabular-perl-0.3.orig/debian/patches/series +++ libgetopt-tabular-perl-0.3/debian/patches/series @@ -0,0 +1 @@ +01-fix_perl_path.patch