[libdancer2-perl] 01/10: Update repackaging framework.
gregor herrmann
gregoa at debian.org
Sun Dec 15 16:19:41 UTC 2013
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libdancer2-perl.
commit 63ff6102b60055132549e60494eae65747b91632
Author: gregor herrmann <gregoa at debian.org>
Date: Sun Dec 15 17:00:48 2013 +0100
Update repackaging framework.
Starting with 0.11, script/dancer2 doesn't embedd files; but we want to
remove the minified jQuery copy.
---
debian/copyright | 5 +----
debian/prune.pl | 33 ---------------------------------
debian/repack.local | 5 ++---
3 files changed, 3 insertions(+), 40 deletions(-)
diff --git a/debian/copyright b/debian/copyright
index cf8f704..c4742b8 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -3,10 +3,7 @@ Upstream-Name: Dancer
Source: https://metacpan.org/release/Dancer2/
Upstream-Contact: Alexis Sukrieh <sukria at sukria.net>
Comment: The upstream sources were repackaged in order to:
- (1) not ship uuencoded images embedded in the dancer script
- this would violate the requirement to ship the preferred form for
- modifications
- (2) make use of packaged jquery.js by default
+ drop the minified jQuery convenience copy
.
The +dfsg tarball can be created using the repack.sh script (via
repack.stub) and is automatically run on upgrade by uscan.
diff --git a/debian/prune.pl b/debian/prune.pl
deleted file mode 100644
index 92d3373..0000000
--- a/debian/prune.pl
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/perl
-
-use warnings;
-use strict;
-
-s/(?<="jquery.js" => )FILE/\\\&link_jquery/;
-
-print <<'EOT' if /^sub jquery_minified/;
-sub link_jquery {
- my $path = shift;
-
- my $target = '/usr/share/javascript/jquery/jquery.js';
-
- if ( -e $target ) {
- symlink( $target, $path ) or die "symlink($target, $path): $!\n";
- }
- else {
- # fallback to the embedded copy
- jquery_minified($path);
- }
-}
-
-EOT
-
-print $_
- if not /^sub write_bg/ .. /^\}/
- and not /^sub write_logo/ .. /\}/
- and not /^sub write_favicon/ .. /\}/
- and not /write_bg/
- and not /write_logo/
- and not /write_favicon/
- and not /ajax.googleapis.com/
- and not /Grab Google/;
diff --git a/debian/repack.local b/debian/repack.local
index 1865c42..7e26154 100644
--- a/debian/repack.local
+++ b/debian/repack.local
@@ -1,3 +1,2 @@
-perl -wn $MYORIGPWD/debian/prune.pl < script/dancer2 > script/dancer2.pruned
-
-mv script/dancer2.pruned script/dancer2
+MANIFEST=1
+rm share/skel/public/javascripts/jquery.js
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdancer2-perl.git
More information about the Pkg-perl-cvs-commits
mailing list