From 8c25991da46729bbf88ba3d1c1623ffcd16695f4 Mon Sep 17 00:00:00 2001 From: "Yaakov M. Nemoy" Date: Sun, 18 Jan 2009 21:40:52 -0500 Subject: Add build system annotation --- modules/darcs.py | 6 ++++++ modules/haskellport.py | 2 ++ 2 files changed, 8 insertions(+) (limited to 'modules') diff --git a/modules/darcs.py b/modules/darcs.py index 189da60..010cecc 100644 --- a/modules/darcs.py +++ b/modules/darcs.py @@ -85,6 +85,12 @@ class Darcs(RevisionControl): ''' return self.cfg['hackage_name'] + @property + def buildsystem(self): + return self.cfg['buildsystem'] + + def set_buildsystem(self, buildsystem): + self.cfg['buildsystem'] = buildsystem def set_current_src(self): '''sets the current internal state to reflect the current head diff --git a/modules/haskellport.py b/modules/haskellport.py index b585788..ba16d99 100644 --- a/modules/haskellport.py +++ b/modules/haskellport.py @@ -44,6 +44,7 @@ class HaskellPort(Port): ''' with pwd(self.pkg.dir): pkg_src = SourceBall('', sourceball) + pkg_src.cfg['buildsystem'] = 'cabal' name = pkg_src.name self.pkg.add_source(name) return self.close_later(pkg_src) @@ -56,6 +57,7 @@ class HaskellPort(Port): ''' with pwd(self.pkg.dir): pkg_src = Darcs(tgt, url, *args) + pkg_src.cfg['buildsystem'] = 'cabal' name = pkg_src.name self.pkg.add_source(name) return self.close_later(pkg_src) -- cgit