summaryrefslogtreecommitdiff
path: root/morphlib
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2011-11-03 16:22:40 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2011-11-03 16:22:40 +0000
commit7823b58d77f3d103a203afcbe6cbdef1fe41f92a (patch)
treec324de34fe7fb09d02c2cbc18d7567229b5f9ab1 /morphlib
parent95467d448655d42998e5a418c75a6e7cc8317361 (diff)
downloadmorph-7823b58d77f3d103a203afcbe6cbdef1fe41f92a.tar.gz
Add build-depends to chunk morphs
Diffstat (limited to 'morphlib')
-rw-r--r--morphlib/morphology.py4
-rw-r--r--morphlib/morphology_tests.py4
2 files changed, 8 insertions, 0 deletions
diff --git a/morphlib/morphology.py b/morphlib/morphology.py
index 20fcbce0..4c8ca61c 100644
--- a/morphlib/morphology.py
+++ b/morphlib/morphology.py
@@ -56,6 +56,10 @@ class Morphology(object):
return self._dict['sources']
@property
+ def build_depends(self):
+ return self._dict['build-depends']
+
+ @property
def build_system(self):
return self._dict.get('build-system', None)
diff --git a/morphlib/morphology_tests.py b/morphlib/morphology_tests.py
index 24e24c80..36daa11f 100644
--- a/morphlib/morphology_tests.py
+++ b/morphlib/morphology_tests.py
@@ -37,6 +37,9 @@ class MorphologyTests(unittest.TestCase):
"name": "hello",
"kind": "chunk",
"description": "desc",
+ "build-depends": [
+ "devel"
+ ],
"build-system": "autotools",
"max-jobs": "42",
"configure-commands": ["./configure"],
@@ -48,6 +51,7 @@ class MorphologyTests(unittest.TestCase):
self.assertEqual(morph.kind, 'chunk')
self.assertEqual(morph.description, 'desc')
self.assertEqual(morph.filename, 'mockfile')
+ self.assertEqual(morph.build_depends, ['devel'])
self.assertEqual(morph.build_system, 'autotools')
self.assertEqual(morph.max_jobs, 42)
self.assertEqual(morph.configure_commands, ['./configure'])