r10585 - in /trunk/libxml-xslt-perl: Makefile.PL debian/ debian/changelog debian/compat debian/control debian/copyright debian/libxml-xslt-perl.docs debian/libxml-xslt-perl.examples debian/rules debian/watch xslt-parser

vdanjean at users.alioth.debian.org vdanjean at users.alioth.debian.org
Sat Dec 1 12:42:05 UTC 2007


Author: vdanjean
Date: Sat Dec  1 12:42:05 2007
New Revision: 10585

URL: http://svn.debian.org/wsvn/?sc=1&rev=10585
Log:
[svn-inject] Applying Debian modifications to trunk

Added:
    trunk/libxml-xslt-perl/debian/
    trunk/libxml-xslt-perl/debian/changelog
    trunk/libxml-xslt-perl/debian/compat
    trunk/libxml-xslt-perl/debian/control
    trunk/libxml-xslt-perl/debian/copyright
    trunk/libxml-xslt-perl/debian/libxml-xslt-perl.docs
    trunk/libxml-xslt-perl/debian/libxml-xslt-perl.examples
    trunk/libxml-xslt-perl/debian/rules   (with props)
    trunk/libxml-xslt-perl/debian/watch
Modified:
    trunk/libxml-xslt-perl/Makefile.PL
    trunk/libxml-xslt-perl/xslt-parser

Modified: trunk/libxml-xslt-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/trunk/libxml-xslt-perl/Makefile.PL?rev=10585&op=diff
==============================================================================
--- trunk/libxml-xslt-perl/Makefile.PL (original)
+++ trunk/libxml-xslt-perl/Makefile.PL Sat Dec  1 12:42:05 2007
@@ -13,6 +13,6 @@
               PREREQ_PM     => { XML::Parser => '2.23',
 				                     XML::DOM    => '1.25',
                                  Test::More  => '0.33' },
-	      EXE_FILES      => ['xslt-parser'],
+	      #EXE_FILES      => ['xslt-parser'],
              );
 

Added: trunk/libxml-xslt-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libxml-xslt-perl/debian/changelog?rev=10585&op=file
==============================================================================
--- trunk/libxml-xslt-perl/debian/changelog (added)
+++ trunk/libxml-xslt-perl/debian/changelog Sat Dec  1 12:42:05 2007
@@ -1,0 +1,100 @@
+libxml-xslt-perl (0.48-2) unstable; urgency=low
+
+  * Adds debian/watch file so uscan will work
+
+ -- Jay Bonci <jaybonci at debian.org>  Wed, 27 Oct 2004 13:42:03 -0400
+
+libxml-xslt-perl (0.48-1) unstable; urgency=low
+
+  * New Upstream Version
+  * New Maintainer (Closes: #210549)
+  * Bumped policy-version to 3.6.1.0 (No other changes)
+  * Updated copyright file to explicate the dual nature of the Perl license
+  * Removed .install file, as it is no longer necessary
+
+ -- Jay Bonci <jaybonci at debian.org>  Mon, 15 Mar 2004 16:55:04 -0500
+
+libxml-xslt-perl (0.45-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/rules: moved debhelper compatibility level setting to
+    'debian/compat' per latest debhelper best practices
+  * debian/control: updated sections according to latest archive changes:
+    - 'libxml-xslt-perl' from 'interpreters' to 'perl'
+  * debian/control: upgraded build dependency on 'debhelper' to '>= 4.1'
+  * debian/control: upgraded to Debian Policy 3.6.0 (no changes)
+
+ -- Ardo van Rangelrooij <ardo at debian.org>  Thu,  4 Sep 2003 22:54:30 -0500
+
+libxml-xslt-perl (0.40-2) unstable; urgency=low
+
+  * debian/rules: upgraded to debhelper v4
+  * debian/control: changed build dependency on debhelper accordingly
+  * debian/rules: migrated from 'dh_movefiles' to 'dh_install'
+  * debian/rules: split off 'install' target from 'binary-indep' target
+  * debian/copyright: added pointer to license
+
+ -- Ardo van Rangelrooij <ardo at debian.org>  Fri,  9 Aug 2002 22:06:50 -0500
+
+libxml-xslt-perl (0.40-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/control: added build dependency on 'libtest-simple-perl'
+  * debian/copyright: updated
+
+ -- Ardo van Rangelrooij <ardo at debian.org>  Wed, 20 Feb 2002 20:11:43 -0600
+
+libxml-xslt-perl (0.32-4) unstable; urgency=low
+
+  * debian/control: upgraded to Debian Policy 3.5.6
+
+ -- Ardo van Rangelrooij <ardo at debian.org>  Sun, 23 Dec 2001 22:00:44 -0600
+
+libxml-xslt-perl (0.32-3) unstable; urgency=low
+
+  * debian/control: added missing (build) dependency on 'libhtml-clean-perl'
+    and 'liburi-perl'
+  * debian/control: changed (build) dependency on 'libxml-enno-perl' to
+    'libxml-dom-perl'
+  * debian/control: removed superfluous (build) dependency on
+    'libxml-parser-perl'
+  * debian/control: upgraded to Debian Policy 3.5.5
+  * debian/control: upgraded to Debian Perl Policy 1.20
+
+ -- Ardo van Rangelrooij <ardo at debian.org>  Sun,  2 Sep 2001 18:26:06 -0500
+
+libxml-xslt-perl (0.32-2) unstable; urgency=low
+
+  * debian/control: updated debhelper dependency to remove 'dh_testversion'
+  * debian/control: upgraded to Debian Policy 3.5.2
+  * debian/control: upgraded to Debian Perl Policy 1.17
+  * debian/rules: upgraded to Debian Perl Policy 1.17
+
+ -- Ardo van Rangelrooij <ardo at debian.org>  Sun, 15 Apr 2001 19:54:24 -0500
+
+libxml-xslt-perl (0.32-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Ardo van Rangelrooij <ardo at debian.org>  Sat, 27 Jan 2001 19:04:47 -0600
+
+libxml-xslt-perl (0.31-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/control: upgraded to Debian Policy 3.2.1
+  * debian/rules: upgraded to debhelper v3
+
+ -- Ardo van Rangelrooij <ardo at debian.org>  Wed, 17 Jan 2001 14:23:59 -0600
+
+libxml-xslt-perl (0.24-2) unstable; urgency=low
+
+  * debian/control: changed dependency from 'libxml-dom-perl' to
+    'libxml-enno-perl'
+
+ -- Ardo van Rangelrooij <ardo at debian.org>  Fri, 21 Jul 2000 17:12:57 +0200
+
+libxml-xslt-perl (0.24-1) unstable; urgency=low
+
+  * Initial Release
+
+ -- Ardo van Rangelrooij <ardo at debian.org>  Fri, 21 Jul 2000 07:36:39 +0200

Added: trunk/libxml-xslt-perl/debian/compat
URL: http://svn.debian.org/wsvn/trunk/libxml-xslt-perl/debian/compat?rev=10585&op=file
==============================================================================
--- trunk/libxml-xslt-perl/debian/compat (added)
+++ trunk/libxml-xslt-perl/debian/compat Sat Dec  1 12:42:05 2007
@@ -1,0 +1,1 @@
+4

Added: trunk/libxml-xslt-perl/debian/control
URL: http://svn.debian.org/wsvn/trunk/libxml-xslt-perl/debian/control?rev=10585&op=file
==============================================================================
--- trunk/libxml-xslt-perl/debian/control (added)
+++ trunk/libxml-xslt-perl/debian/control Sat Dec  1 12:42:05 2007
@@ -1,0 +1,17 @@
+Source: libxml-xslt-perl
+Section: perl
+Priority: optional
+Maintainer: Jay Bonci <jaybonci at debian.org>
+Standards-Version: 3.6.1.0
+Build-Depends-Indep: debhelper (>= 4.1), perl, libhtml-clean-perl, libtest-simple-perl, liburi-perl, libwww-perl, libxml-dom-perl
+
+Package: libxml-xslt-perl
+Section: perl
+Priority: optional
+Architecture: all
+Depends: ${perl:Depends}, libhtml-clean-perl, liburi-perl, libwww-perl, libxml-dom-perl
+Description: Perl module for processing XSLT
+ This module parses XSL Transformational sheets.  For a description of
+ the XSLT, see http://www.w3.org/TR/xslt.  Currently, it uses
+ XML::Parser and XML::DOM, but an effort is being made to use
+ XML::XPath.

Added: trunk/libxml-xslt-perl/debian/copyright
URL: http://svn.debian.org/wsvn/trunk/libxml-xslt-perl/debian/copyright?rev=10585&op=file
==============================================================================
--- trunk/libxml-xslt-perl/debian/copyright (added)
+++ trunk/libxml-xslt-perl/debian/copyright Sat Dec  1 12:42:05 2007
@@ -1,0 +1,30 @@
+This package was debianized by Ardo van Rangelrooij <ardo at debian.org>
+on Fri, Jul 21, 2000, 7:42:50 +0200.
+
+It was downloaded from the Comprehensive Perl Archive Network (CPAN).
+Visit <http://www.cpan.org/> to find a CPAN site near you.
+
+Upstream Authors: Geert Josten <gjosten at sci.kun.nl>,
+                  Egon Willighagen <egonw at sci.kun.nl>,
+		  Mark A. Hershberger <mah at everybody.org>,
+		  Bron Gondwana <perlcode at brong.net>
+
+Copyright:
+
+Copyright (c) 1999 Geert Josten & Egon Willighagen.
+Copyright (c) 2001 Mark A. Hershberger
+	This program is free software; you can redistribute it and/or modify
+	it under the terms of either:
+
+	a) the GNU General Public License as published by the Free
+	Software Foundation; either version 1, or (at your option) any
+	later version, or
+
+	b) the "Artistic License"
+
+	See:
+
+	/usr/share/common-licenses/Artistic
+	/usr/share/common-licenses/GPL
+
+	For more information regarding these licensing options

Added: trunk/libxml-xslt-perl/debian/libxml-xslt-perl.docs
URL: http://svn.debian.org/wsvn/trunk/libxml-xslt-perl/debian/libxml-xslt-perl.docs?rev=10585&op=file
==============================================================================
--- trunk/libxml-xslt-perl/debian/libxml-xslt-perl.docs (added)
+++ trunk/libxml-xslt-perl/debian/libxml-xslt-perl.docs Sat Dec  1 12:42:05 2007
@@ -1,0 +1,1 @@
+README

Added: trunk/libxml-xslt-perl/debian/libxml-xslt-perl.examples
URL: http://svn.debian.org/wsvn/trunk/libxml-xslt-perl/debian/libxml-xslt-perl.examples?rev=10585&op=file
==============================================================================
--- trunk/libxml-xslt-perl/debian/libxml-xslt-perl.examples (added)
+++ trunk/libxml-xslt-perl/debian/libxml-xslt-perl.examples Sat Dec  1 12:42:05 2007
@@ -1,0 +1,2 @@
+examples/*
+xslt-parser

Added: trunk/libxml-xslt-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libxml-xslt-perl/debian/rules?rev=10585&op=file
==============================================================================
--- trunk/libxml-xslt-perl/debian/rules (added)
+++ trunk/libxml-xslt-perl/debian/rules Sat Dec  1 12:42:05 2007
@@ -1,0 +1,54 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This is the debhelper compatibility version to use.
+# export DH_COMPAT=4
+
+PACKAGE=`pwd | sed -e "s/.*\/\\(.*\\)-.*/\\1/"`
+
+
+build:
+	dh_testdir
+	# Add here commands to compile the package.
+	perl Makefile.PL verbose INSTALLDIRS=vendor
+clean:
+	dh_testdir
+	dh_testroot
+
+	-$(MAKE) clean
+	rm -f Makefile.old
+	dh_clean
+
+install:
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	$(MAKE) PREFIX=$(CURDIR)/debian/$(PACKAGE)/usr OPTIMIZE="-O2 -g -Wall" test install
+	-find $(CURDIR)/debian -type d | xargs rmdir -p --ignore-fail-on-non-empty
+
+binary-arch:;
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installdocs
+	dh_installman
+	dh_installexamples
+	dh_installchangelogs ChangeLog
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_perl
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure

Propchange: trunk/libxml-xslt-perl/debian/rules
------------------------------------------------------------------------------
    svn:executable = *

Added: trunk/libxml-xslt-perl/debian/watch
URL: http://svn.debian.org/wsvn/trunk/libxml-xslt-perl/debian/watch?rev=10585&op=file
==============================================================================
--- trunk/libxml-xslt-perl/debian/watch (added)
+++ trunk/libxml-xslt-perl/debian/watch Sat Dec  1 12:42:05 2007
@@ -1,0 +1,2 @@
+version=2
+http://www.cpan.org/modules/by-module/XML/XML-XSLT-([0-9].*)\.tar.gz

Modified: trunk/libxml-xslt-perl/xslt-parser
URL: http://svn.debian.org/wsvn/trunk/libxml-xslt-perl/xslt-parser?rev=10585&op=diff
==============================================================================
--- trunk/libxml-xslt-perl/xslt-parser (original)
+++ trunk/libxml-xslt-perl/xslt-parser Sat Dec  1 12:42:05 2007
@@ -1,106 +1,61 @@
-#!/usr/local/bin/perl -w
+#!/usr/bin/perl -w
 
 # $Id: xslt-parser,v 1.9 2001/03/01 05:22:45 hexmode Exp $
 
-use strict;
 use XML::XSLT;
-use Getopt::Std;
-
-=head1 NAME
-
-xslt-parser - XSLT transformations
-
-=head1 SYNOPSIS
-
-xslt-parser [options] <project>
-
-=head1 DESCRIPTION
-
-xslt-parser performs stylesheet transformations.
-
-When given a project name, it appends `.xsl' for the XSLT stylesheet
-and `.xml' for the XML file to apply the stylesheet to and performs the
-transformation using the XML::XSLT perl module.
-
-=head1 OPTIONS
-
-=over 4
-
-=item -c
-
-Pass through HTML::Clean.  You must have HTML::Clean installed.
-
-=item -d
-
-Turns debugging on.  This can produce a lot of noise.
-
-=item -n
-
-NoWeb.  You can use xslt-parser as a CGI script.  With this option,
-it will not output the headers that are usually needed.
-
-=item -s <file>
-
-Specify a seperate different stylesheet.  Usually, xslt-parser will
-simply append `.xsl' to the project name to get the stylesheet.  A
-different stylesheet can be specified using this option.
-
-=head1 AUTHORS
-
-Geert Josten <gjosten at sci.kun.nl>,
-Mark A. Hershberger <mah at everybody.org>
-
-=head1 SEE ALSO
-
-L<XML::XSLT>
-
-The w3.org XSLT recommendation at L<http://www.w3.org/TR/xslt>
-
-=cut
-
-my %opt;
-my $usage = "Usage: $0 [options] <project>
-
-  -d	     turn debugging mode on
-  -n	     don't print content-type
-  -s <file>  use <file> instead of <project>.xsl as template
-  -w	     turns warnings on\n";
-getopts('cdnws:h', \%opt) || die $usage;
-
-die $usage if $opt{h};
 
 ## global vars ##
-my $noweb = $opt{n} || 0;
-my $debug = $opt{d} || 0;
-my $warnings = $opt{w} || 0;
-my $project = shift || die $usage;
-my $xslfile = $opt{'s'} || "$project.xsl";
-my $xmlfile = $project;
+my $noweb = ""; # False #
+my $debug = ""; # False #
+my $warnings = "Active";
+my $project = "";
+my $xslfile = "";
+my $xmlfile = "";
 
-my $xslt = XML::XSLT->new (Source   => $xslfile,
-			   debug    => $debug,
-			   warnings => $debug);
+&process_arguments (@ARGV);
+print $/ if $debug;
 
-if (! -f $xslfile) {
-  die "$xslfile does not exist.";
-}
+my $XSLTparser = XML::XSLT->new ($xslfile, "FILE", debug => $debug, warnings => $warnings);
+$XSLTparser->transform_document ($xmlfile, "FILE");
+print "Content-type: text/html$/$/" unless $noweb;
+$XSLTparser->print_result();
 
-if (! -f $xmlfile) {
-  $xmlfile .= ".xml";
-  if (! -f $xmlfile) {
-    die "$xmlfile does not exist."
+exit;
+
+
+sub process_arguments {
+  my @argv = @_;
+  if (@argv) {
+    while ((@argv > 1) && ($argv[0] =~ /^\-/)) {
+      my $param = shift @argv;
+
+      $debug = "active" if ($param =~ /^\-d/i);
+      $noweb = "active" if ($param =~ /^\-n/i);
+      $warnings = "active" if ($param =~ /^\-w/i);
+      if (($param =~ /^\-s/i) && ((@argv > 1) && ($argv[0] !~ /^\-/))) {
+        $param = shift (@argv);
+        $xslfile = $param;
+      }
+
+      $noweb = "" if $debug;
+      $warnings = "" if $debug;
+
+    }
+
+    print "Content-type: text/html$/$/" if $debug;
+    print "Debug   : \"",$debug,"\"$/NoWeb   : \"$noweb\"$/Warnings: \"",$warnings,"\"$/" if $debug;
+
+    if (@argv && ($argv[0] !~ /^\-/)) {
+      $project = shift (@argv);
+      $xmlfile = "$project.xml";
+      $xslfile = "$project.xsl" unless $xslfile;
+      die "Error: could not open $xmlfile, make sure it exists.$/" if (! (-f $xmlfile));
+      die "Error: could not open $xslfile, make sure it exists.$/" if (! (-f $xslfile));
+    } else {
+      die "Error: no project specified, give a name of a project.$/";
+    }
+    print "Project : \"",$project,"\"$/  XML-file: \"$xmlfile\"$/  XSL-file: \"$xslfile\"$/" if $debug;
+  } else {
+    die "Usage: $0 [options] <project>$/$/  -d[ebug]\t\tturn debugging mode on$/  -n[oweb]\t\tdon't print content-type$/  -s[tylesheet] <file>\tuse <file> instead of <project>.xsl as template$/  -w[arnings]\t\tturns warnings on$/";
   }
 }
-
-print STDERR qq{Debug   : "$debug"
-NoWeb   : "$noweb"
-Warnings: "$warnings"
-Project : "$project"
-XML-file: "$xmlfile"
-XSL-file: "$xslfile"
-} if $debug;
-
-print $xslt->serve(Source       => $xmlfile,
-		   clean        => $opt{c},
-		   http_headers => ! $noweb);
-




More information about the Pkg-perl-cvs-commits mailing list