This seems to do most of work and just requires
%: dh $@ --buildsystem=bake
in debian/rules. The main issue is I can't seem to know the 'destdir' at configure time which is what Bake currently expects..
# A debhelper build system class for handling Bake based projects.
package Debian::Debhelper::Buildsystem::bake;
use strict; use base 'Debian::Debhelper::Buildsystem';
sub DESCRIPTION { "Bake (Recipe)" }
sub check_auto_buildable { my $this=shift; return (-e $this->get_sourcepath("Recipe")) ? 1 : 0; }
sub new { my $class=shift; my $this=$class->SUPER::new(@_); $this->enforce_in_source_building(); return $this; }
sub configure { my $this=shift; my $destdir=shift;
# Standard set of options for configure. my @opts; # FIXME: Need to know the destdir at compile time # push @opts, "install-directory=$destdir";
$this->doit_in_sourcedir("bake", "--configure", @opts, @_); }
sub build { my $this=shift; $this->doit_in_sourcedir("bake", @_); }
sub test { my $this=shift; $this->doit_in_sourcedir("bake", "test", @_); }
sub install { my $this=shift; my $destdir=shift; $this->doit_in_sourcedir("bake", "install", @_); }
sub clean { my $this=shift; $this->doit_in_sourcedir("bake", "clean", @_); $this->doit_in_sourcedir("bake", "--unconfigure", @_); }
1
This seems to do most of work and just requires
%:
dh $@ --buildsystem=bake
in debian/rules. The main issue is I can't seem to know the 'destdir' at configure time which is what Bake currently expects..
# A debhelper build system class for handling Bake based projects.
package Debian: :Debhelper: :Buildsystem: :bake;
use strict; :Debhelper: :Buildsystem' ;
use base 'Debian:
sub DESCRIPTION {
"Bake (Recipe)"
}
sub check_auto_ buildable { get_sourcepath( "Recipe" )) ? 1 : 0;
my $this=shift;
return (-e $this->
}
sub new { class-> SUPER:: new(@_) ; >enforce_ in_source_ building( );
my $class=shift;
my $this=$
$this-
return $this;
}
sub configure {
my $this=shift;
my $destdir=shift;
# Standard set of options for configure. directory= $destdir" ;
my @opts;
# FIXME: Need to know the destdir at compile time
# push @opts, "install-
$this- >doit_in_ sourcedir( "bake", "--configure", @opts, @_);
}
sub build { >doit_in_ sourcedir( "bake", @_);
my $this=shift;
$this-
}
sub test { >doit_in_ sourcedir( "bake", "test", @_);
my $this=shift;
$this-
}
sub install { >doit_in_ sourcedir( "bake", "install", @_);
my $this=shift;
my $destdir=shift;
$this-
}
sub clean { >doit_in_ sourcedir( "bake", "clean", @_); >doit_in_ sourcedir( "bake", "--unconfigure", @_);
my $this=shift;
$this-
$this-
}
1