summaryrefslogtreecommitdiff
path: root/morphlib/buildsystem.py
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2012-04-19 17:34:10 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2012-04-23 15:47:19 +0000
commitee6bbaeb6648349ae62735df470e4c5e2ed1f28b (patch)
treee2e0db5bac5992a8fc0353eb1a102f567534e9e3 /morphlib/buildsystem.py
parent21954744ce1e1b17c26f5a1e8f04ceeb048ae033 (diff)
downloadmorph-ee6bbaeb6648349ae62735df470e4c5e2ed1f28b.tar.gz
buildsystem.py: Add support for generic Perl build system
Diffstat (limited to 'morphlib/buildsystem.py')
-rw-r--r--morphlib/buildsystem.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/morphlib/buildsystem.py b/morphlib/buildsystem.py
index ab12e730..f5eae027 100644
--- a/morphlib/buildsystem.py
+++ b/morphlib/buildsystem.py
@@ -150,10 +150,38 @@ class PythonDistutilsBuildSystem(BuildSystem):
return any(exists(x) for x in indicators)
+class PerlBuildSystem(BuildSystem):
+
+ '''The Perl build system.'''
+
+ name = 'perl'
+
+ def __init__(self):
+ self.configure_commands = [
+ 'perl Makefile.PL',
+ ]
+ self.build_commands = [
+ 'make',
+ ]
+ self.test_commands = [
+ ]
+ self.install_commands = [
+ 'make install',
+ ]
+
+ def used_by_project(self, exists):
+ indicators = [
+ 'Makefile.PL',
+ ]
+
+ return any(exists(x) for x in indicators)
+
+
build_systems = [
ManualBuildSystem(),
AutotoolsBuildSystem(),
PythonDistutilsBuildSystem(),
+ PerlBuildSystem(),
DummyBuildSystem(),
]