summaryrefslogtreecommitdiff
path: root/Debian/Debhelper
diff options
context:
space:
mode:
Diffstat (limited to 'Debian/Debhelper')
-rw-r--r--Debian/Debhelper/Dh_Getopt.pm6
-rw-r--r--Debian/Debhelper/Sequence/python_support.pm15
2 files changed, 21 insertions, 0 deletions
diff --git a/Debian/Debhelper/Dh_Getopt.pm b/Debian/Debhelper/Dh_Getopt.pm
index 55e37fd2..77e4a723 100644
--- a/Debian/Debhelper/Dh_Getopt.pm
+++ b/Debian/Debhelper/Dh_Getopt.pm
@@ -68,6 +68,11 @@ sub AddIgnore { my($option,$file)=@_;
$options{IGNORE}->{$file}=1;
}
+# Add an item to the with list.
+sub AddWith { my($option,$value)=@_;
+ push @{$options{WITH}},$value;
+}
+
# This collects non-options values.
sub NonOption {
push @{$options{ARGV}}, @_;
@@ -180,6 +185,7 @@ sub parseopts {
"after=s" => \$options{AFTER},
"before=s" => \$options{BEFORE},
"remaining" => \$options{REMAINING},
+ "with=s" => \&AddWith,
"<>" => \&NonOption,
);
diff --git a/Debian/Debhelper/Sequence/python_support.pm b/Debian/Debhelper/Sequence/python_support.pm
new file mode 100644
index 00000000..3d03ebb3
--- /dev/null
+++ b/Debian/Debhelper/Sequence/python_support.pm
@@ -0,0 +1,15 @@
+#!/usr/bin/perl
+# debhelper sequence file for python-support
+
+use warnings;
+use strict;
+use Debian::Debhelper::Dh_Lib;
+
+# Test if dh_pysupport is available before inserting it.
+# (This would not be needed if this file was contained in the python-support
+# package.)
+if (-x "/usr/bin/dh_pysupport") {
+ insert_after("dh_perl", "dh_pysupport");
+}
+
+1