--- libsyntax-highlight-perl-improved-perl-1.01.orig/debian/control +++ libsyntax-highlight-perl-improved-perl-1.01/debian/control @@ -0,0 +1,21 @@ +Source: libsyntax-highlight-perl-improved-perl +Section: perl +Priority: optional +Build-Depends: debhelper (>= 5.0.0), quilt +Build-Depends-Indep: perl (>= 5.8.8-7) +Maintainer: Debian Perl Group +Uploaders: Jaldhar H. Vyas , gregor herrmann +Standards-Version: 3.7.3 +Homepage: http://search.cpan.org/dist/Syntax-Highlight-Perl-Improved/ +Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libsyntax-highlight-perl-improved-perl/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-perl/trunk/libsyntax-highlight-perl-improved-perl/ + +Package: libsyntax-highlight-perl-improved-perl +Architecture: all +Depends: ${perl:Depends}, ${misc:Depends}, +Description: Highlighting of Perl Syntactical Structures + This module provides syntax highlighting for Perl code. The design bias is + roughly line-oriented and streamed (ie, processing a file line-by-line in a + single pass). Provisions may be made in the future for tasks related to + "back-tracking" (ie, re-doing a single line in the middle of a stream) such + as speeding up state copying. --- libsyntax-highlight-perl-improved-perl-1.01.orig/debian/patches/series +++ libsyntax-highlight-perl-improved-perl-1.01/debian/patches/series @@ -0,0 +1 @@ +viewperl.patch --- libsyntax-highlight-perl-improved-perl-1.01.orig/debian/patches/viewperl.patch +++ libsyntax-highlight-perl-improved-perl-1.01/debian/patches/viewperl.patch @@ -0,0 +1,31 @@ +Index: libsyntax-highlight-perl-improved-perl/viewperl +=================================================================== +--- libsyntax-highlight-perl-improved-perl.orig/viewperl 2007-08-26 22:54:32.000000000 +0200 ++++ libsyntax-highlight-perl-improved-perl/viewperl 2007-08-26 22:54:46.000000000 +0200 +@@ -16,7 +16,7 @@ + + use FileHandle; + use Getopt::Long; +-use Syntax::Highlight::Perl 1.0; ++use Syntax::Highlight::Perl::Improved 1.0; + + + #===================================================================== +@@ -69,7 +69,7 @@ + bgwhite => "\e[47m", + ); + +-$formatter = new Syntax::Highlight::Perl; ++$formatter = new Syntax::Highlight::Perl::Improved; + + # + # Set up formatter to do ANSI colors. +@@ -283,7 +283,7 @@ + + + # +-# Convert module names (eg, Syntax::Highlight::Perl) to ++# Convert module names (eg, Syntax::Highlight::Perl::Improved) to + # fully qualified file names using current state of @INC. + # + # Returns undef on error (file-not-found). --- libsyntax-highlight-perl-improved-perl-1.01.orig/debian/rules +++ libsyntax-highlight-perl-improved-perl-1.01/debian/rules @@ -0,0 +1,75 @@ +#!/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 + +include /usr/share/quilt/quilt.make + +# 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) + +build: build-stamp +build-stamp: $(QUILT_STAMPFN) + dh_testdir + + $(PERL) Makefile.PL INSTALLDIRS=vendor + $(MAKE) + + 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 + dh_installdirs usr/bin + dh_install viewperl usr/bin + + [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5 + + touch $@ + +binary-arch: +# We have nothing to do here for an architecture-independent package + +binary-indep: build install + dh_testdir + dh_testroot + dh_installdocs README + dh_installchangelogs ChangeLog + dh_installman debian/viewperl.1 + 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: build clean binary-indep binary-arch binary install --- libsyntax-highlight-perl-improved-perl-1.01.orig/debian/watch +++ libsyntax-highlight-perl-improved-perl-1.01/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://search.cpan.org/dist/Syntax-Highlight-Perl-Improved/ .*/Syntax-Highlight-Perl-Improved-v?(\d[\d_.]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip) --- libsyntax-highlight-perl-improved-perl-1.01.orig/debian/copyright +++ libsyntax-highlight-perl-improved-perl-1.01/debian/copyright @@ -0,0 +1,23 @@ +This is the debian package for the Syntax::Highlight::Perl::Improved module. +It was created by Jaldhar H. Vyas using dh-make-perl +from the original package found at CPAN + +The original package can be downloaded from: + http://search.cpan.org/dist/Syntax-Highlight-Perl-Improved/ + +The upstream author is: + +David C.Y. Liu b + +based on code by +Cory Johns darkness@yossman.net + +Copyright (c) 2004 David C.Y. Liu. This library is free software; you can +redistribute and/or modify it under the same conditions as Perl itself.. + +The Artistic and GPL licences under which Perl is distributed can be found +in /usr/share/common-licenses/ . See /usr/share/doc/perl/copyright for +the license of Perl itself. + +The Debian packaging is (C) 2007, Jaldhar H. Vyas and +is licensed under the same terms as the software itself (see above). --- libsyntax-highlight-perl-improved-perl-1.01.orig/debian/compat +++ libsyntax-highlight-perl-improved-perl-1.01/debian/compat @@ -0,0 +1 @@ +5 --- libsyntax-highlight-perl-improved-perl-1.01.orig/debian/changelog +++ libsyntax-highlight-perl-improved-perl-1.01/debian/changelog @@ -0,0 +1,31 @@ +libsyntax-highlight-perl-improved-perl (1.01-3) unstable; urgency=low + + * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser + field (source stanza); Homepage field (source stanza). Removed: XS- + Vcs-Svn fields. + * debian/rules: + - delete /usr/lib/perl5 only if it exists (closes: #468018) + - update based on dh-make-perl's templates + * debian/watch: use dist-based URL. + * Set Standards-Version to 3.7.3 (no changes). + * debian/copyright: use generic download URL. + + -- gregor herrmann Wed, 12 Mar 2008 20:35:38 +0100 + +libsyntax-highlight-perl-improved-perl (1.01-2) unstable; urgency=low + + [ gregor herrmann ] + * Add watch file. + * Patch viewperl to make it use the actual library we're installing. + * Add manpage for viewperl. + + [ Jaldhar H. Vyas ] + * Added location of upstream tarball to debian/copyright. + + -- Jaldhar H. Vyas Mon, 27 Aug 2007 02:12:33 -0400 + +libsyntax-highlight-perl-improved-perl (1.01-1) unstable; urgency=low + + * Initial Release. + + -- Jaldhar H. Vyas Wed, 22 Aug 2007 14:36:43 -0400 --- libsyntax-highlight-perl-improved-perl-1.01.orig/debian/viewperl.1 +++ libsyntax-highlight-perl-improved-perl-1.01/debian/viewperl.1 @@ -0,0 +1,107 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36. +.TH VIEWPERL "1" "August 2007" "viewperl" "User Commands" +.SH NAME +viewperl - quickly view syntax highlighted Perl code +.SH SYNOPSIS +.B viewperl +[\fIOPTION\fR]... \fIFILE\fR... +.SH DESCRIPTION +View a Perl source code file, syntax highlighted. +.TP +\fB\-c\fR, \fB\-\-code\fR=\fICODE\fR +view CODE, syntax highlighted +.TP +\fB\-l\fR, \fB\-\-lines\fR +display line numbers +.TP +\fB\-L\fR, \fB\-\-no\-lines\fR +supress display of line numbers (default) +.TP +\fB\-m\fR, \fB\-\-module\fR=\fIFILE\fR +consider FILE the name of a module, not a file name +.TP +\fB\-n\fR, \fB\-\-name\fR +display the name of each file (default) +.TP +\fB\-N\fR, \fB\-\-no\-name\fR +supress display of file names (implied by \fB\-\-no\-reset\fR) +.TP +\fB\-p\fR, \fB\-\-pod\fR +display inline POD documentation (default) +.TP +\fB\-P\fR, \fB\-\-no\-pod\fR +hide POD documentation (line numbers still increment) +.TP +\fB\-r\fR, \fB\-\-reset\fR +reset formatting and line numbers each file (default) +.TP +\fB\-R\fR, \fB\-\-no\-reset\fR +supress resetting of formatting and line numbers +.TP +\fB\-s\fR, \fB\-\-shift\fR=\fIWIDTH\fR +set tab width (default is 4) +.TP +\fB\-t\fR, \fB\-\-tabs\fR +translate tabs into spaces (default) +.TP +\fB\-T\fR, \fB\-\-no\-tabs\fR +supress translating of tabs into spaces +.TP +\fB\-\-help\fR +display this help and exit +.PP +Note that module names should be given as they would appear after a Perl `use' or +`require' statement. `Getopt::Long', for example. +.PP +Each string given using \fB\-c\fR is considered a different file, so line number and +formatting resets will apply. +.PP +View a Perl source code file, syntax highlighted. +.TP +\fB\-c\fR, \fB\-\-code\fR=\fICODE\fR +view CODE, syntax highlighted +.TP +\fB\-l\fR, \fB\-\-lines\fR +display line numbers +.TP +\fB\-L\fR, \fB\-\-no\-lines\fR +supress display of line numbers (default) +.TP +\fB\-m\fR, \fB\-\-module\fR=\fIFILE\fR +consider FILE the name of a module, not a file name +.TP +\fB\-n\fR, \fB\-\-name\fR +display the name of each file (default) +.TP +\fB\-N\fR, \fB\-\-no\-name\fR +supress display of file names (implied by \fB\-\-no\-reset\fR) +.TP +\fB\-p\fR, \fB\-\-pod\fR +display inline POD documentation (default) +.TP +\fB\-P\fR, \fB\-\-no\-pod\fR +hide POD documentation (line numbers still increment) +.TP +\fB\-r\fR, \fB\-\-reset\fR +reset formatting and line numbers each file (default) +.TP +\fB\-R\fR, \fB\-\-no\-reset\fR +supress resetting of formatting and line numbers +.TP +\fB\-s\fR, \fB\-\-shift\fR=\fIWIDTH\fR +set tab width (default is 4) +.TP +\fB\-t\fR, \fB\-\-tabs\fR +translate tabs into spaces (default) +.TP +\fB\-T\fR, \fB\-\-no\-tabs\fR +supress translating of tabs into spaces +.TP +\fB\-\-help\fR +display this help and exit +.PP +Note that module names should be given as they would appear after a Perl `use' or +`require' statement. `Getopt::Long', for example. +.PP +Each string given using \fB\-c\fR is considered a different file, so line number and +formatting resets will apply.