Merge lp:~broder/ubuntu/natty/gst-plugins-base0.10/perlsectomy into lp:ubuntu/natty/gst-plugins-base0.10

Proposed by Evan Broder
Status: Merged
Merged at revision: 41
Proposed branch: lp:~broder/ubuntu/natty/gst-plugins-base0.10/perlsectomy
Merge into: lp:ubuntu/natty/gst-plugins-base0.10
Diff against target: 188 lines (+108/-4)
10 files modified
.pc/.quilt_patches (+1/-0)
.pc/.quilt_series (+1/-0)
.pc/100_no_file-basename.patch/tools/gst-visualise-m.m (+79/-0)
.pc/applied-patches (+1/-0)
debian/changelog (+9/-0)
debian/control.in (+2/-1)
debian/patches/100_no_file-basename.patch (+13/-0)
debian/patches/series (+1/-0)
debian/rules (+1/-1)
tools/gst-visualise-m.m (+0/-2)
To merge this branch: bzr merge lp:~broder/ubuntu/natty/gst-plugins-base0.10/perlsectomy
Reviewer Review Type Date Requested Status
Martin Pitt Pending
Review via email: mp+40503@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file '.pc/.quilt_patches'
2--- .pc/.quilt_patches 1970-01-01 00:00:00 +0000
3+++ .pc/.quilt_patches 2010-11-10 07:18:48 +0000
4@@ -0,0 +1,1 @@
5+debian/patches
6
7=== added file '.pc/.quilt_series'
8--- .pc/.quilt_series 1970-01-01 00:00:00 +0000
9+++ .pc/.quilt_series 2010-11-10 07:18:48 +0000
10@@ -0,0 +1,1 @@
11+series
12
13=== added directory '.pc/100_no_file-basename.patch'
14=== added file '.pc/100_no_file-basename.patch/.timestamp'
15=== added directory '.pc/100_no_file-basename.patch/tools'
16=== added file '.pc/100_no_file-basename.patch/tools/gst-visualise-m.m'
17--- .pc/100_no_file-basename.patch/tools/gst-visualise-m.m 1970-01-01 00:00:00 +0000
18+++ .pc/100_no_file-basename.patch/tools/gst-visualise-m.m 2010-11-10 07:18:48 +0000
19@@ -0,0 +1,79 @@
20+#!/usr/bin/perl -w
21+
22+# launch a gst-launch pipeline to display a visualisation of the
23+# input audio.
24+# make use of default input srcs.
25+# visualisation plugin is specified on command line.
26+
27+### packages
28+
29+use File::Basename;
30+
31+
32+my (%pipes, %cfg);
33+
34+sub read_config
35+{
36+ my $config_file = `echo -n ~`."/.gst";
37+ if (-e $config_file)
38+ {
39+ open CONFIG, $config_file;
40+ while (<CONFIG>)
41+ {
42+ chomp;
43+ s/#.*//;
44+ s/\s+$//;
45+ next unless length;
46+ my ($var, $value) = split (/\s*=\s*/, $_, 2);
47+ $cfg{$var} = $value;
48+ }
49+ if (!($cfg{AUDIOSRC}))
50+ {
51+ print "Please add an AUDIOSRC to $config_file !\n";
52+ }
53+ if (!($cfg{VIDEOSINK}))
54+ {
55+ print "Please add a VIDEOSINK to $config_file !\n";
56+ }
57+ }
58+ else
59+ {
60+ print "No configuration file $config_file found. You might want to create one.\n";
61+ }
62+ if (!defined $cfg{AUDIOSRC}) { $cfg{AUDIOSRC} = "osssrc"; }
63+ if (!defined $cfg{VIDEOSINK}) { $cfg{VIDEOSINK} = "xvimagesink"; }
64+ if (!defined $cfg{CVS_PATH}) { $cfg{CVS_PATH} = `echo -n ~`."/gst/cvs"; }
65+}
66+
67+sub visualise(@)
68+{
69+ my $vis = $cfg{VISUALIZER};
70+ $vis = shift() if ($#_ != -1);
71+ $vis = "goom" unless $vis;
72+
73+ my $pipe;
74+ $pipe = $vis unless $pipe = $pipes{$vis};
75+
76+ $command = "gst-launch-@GST_MAJORMINOR@ $cfg{AUDIOSRC} ! $pipe ! { queue ! ffmpegcolorspace ! $cfg{VIDEOSINK} }";
77+ print "Running $command\n";
78+ system ("PATH=\$PATH:".$cfg{CVS_PATH}."/gstreamer/tools $command");
79+}
80+
81+### main
82+
83+read_config ();
84+
85+%pipes = (
86+ "goom", "goom",
87+ "chart", "audioconvert ! chart",
88+ "synaesthesia", "synaesthesia",
89+ "monoscope", "audioconvert ! monoscope"
90+);
91+
92+if ($#ARGV > 0) {
93+ print STDERR "Usage: gst-visualise [visualiser]\n";
94+ exit 1;
95+}
96+
97+visualise(@ARGV);
98+
99
100=== modified file '.pc/applied-patches'
101--- .pc/applied-patches 2010-11-02 08:44:13 +0000
102+++ .pc/applied-patches 2010-11-10 07:18:48 +0000
103@@ -1,2 +1,3 @@
104 10_gnome-vfs-dav-url.patch
105 99_ltmain_as-needed.patch
106+100_no_file-basename.patch
107
108=== modified file 'debian/changelog'
109--- debian/changelog 2010-11-02 08:44:13 +0000
110+++ debian/changelog 2010-11-10 07:18:48 +0000
111@@ -1,3 +1,12 @@
112+gst-plugins-base0.10 (0.10.30.4-1ubuntu1) natty; urgency=low
113+
114+ * debian/patches/100_no_file-basename.patch: gst-visualize-0.10 imports
115+ File::Basename but doesn't use it. Drop that import.
116+ * With that, this package no longer uses anything from perl or
117+ perl-modules, so drop the Perl dependency to perl-base.
118+
119+ -- Evan Broder <evan@ebroder.net> Tue, 09 Nov 2010 20:17:18 -0800
120+
121 gst-plugins-base0.10 (0.10.30.4-1) experimental; urgency=low
122
123 * New upstream pre-release:
124
125=== modified file 'debian/control.in'
126--- debian/control.in 2010-11-02 08:44:13 +0000
127+++ debian/control.in 2010-11-10 07:18:48 +0000
128@@ -1,7 +1,8 @@
129 Source: gst-plugins-base@GST_ABI@
130 Section: libs
131 Priority: optional
132-Maintainer: Maintainers of GStreamer packages <pkg-gstreamer-maintainers@lists.alioth.debian.org>
133+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
134+XSBC-Original-Maintainer: Maintainers of GStreamer packages <pkg-gstreamer-maintainers@lists.alioth.debian.org>
135 Uploaders: Loic Minier <lool@dooz.org>,
136 Sebastien Bacher <seb128@debian.org>,
137 Sebastian Dröge <slomo@debian.org>,
138
139=== added file 'debian/patches/100_no_file-basename.patch'
140--- debian/patches/100_no_file-basename.patch 1970-01-01 00:00:00 +0000
141+++ debian/patches/100_no_file-basename.patch 2010-11-10 07:18:48 +0000
142@@ -0,0 +1,13 @@
143+Index: gst-plugins-base0.10/tools/gst-visualise-m.m
144+===================================================================
145+--- gst-plugins-base0.10.orig/tools/gst-visualise-m.m 2010-11-09 20:15:33.565417497 -0800
146++++ gst-plugins-base0.10/tools/gst-visualise-m.m 2010-11-09 20:15:38.595099835 -0800
147+@@ -7,8 +7,6 @@
148+
149+ ### packages
150+
151+-use File::Basename;
152+-
153+
154+ my (%pipes, %cfg);
155+
156
157=== modified file 'debian/patches/series'
158--- debian/patches/series 2010-11-02 08:44:13 +0000
159+++ debian/patches/series 2010-11-10 07:18:48 +0000
160@@ -1,2 +1,3 @@
161 10_gnome-vfs-dav-url.patch
162 99_ltmain_as-needed.patch
163+100_no_file-basename.patch
164
165=== modified file 'debian/rules'
166--- debian/rules 2010-11-02 08:44:13 +0000
167+++ debian/rules 2010-11-10 07:18:48 +0000
168@@ -164,7 +164,7 @@
169 -rm -rf $(CURDIR)/fake-home
170
171 binary-post-install/$(gst_pkgname)-plugins-base-apps::
172- dh_perl
173+ dh_perl -d
174
175 DEB_DH_MAKESHLIBS_ARGS_$(gst_plugins_base_lib) += -X "/usr/lib/gstreamer-$(gst_abi)" -V $(gst_plugins_base_lib_dep) -- -c4
176 DEB_INSTALL_DOCS_ALL += debian/README.Debian NEWS
177
178=== modified file 'tools/gst-visualise-m.m'
179--- tools/gst-visualise-m.m 2005-12-17 18:56:55 +0000
180+++ tools/gst-visualise-m.m 2010-11-10 07:18:48 +0000
181@@ -7,8 +7,6 @@
182
183 ### packages
184
185-use File::Basename;
186-
187
188 my (%pipes, %cfg);
189

Subscribers

People subscribed via source and target branches

to all changes: