[game-data-packager] 01/01: ROTT: move contents of *.control* in YAML
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Thu Oct 8 09:40:10 UTC 2015
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 58714a95a2b528f3408515536d6b89d87f2f7497
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Thu Oct 8 11:37:38 2015 +0200
ROTT: move contents of *.control* in YAML
---
data/rott-extreme-data.control.in | 5 -----
data/rott-registered-data.control.in | 6 ------
data/rott.yaml | 8 +++++++-
doc/tags.txt | 1 +
game_data_packager/__init__.py | 5 ++++-
game_data_packager/build.py | 4 ++++
6 files changed, 16 insertions(+), 13 deletions(-)
diff --git a/data/rott-extreme-data.control.in b/data/rott-extreme-data.control.in
deleted file mode 100644
index 9e74abd..0000000
--- a/data/rott-extreme-data.control.in
+++ /dev/null
@@ -1,5 +0,0 @@
-Description: Extreme Rise of the Triad
- These are extra levels for "Rise of the Triad".
- This package was generated using the "game-data-packager" program.
- .
- To use this package, you must run "rott-commercial -filertl extreme.rtl"
diff --git a/data/rott-registered-data.control.in b/data/rott-registered-data.control.in
deleted file mode 100644
index d2b80f6..0000000
--- a/data/rott-registered-data.control.in
+++ /dev/null
@@ -1,6 +0,0 @@
-Description: Game data for Rise of the Triad: Dark War
- Rise of the Triad requires game data to play. This package contains
- the extra episodes from the commercial edition of Rise of the Triad
- and was generated using the "game-data-packager" program.
- .
- This doesn't include the shareware episode "The HUNT Begins".
diff --git a/data/rott.yaml b/data/rott.yaml
index ddd8490..22ef75a 100644
--- a/data/rott.yaml
+++ b/data/rott.yaml
@@ -20,7 +20,8 @@ packages:
copyright: © 1994 Apogee Software
# this shareware data are considered a as full game because
# it includes the HUNT Begin levels not present in the commercial game
-
+ description: |
+ Use the 'rott-shareware' command to play this game.
install:
- DEMO1_3.DMO
- DEMO2_3.DMO
@@ -35,6 +36,9 @@ packages:
rott-registered-data:
longname: "Rise of the Triad: Dark War"
+ description: |
+ This doesn't include the shareware episode "The HUNT Begins".
+ Use the 'rott-commercial' command to play this game.
debian:
depends: rott-data
url_misc: https://3drealms.com/catalog/rise-triad-dark-war_44/
@@ -51,6 +55,8 @@ packages:
rott-extreme-data:
expansion_for: rott-registered-data
longname: "Extreme Rise of the Triad"
+ description: |
+ Use the 'rott-commercial -filertl extreme.rtl' command to play this game.
install_to: usr/share/games/rott
install:
- EXTREME.RTL
diff --git a/doc/tags.txt b/doc/tags.txt
index aa4df5b..b5e92a5 100644
--- a/doc/tags.txt
+++ b/doc/tags.txt
@@ -22,6 +22,7 @@ wiki: string
packages:
<package>:
longname: string
+ description: string
wiki: string
aliases: list
engine: string
diff --git a/game_data_packager/__init__.py b/game_data_packager/__init__.py
index 21d685c..d803b8c 100644
--- a/game_data_packager/__init__.py
+++ b/game_data_packager/__init__.py
@@ -132,6 +132,9 @@ class GameDataPackage(object):
# 'data' / 'PWAD' / 'IWAD'
self.data_type = 'data'
+ # extra blurb of text added to .deb long description
+ self.description = None
+
# This optional value will overide the game global copyright
self.copyright = None
@@ -541,7 +544,7 @@ class GameData(object):
def _populate_package(self, package, d):
for k in ('expansion_for', 'expansion_for_ext', 'longname', 'symlinks', 'install_to',
- 'install_to_docdir', 'install_contents_of', 'debian',
+ 'install_to_docdir', 'install_contents_of', 'debian', 'description',
'rip_cd', 'architecture', 'aliases', 'better_version', 'langs',
'copyright', 'engine', 'lang', 'component', 'section',
'steam', 'gog', 'dotemu', 'origin', 'url_misc', 'wiki'):
diff --git a/game_data_packager/build.py b/game_data_packager/build.py
index a679c42..3e24cdb 100644
--- a/game_data_packager/build.py
+++ b/game_data_packager/build.py
@@ -1684,6 +1684,10 @@ class PackagingTask(object):
long_desc += ' It contains free game data and may be redistributed.\n'
long_desc += ' .\n'
+ if package.description:
+ for line in package.description.splitlines():
+ long_desc += (' ' + line.rstrip() + '\n .\n')
+
if self.game.genre:
long_desc += ' Genre: ' + self.game.genre + '\n'
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git
More information about the Pkg-games-commits
mailing list