r50268 - in /trunk/libperl-apireference-perl/debian: ./ changelog compat control copyright regenerate.pl repack.local repack.stub rules watch

ryan at users.alioth.debian.org ryan at users.alioth.debian.org
Tue Jan 5 18:36:27 UTC 2010


Author: ryan
Date: Tue Jan  5 18:36:21 2010
New Revision: 50268

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

Added:
    trunk/libperl-apireference-perl/debian/
    trunk/libperl-apireference-perl/debian/changelog
    trunk/libperl-apireference-perl/debian/compat
    trunk/libperl-apireference-perl/debian/control
    trunk/libperl-apireference-perl/debian/copyright
    trunk/libperl-apireference-perl/debian/regenerate.pl
    trunk/libperl-apireference-perl/debian/repack.local
    trunk/libperl-apireference-perl/debian/repack.stub
    trunk/libperl-apireference-perl/debian/rules   (with props)
    trunk/libperl-apireference-perl/debian/watch

Added: trunk/libperl-apireference-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libperl-apireference-perl/debian/changelog?rev=50268&op=file
==============================================================================
--- trunk/libperl-apireference-perl/debian/changelog (added)
+++ trunk/libperl-apireference-perl/debian/changelog Tue Jan  5 18:36:21 2010
@@ -1,0 +1,5 @@
+libperl-apireference-perl (0.03-1) UNRELEASED; urgency=low
+
+  * Initial Release.
+
+ -- Ryan Niebur <ryan at debian.org>  Tue, 5 Jan 2010 08:09:41 -0800

Added: trunk/libperl-apireference-perl/debian/compat
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libperl-apireference-perl/debian/compat?rev=50268&op=file
==============================================================================
--- trunk/libperl-apireference-perl/debian/compat (added)
+++ trunk/libperl-apireference-perl/debian/compat Tue Jan  5 18:36:21 2010
@@ -1,0 +1,1 @@
+7

Added: trunk/libperl-apireference-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libperl-apireference-perl/debian/control?rev=50268&op=file
==============================================================================
--- trunk/libperl-apireference-perl/debian/control (added)
+++ trunk/libperl-apireference-perl/debian/control Tue Jan  5 18:36:21 2010
@@ -1,0 +1,28 @@
+Source: libperl-apireference-perl
+Section: perl
+Priority: optional
+Build-Depends: debhelper (>= 7)
+Build-Depends-Indep: perl (>= 5.10.1), libclass-xsaccessor-perl (>= 1.05)
+Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
+Uploaders: Ryan Niebur <ryan at debian.org>
+Standards-Version: 3.8.3
+Homepage: http://search.cpan.org/dist/Perl-APIReference/
+Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libperl-apireference-perl/
+Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libperl-apireference-perl/
+
+Package: libperl-apireference-perl
+Architecture: all
+Depends: ${perl:Depends}, ${misc:Depends}, perl (>= 5.10.1),
+  libclass-xsaccessor-perl (>= 1.05)
+Description: Programmatically query the perlapi
+ Perl::APIReference allows accessing the perlapi documentation for multiple
+ releases of perl as an index (a hash).
+ .
+ Currently, the stable releases perl 5.10.1, 5.10.0, 5.8.0-9, and 5.6.0-2 are
+ supported. To add support for another release, simply send me the release's
+ perlapi.pod via email or via an RT ticket and I'll add it in the next
+ release.
+ .
+ Additionally, the development releases 5.11.0-2 are included.
+ .
+ This description was automagically extracted from the module by dh-make-perl.

Added: trunk/libperl-apireference-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libperl-apireference-perl/debian/copyright?rev=50268&op=file
==============================================================================
--- trunk/libperl-apireference-perl/debian/copyright (added)
+++ trunk/libperl-apireference-perl/debian/copyright Tue Jan  5 18:36:21 2010
@@ -1,0 +1,42 @@
+Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=59
+Maintainer: Steffen Mueller <smueller at cpan.org>
+Source: http://search.cpan.org/dist/Perl-APIReference/
+Name: Perl-APIReference
+Disclaimer: This copyright info was automatically extracted 
+ from the perl module. It may not be accurate, so you better 
+ check the module sources in order to ensure the module for its 
+ inclusion in Debian or for general legal information. Please, 
+ if licensing information is incorrectly generated, file a bug 
+ on dh-make-perl.
+ NOTE: Don't forget to remove this disclaimer once you are happy
+ with this file.
+
+Files: *
+Copyright: Steffen Mueller <smueller at cpan.org>
+License: unparsable
+
+Files: debian/*
+Copyright: 2010, Ryan Niebur <ryan at debian.org>
+License: unparsable or Artistic or GPL-1+
+
+License: unparsable
+ No known license could be automatically determined for this module.
+ If this module conforms to a commonly used license, please report this
+ as a bug in dh-make-perl. In any case, please find the proper license
+ and fix this file!
+
+License: Artistic
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the Artistic License, which comes with Perl.
+ .
+ On Debian GNU/Linux systems, the complete text of the Artistic License
+ can be found in `/usr/share/common-licenses/Artistic'
+
+License: GPL-1+
+ 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; either version 1, or (at your option)
+ any later version.
+ .
+ On Debian GNU/Linux systems, the complete text of the GNU General
+ Public License can be found in `/usr/share/common-licenses/GPL'

Added: trunk/libperl-apireference-perl/debian/regenerate.pl
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libperl-apireference-perl/debian/regenerate.pl?rev=50268&op=file
==============================================================================
--- trunk/libperl-apireference-perl/debian/regenerate.pl (added)
+++ trunk/libperl-apireference-perl/debian/regenerate.pl Tue Jan  5 18:36:21 2010
@@ -1,0 +1,89 @@
+#!/usr/bin/perl
+
+use lib 'lib';
+use Perl::APIReference;
+use Perl::APIReference::Generator;
+
+use strict;
+use warnings;
+
+my $mode;
+
+if($ARGV[0] && $ARGV[0] =~ /clean/) {
+  $mode = "clean";
+} else {
+  $mode = "generate";
+}
+
+my($clean, $generate);
+eval "\$$mode = 1;";
+
+sub pad_with_zeros {
+  my $num = shift;
+  while(length($num) < 3) {
+    $num = "0" . $num;
+  }
+  return $num;
+}
+
+sub sortable {
+  my $v = shift;
+  $v =~ s/([0-9]+)\.([0-9]+)\.([0-9]+)/$1 . "." . pad_with_zeros($2) . pad_with_zeros($3)/e;
+  return $v;
+}
+
+sub my_unlink {
+  my $f = shift;
+  return if (!-e $f);
+  print "  Removing: $f\n";
+  unlink($f);
+}
+
+sub my_system {
+  print "  Running: @_\n";
+  system(@_);
+  die("Command failed.") if(($? >> 8) != 0);
+}
+
+opendir D, 'data';
+my @list = readdir D;
+ at list = grep /perlapi/, @list;
+ at list = grep /bz2/, @list;
+map {s/perlapi.(.*).pod.bz2/$1/} @list;
+print "Found these versions:\n";
+ at list = sort {sortable($a) <=> sortable($b)} @list;
+foreach my $v(@list) {
+  print "  $v\n";
+}
+foreach my $v(@list) {
+  print "Processing: $v\n";
+  my $bz = "./data/perlapi." . $v . ".pod.bz2";
+  my $t = "./data/perlapi." . $v . ".pod";
+  my $r = "./lib/Perl/APIReference/V" . $v . ".pm";
+  my $pv = "$v";
+  $r =~ s/([0-9]+)\.([0-9]+)\.([0-9]+)/$1 . "_" . pad_with_zeros($2) . "_" . pad_with_zeros($3)/e;
+  $pv =~ s/([0-9]+)\.([0-9]+)\.([0-9]+)/$1 . "." . pad_with_zeros($2) . (($3 > 0) ? pad_with_zeros($3) : "")/e;
+  my $br = "$r";
+  $br =~ s/.*\///g;
+  if($clean) {
+    my_unlink $t;
+    my_unlink $r;
+    my_unlink $br;
+  }
+  if($generate) {
+    my_system("bunzip2", "-f", "-k", $bz);
+    my_system("perl", "-I", "lib", "./author_scripts/generate.pl", $t, $pv);
+    my_system("mv", $br, $r);
+  }
+}
+
+my $file = "debian/regenerated";
+
+if($clean) {
+  unlink($file);
+}
+
+if($generate) {
+  open F, ">", $file;
+  close F;
+}

Added: trunk/libperl-apireference-perl/debian/repack.local
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libperl-apireference-perl/debian/repack.local?rev=50268&op=file
==============================================================================
--- trunk/libperl-apireference-perl/debian/repack.local (added)
+++ trunk/libperl-apireference-perl/debian/repack.local Tue Jan  5 18:36:21 2010
@@ -1,0 +1,3 @@
+MANIFEST=1
+rm ./lib/Perl/APIReference/V*.pm
+

Added: trunk/libperl-apireference-perl/debian/repack.stub
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libperl-apireference-perl/debian/repack.stub?rev=50268&op=file
==============================================================================
--- trunk/libperl-apireference-perl/debian/repack.stub (added)
+++ trunk/libperl-apireference-perl/debian/repack.stub Tue Jan  5 18:36:21 2010
@@ -1,0 +1,82 @@
+#!/bin/sh
+
+: <<=cut
+=pod
+
+=head1 NAME
+
+repack.stub - script to repack upstream tarballs from uscan
+
+=head1 INSTRUCTIONS
+
+put this in debian/repack.stub and add "debian sh debian/repack.stub" to
+the end of the line in debian/watch. you will also need to add a version
+mangle to debian/watch.
+
+then create a debian/repack.local. this is a shell script that is
+sources under "set -e", so be careful to check returns codes.
+
+=head1 FUNCTIONS
+
+=over 4
+
+=item rm
+
+rm is replaced by a function that does some magic ("rm -rv" by default), but also changes MANIFEST if $MANIFEST is 1
+
+=item mv
+
+mv is replaced by a function that just does mv (by default), but also changes MANIFEST if $MANIFEST is 1
+
+=item requires_version
+
+requires_version is there for future usage for requiring certain versions of the script
+
+=back
+
+=head1 VARIABLES
+
+=over 4
+
+=item SUFFIX
+
+defaults to +dfsg
+
+what to append to the upstream version
+
+=item RM_OPTS
+
+defaults to -vrf
+
+options to pass to rm
+
+=item MANIFEST
+
+defaults to 0, set to 1 to turn on.
+
+this will manipulate MANIFEST files in CPAN tarballs.
+
+=item UP_BASE
+
+this is the directory where the upstream source is.
+
+=back
+
+=cut
+
+if [ -z "$REPACK_SH" ]; then
+    if [ -f ../../scripts/repack.sh ]; then
+        REPACK_SH=../../scripts/repack.sh
+    fi
+    if [ -z "$REPACK_SH" ] && which repack.sh > /dev/null; then
+        REPACK_SH=$(which repack.sh)
+    fi
+fi
+
+if [ ! -f "$REPACK_SH" ]; then
+    echo "Couldn't find a repack.sh. please put it in your PATH, put it at ../../scripts/repack.sh, or put it somewhere else and set the REPACK_SH variable"
+    echo "You can get it from http://svn.debian.org/viewsvn/pkg-perl/scripts/repack.sh"
+    exit 1
+fi
+
+exec "$REPACK_SH" "$@"

Added: trunk/libperl-apireference-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libperl-apireference-perl/debian/rules?rev=50268&op=file
==============================================================================
--- trunk/libperl-apireference-perl/debian/rules (added)
+++ trunk/libperl-apireference-perl/debian/rules Tue Jan  5 18:36:21 2010
@@ -1,0 +1,16 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@
+
+debian/regenerated: debian/regenerate.pl
+	debian/regenerate.pl
+
+override_dh_auto_configure: debian/regenerated
+	@test -f lib/Perl/APIReference/V5_010_001.pm
+	dh_auto_configure
+
+override_dh_auto_clean:
+	dh_auto_clean
+	debian/regenerate.pl clean
+	@! test -f lib/Perl/APIReference/V5_010_001.pm

Propchange: trunk/libperl-apireference-perl/debian/rules
------------------------------------------------------------------------------
    svn:executable = *

Added: trunk/libperl-apireference-perl/debian/watch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libperl-apireference-perl/debian/watch?rev=50268&op=file
==============================================================================
--- trunk/libperl-apireference-perl/debian/watch (added)
+++ trunk/libperl-apireference-perl/debian/watch Tue Jan  5 18:36:21 2010
@@ -1,0 +1,3 @@
+version=3
+http://search.cpan.org/dist/Perl-APIReference/   .*/Perl-APIReference-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ debian sh debian/repack.stub
+




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