Your message dated Sun, 15 May 2011 01:40:22 +0200
with message-id <[email protected]>
and subject line Re: debhelper: scons buildsystem
has caused the Debian Bug report #538267,
regarding debhelper: scons buildsystem
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
538267: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=538267
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: debhelper
Version: 7.3.7
Severity: wishlist
Tags: patch
Several packages use SCons as default build system, so it could be a
good thing implementing a debhelper common buildsystem.
Attached patch implements it.
Regards,
--
. ''`. Luca Falavigna
: :' : Ubuntu MOTU Developer
`. `'` Debian Maintainer
`- GPG Key: 0x86BC2A50
diff --git a/Debian/Debhelper/Buildsystem/scons.pm
b/Debian/Debhelper/Buildsystem/scons.pm
new file mode 100644
index 0000000..e55f256
--- /dev/null
+++ b/Debian/Debhelper/Buildsystem/scons.pm
@@ -0,0 +1,40 @@
+# A debhelper build system class for handling SCons based projects.
+#
+# Copyright: © 2009 Luca Falavigna
+# License: GPL-2+
+
+package Debian::Debhelper::Buildsystem::scons;
+
+use strict;
+use File::Path;
+use base 'Debian::Debhelper::Buildsystem';
+
+sub DESCRIPTION {
+ "SCons (Sconstruct)"
+}
+
+sub check_auto_buildable {
+ my $this=shift;
+ return -e $this->get_sourcepath("Sconstruct");
+}
+
+sub new {
+ my $class=shift;
+ my $this=$class->SUPER::new(@_);
+ $this->enforce_in_source_building();
+ return $this;
+}
+
+sub build {
+ my $this=shift;
+ $this->doit_in_sourcedir("scons", @_);
+}
+
+sub clean {
+ my $this=shift;
+ $this->doit_in_sourcedir("scons", "-c", @_);
+ unlink($this->get_buildpath(".sconsign.dblite"));
+ rmtree($this->get_buildpath(".sconf_temp"));
+}
+
+1
diff --git a/Debian/Debhelper/Dh_Buildsystems.pm
b/Debian/Debhelper/Dh_Buildsystems.pm
index 4986267..89962b1 100644
--- a/Debian/Debhelper/Dh_Buildsystems.pm
+++ b/Debian/Debhelper/Dh_Buildsystems.pm
@@ -24,6 +24,7 @@ our @BUILDSYSTEMS = (
"perl_build",
"cmake",
"ant",
+ "scons",
);
my $opt_buildsys;
signature.asc
Description: OpenPGP digital signature
--- End Message ---
--- Begin Message ---
Re-thinking about this feature, I think it's useless to have it around,
as SCons is quite straightforward to launch anyway. Feel free to reopen
this bug if you really feel it's worth implement it.
--
.''`.
: :' : Luca Falavigna <[email protected]>
`. `'
`-
signature.asc
Description: OpenPGP digital signature
--- End Message ---