comparison recipes/kde/enterprise/branch_4/kdepim.py @ 316:ff24648050cf

Copy the enterprise 4 packagers to the refactored kde enterprise packagers and adapt them to the new base classes. Only kde_l10n and kdepim are needed. The other packages can be handled by recipes/kde/enterprise/generic.py with suitable configuration.
author Bernhard Herzog <bh@intevation.de>
date Thu, 03 Dec 2009 11:23:00 +0000
parents
children cb006b23b1a7
comparison
equal deleted inserted replaced
315:57034905ac4c 316:ff24648050cf
1 # Copyright (C) 2007, 2008, 2009 by Intevation GmbH
2 # Authors:
3 # Bernhard Herzog <bh@intevation.de>
4 #
5 # This program is free software under the GPL (>=v2)
6 # Read the file COPYING coming with the software for details.
7
8 """Build kdepim debian packages from the kdepim/enterprise4 branch.
9 """
10
11 import os
12
13 import treepkg.util
14
15 import recipes.kde.enterprise.generic as generic
16
17
18 class SourcePackager(generic.BaseSourcePackager):
19
20 def update_version_numbers(self, pkgbasedir):
21 """Overrides the inherited method to update version numbers in the code
22 """
23 versionstring = "(enterprise4 %s)" % self.enterprise_version
24 failed = []
25 for versionfile in ["kaddressbook/kabcore.cpp",
26 "kmail/kmversion.h",
27 "kontact/src/main.cpp",
28 "korganizer/version.h"]:
29 if not treepkg.util.replace_in_file(os.path.join(pkgbasedir,
30 versionfile),
31 "\(enterprise4 ([^)]*)\)",
32 versionstring):
33 failed.append(versionfile)
34 if failed:
35 raise RuntimeError("kdepim: failed to update version numbers in %s"
36 % (", ".join(failed),))
37
38
39 class RevisionPackager(generic.RevisionPackager):
40
41 source_packager_cls = SourcePackager
42
43
44 class PackageTrack(generic.PackageTrack):
45
46 revision_packager_cls = RevisionPackager
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)