* dh_auto_*: Also support packages using Module::Build.
* dh_auto_*: Fix some calls to setup.py.
run and there are no packages of that type.
* dh_auto_configure: Set PERL_MM_USE_DEFAULT when configuring MakeMaker
packages to avoid interactive prompts.
+ * dh_auto_*: Also support packages using Module::Build.
+ * dh_auto_*: Fix some calls to setup.py.
-- Joey Hess <joeyh@debian.org> Thu, 24 Apr 2008 14:10:56 -0400
dh_auto_build is a debhelper program that tries to automatically
build a package. If a Makefile is found, this is done by running make (or
MAKE, if the environment variable is set).
-If there's a setup.py, it is run to build the package.
+If there's a setup.py, or Build.PL, it is run to build the package.
This is intended to work for about 90% of packages. If it doesn't work,
you're encoruaged to skip using dh_auto_build at all, and just run the
doit(exists $ENV{MAKE} ? $ENV{MAKE} : "make", @{$dh{U_PARAMS}});
}
elsif (-e "setup.py") {
- doit("python setup.py", "build", @{$dh{U_PARAMS}});
+ doit("python", "setup.py", "build", @{$dh{U_PARAMS}});
+}
+elsif (-e "Build.PL" && -e "Build") {
+ doit("perl", "Build", @{$dh{U_PARAMS}});
}
=head1 SEE ALSO
dh_auto_clean is a debhelper program that tries to automatically clean up
after a package build. If there's a Makefile and it contains a "distclean",
"realclean", or "clean" target, then this is done by running make (or MAKE,
-if the environment variable is set). If there is a setup.py, it is run to
-clean the package.
+if the environment variable is set). If there is a setup.py or Build.PL, it
+is run to clean the package.
This is intended to work for about 90% of packages. If it doesn't work, or
tries to use the wrong clean target, you're encoruaged to skip using
}
}
elsif (-e "setup.py") {
- doit("python setup.py", "clean", "-a", @{$dh{U_PARAMS}});
+ doit("python", "setup.py", "clean", "-a", @{$dh{U_PARAMS}});
+}
+elsif (-e "Build.PL" && -e "Build") {
+ doit("perl", "Build", "--allow_mb_mismatch", 1, "distclean", @{$dh{U_PARAMS}});
}
-
=head1 SEE ALSO
=head1 DESCRIPTION
dh_auto_configure is a debhelper program that tries to automatically
-configure a package prior to building. It looks for and runs
-a ./configure script, or Makefile.PL. A standard set of parameters is
-determined and passed to the program that is run. If no program to run
-is found, dh_auto_configure will exit without doing anything.
+configure a package prior to building. It looks for and runs a ./configure
+script, Makefile.PL, or Build.PL. A standard set of parameters is
+determined and passed to the program that is run. If no program to run is
+found, dh_auto_configure will exit without doing anything.
This is intended to work for about 90% of packages. If it doesn't work,
you're encoruaged to skip using dh_auto_configure at all, and just run
$ENV{PERL_MM_USE_DEFAULT}=1;
doit("perl", "Makefile.PL", "INSTALLDIRS=vendor", @{$dh{U_PARAMS}});
}
+elsif (-e "Build.PL") {
+ $ENV{PERL_MM_USE_DEFAULT}=1; # Module::Build can also use this.
+ doit("perl", "Build.PL", "installdirs=vendor", @{$dh{U_PARAMS}});
+}
=head1 SEE ALSO
dh_auto_install is a debhelper program that tries to automatically install
built files. If there's a Makefile and it contains a "install" target,
then this is done by running make (or MAKE, if the environment variable is
-set). If there is a setup.py, it is used.
+set). If there is a setup.py or Build.PL, it is used.
The files are installed into debian/<package>/ if there is only one binary
package to act on. In the multiple binary package case, the files are
}
}
elsif (-e "setup.py") {
- doit("python setup.py", "install",
+ doit("python", "setup.py", "install",
"--root=$destdir",
"--no-compile", "-O0",
@{$dh{U_PARAMS}});
}
-
+elsif (-e "Build.PL" && -e "Build") {
+ doit("perl", "Build", "install", "destdir=$destdir",
+ "create_packlist=0", @{$dh{U_PARAMS}});
+}
=head1 SEE ALSO