This is an automated email from the git hooks/post-receive script. detiste-guest pushed a commit to branch master in repository game-data-packager.
commit 1d422732b3ffc63d33fd84c23bba62f2a47a9274 Author: Alexandre Detiste <[email protected]> Date: Wed Oct 14 10:06:20 2015 +0200 quake2: add support for build-depends, check for gcc & make --- data/lgeneral.yaml | 2 ++ data/quake2.yaml | 2 ++ game_data_packager/build.py | 10 ++++++++++ 3 files changed, 14 insertions(+) diff --git a/data/lgeneral.yaml b/data/lgeneral.yaml index 06fa3e6..244e8af 100644 --- a/data/lgeneral.yaml +++ b/data/lgeneral.yaml @@ -12,6 +12,8 @@ packages: lgeneral-data-nonfree: longname: Panzer General data for LGeneral install_to: usr/share/games/lgeneral + debian: + build-depends: lgc-pg # pg-data.tar.gz is not actually needed, but it's small, and putting it # in the .deb means we can easily repack it if lgc-pg changes # diff --git a/data/quake2.yaml b/data/quake2.yaml index 3b1cd7c..32e0dc9 100644 --- a/data/quake2.yaml +++ b/data/quake2.yaml @@ -367,6 +367,7 @@ packages: id: 2330 path: "common/Quake 2/xatrix" debian: + build-depends: gcc, make provides: quake2-xatrix conflicts: quake2-xatrix replaces: quake2-xatrix @@ -421,6 +422,7 @@ packages: id: 2340 path: "common/Quake 2/rogue" debian: + build-depends: gcc, make provides: quake2-rogue conflicts: quake2-rogue replaces: quake2-rogue diff --git a/game_data_packager/build.py b/game_data_packager/build.py index 3f6fd8f..9054626 100644 --- a/game_data_packager/build.py +++ b/game_data_packager/build.py @@ -2065,6 +2065,16 @@ class PackagingTask(object): package.name, self.get_architecture()) possible.discard(package) + for package in set(possible): + if 'build-depends' in package.debian: + for tool in package.debian['build-depends'].split(','): + tool = tool.strip() + if not which(tool): + logger.error('tool "%s" is needed to build "%s"' % + (tool, package.name)) + possible.discard(package) + self.missing_tools.add(tool) + logger.debug('possible packages: %r', set(p.name for p in possible)) if not possible: raise NoPackagesPossible() -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

