Merge lp:~hjd/widelands/use-bundled-fonts into lp:~widelands-dev/widelands/debian

Proposed by Hans Joachim Desserud
Status: Merged
Merged at revision: 28
Proposed branch: lp:~hjd/widelands/use-bundled-fonts
Merge into: lp:~widelands-dev/widelands/debian
Diff against target: 82 lines (+5/-37)
3 files modified
debian/control (+1/-3)
debian/copyright (+1/-1)
debian/rules (+3/-33)
To merge this branch: bzr merge lp:~hjd/widelands/use-bundled-fonts
Reviewer Review Type Date Requested Status
Hans Joachim Desserud Needs Resubmitting
SirVer Approve
Review via email: mp+243323@code.launchpad.net

Description of the change

As discussed in the bug report, once Gun's font branch has been merged, we stop linking to fonts in external packages and use the ones bundled in the Widelands repo. This change removes the lookup/linking for some fonts and instead simply uses whatever we bundle.

I have built (well, technically speaking they are still in progress) test-packages with these changes at
https://code.launchpad.net/~hjd/+recipe/widelands-test

Unfortunately, I won't have have opportunity to test them more thoroughly right now than whether they manage to build or not. If someone wants to test whether they are installable and the file list they provide (hint: dpkg -L packagename), feel free. :)

To post a comment you must log in.
Revision history for this message
SirVer (sirver) wrote :

lgtm. lots of deletes which always means simpler code :)

review: Approve
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Updated to take into account that the fonts directory has been moved into i18n, please re-review this. :)

(debian/copyright should probably be updated with the various licenses the new fonts are available under, but I don't have a complete overview for this)

Revision history for this message
Hans Joachim Desserud (hjd) :
review: Needs Resubmitting
Revision history for this message
GunChleoc (gunchleoc) wrote :

> Updated to take into account that the fonts directory has been moved into
> i18n, please re-review this. :)
>
> (debian/copyright should probably be updated with the various licenses the new
> fonts are available under, but I don't have a complete overview for this)

I have dropped a license file into each font folder, and I grabbed them at the same time that I downloaded the fonts. Is this what you need?

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

>I have dropped a license file into each font folder, and I grabbed them at the same time that I downloaded the fonts. Is this what you need?

Probably :) I saw you had added them, which should make this easier.

To be honest I'm not familiar with this file, but I've looked at the current copyright file and section 12.5 at https://www.debian.org/doc/debian-policy/ch-docs.html. Based on this it looks like it states all licenses used by the project as well as which files/paths are covered by each.

(Minor warning: I might be busy the following days, so I don't know when I'll get time to add this)

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

The copyright file should be updated, but I don't think it's critical. (At least not for our part). Though, in the meantime the PPA builders fail. Should I just merge this and then we can deal with adding the various font licenses later?

Revision history for this message
SirVer (sirver) wrote :

Go ahead, but best open a bug for the font licensens so we will not forget.

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thanks. :) Filed bug 1404539 for follow-up.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2014-12-04 19:36:25 +0000
3+++ debian/control 2014-12-13 19:01:04 +0000
4@@ -32,7 +32,6 @@
5 Depends: widelands-data (= ${source:Version}),
6 ${shlibs:Depends},
7 ${misc:Depends},
8- fonts-freefont-ttf, fonts-dejavu-core, fonts-dejavu-extra,
9 Description: fantasy real-time strategy game
10 Widelands is a strategy game aiming for gameplay similar to Settlers II by
11 BlueByte.
12@@ -45,8 +44,7 @@
13
14 Package: widelands-data
15 Architecture: all
16-Depends: fonts-freefont-ttf,
17- ${misc:Depends}
18+Depends: ${misc:Depends}
19 Description: fantasy real-time strategy game (data files)
20 This package contains the graphics and levels for Widelands.
21 .
22
23=== modified file 'debian/copyright'
24--- debian/copyright 2014-02-15 13:00:44 +0000
25+++ debian/copyright 2014-12-13 19:01:04 +0000
26@@ -22,7 +22,7 @@
27 On Debian systems, the complete text of the GNU General Public
28 License version 2 can be found in "/usr/share/common-licenses/GPL-2".
29
30-Files: fonts/Widelands/Widelands.ttf
31+Files: i18n/fonts/Widelands/Widelands.ttf
32 Copyright: 2006-2010, Peter Schwanemann (Peter (AT) drehatlas (DOT) de)
33 License: SIL Open Font License, Version 1.1 (http://scripts.sil.org/OFL)
34 PREAMBLE
35
36=== modified file 'debian/rules'
37--- debian/rules 2014-10-28 18:13:18 +0000
38+++ debian/rules 2014-12-13 19:01:04 +0000
39@@ -22,40 +22,10 @@
40
41 override_dh_auto_install:
42 dh_auto_install --parallel
43- mkdir -p debian/tmp/usr/share/applications/
44+ mkdir -p debian/tmp/usr/share/applications/
45 cp debian/widelands.desktop debian/tmp/usr/share/applications/
46- # Take care of the fonts (use system-wide ones)
47- for ttf in FreeSans.ttf FreeSerif.ttf ; do \
48- rm debian/tmp/usr/share/games/widelands/fonts/$$ttf; \
49- (cd debian/tmp/usr/share/games/widelands/fonts/; ln -s /usr/share/fonts/truetype/freefont/$$ttf) ;\
50- done
51- # Damn, widelands does not use the standard name of fonts,
52- # but removes the hyphen (-) from those names
53- for hyphen in \
54- DejaVuSans-BoldOblique.ttf \
55- DejaVuSans-Bold.ttf \
56- DejaVuSansCondensed-Bold.ttf \
57- DejaVuSansCondensed.ttf \
58- DejaVuSans-ExtraLight.ttf \
59- DejaVuSansMono-Bold.ttf \
60- DejaVuSansMono.ttf \
61- DejaVuSans.ttf \
62- DejaVuSerif-BoldItalic.ttf \
63- DejaVuSerif-Bold.ttf \
64- DejaVuSerifCondensed-BoldItalic.ttf \
65- DejaVuSerifCondensed-Bold.ttf \
66- DejaVuSerifCondensed-Italic.ttf \
67- DejaVuSerifCondensed.ttf \
68- DejaVuSerif-Italic.ttf \
69- DejaVuSerif.ttf \
70- ; do \
71- ttf=`echo $$hyphen | sed 's/-//'` ; \
72- if [ -e /usr/share/fonts/truetype/dejavu/$$hyphen ]; then \
73- rm debian/tmp/usr/share/games/widelands/fonts/$$ttf; \
74- (cd debian/tmp/usr/share/games/widelands/fonts/; ln -s /usr/share/fonts/truetype/dejavu/$$hyphen $$ttf) ;\
75- fi; \
76- done
77- rm debian/tmp/usr/share/games/widelands/fonts/Widelands/LICENSE
78+ # Probably need to remove other duplicated license files in i18n/fonts
79+ rm debian/tmp/usr/share/games/widelands/i18n/fonts/Widelands/LICENSE
80 # Do not include the GPL-2 license file again to keep lintian happy
81 # (but the file is listed from the user interface, so dont kill it completely)
82 # (we cannot patch the user interface because that's in a translated text)

Subscribers

People subscribed via source and target branches