Gentoo Archives: gentoo-commits

From: "Joerg Bornkessel (hd_brummy)" <hd_brummy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-plugins/vdr-graphtft/files: vdr-graphtft-0.1.18_alpha-gentoo.diff
Date: Sun, 13 Apr 2008 19:01:43
Message-Id: E1Jl7SO-000114-Jr@stork.gentoo.org
1 hd_brummy 08/04/13 19:01:40
2
3 Added: vdr-graphtft-0.1.18_alpha-gentoo.diff
4 Log:
5 version bump; bug 217176 fixed; bug 217518 fixed
6 (Portage version: 2.1.4.4)
7
8 Revision Changes Path
9 1.1 media-plugins/vdr-graphtft/files/vdr-graphtft-0.1.18_alpha-gentoo.diff
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-graphtft/files/vdr-graphtft-0.1.18_alpha-gentoo.diff?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-graphtft/files/vdr-graphtft-0.1.18_alpha-gentoo.diff?rev=1.1&content-type=text/plain
13
14 Index: vdr-graphtft-0.1.18_alpha-gentoo.diff
15 ===================================================================
16 diff -Naur graphtft-0.1.16.alpha.orig/dfbrenderer/dfbrenderer.c graphtft-0.1.16.alpha/dfbrenderer/dfbrenderer.c
17 --- graphtft-0.1.16.alpha.orig/dfbrenderer/dfbrenderer.c 2007-12-12 20:15:39.223026383 +0100
18 +++ graphtft-0.1.16.alpha/dfbrenderer/dfbrenderer.c 2007-12-12 20:17:01.430709769 +0100
19 @@ -333,7 +333,7 @@
20 else
21 {
22 const char* tmp = themePath.c_str();
23 - asprintf(&fpath, "%s/graphTFT/themes/%s/%s", confPath.c_str(), tmp, fname);
24 + asprintf(&fpath, "%s/themes/%s/%s", confPath.c_str(), tmp, fname);
25 }
26
27 tell(4,"creating imageprovider for %s\n", fpath);
28 @@ -383,7 +383,7 @@
29
30 if (!fontCache.Contains(FontFaceSize(fontName, fontSize)))
31 {
32 - asprintf(&fpath, "%s/graphTFT/fonts/%s.ttf", confPath.c_str(), fontName);
33 + asprintf(&fpath, "%s/fonts/%s.ttf", confPath.c_str(), fontName);
34
35 tell(4,"creating font for %s\n", fpath);
36
37 @@ -444,7 +444,7 @@
38
39 if (!fontCache.Contains(FontFaceSize(font_name, size)))
40 {
41 - asprintf(&fpath, "%s/graphTFT/fonts/%s.ttf", confPath.c_str(), font_name);
42 + asprintf(&fpath, "%s/fonts/%s.ttf", confPath.c_str(), font_name);
43
44 tell(4,"creating font for %s\n", fpath);
45
46 diff -Naur graphtft-0.1.16.alpha.orig/graphtft.c graphtft-0.1.16.alpha/graphtft.c
47 --- graphtft-0.1.16.alpha.orig/graphtft.c 2007-12-12 20:15:39.246358112 +0100
48 +++ graphtft-0.1.16.alpha/graphtft.c 2007-12-12 20:19:52.292300174 +0100
49 @@ -20,6 +20,8 @@
50 #include <graphtft.h>
51 #include <span.h>
52
53 +#define DATA_DIR "/usr/share/vdr/graphTFT"
54 +
55 //***************************************************************************
56 // cGraphTFTMenu
57 //***************************************************************************
58 @@ -255,14 +257,7 @@
59
60 #endif
61
62 - // try to get the config dir
63 -
64 - if (!ConfigDirectory())
65 - return false;
66 -
67 - // init
68 -
69 - GraphTFTSetup.PluginConfPath = strdup(ConfigDirectory());
70 + GraphTFTSetup.PluginConfPath = strdup(DATA_DIR);
71
72 #if APIVERSNUM < 10507
73 RegisterI18n(Phrases);
74 @@ -278,7 +273,7 @@
75 if (loadThemes() != 0)
76 return false;
77
78 - return display->Init(_dev, ConfigDirectory(), port);
79 + return display->Init(_dev, DATA_DIR, port);
80 }
81
82 //***************************************************************************
83 @@ -294,8 +289,8 @@
84
85 // look for the themes in the config directory
86
87 - asprintf(&buffer, "find %s/graphTFT/themes -follow -type f -name '*.theme' | sort",
88 - ConfigDirectory());
89 + asprintf(&buffer, "find %s/themes -follow -type f -name '*.theme' | sort",
90 + DATA_DIR);
91
92 p = popen(buffer, "r");
93
94 diff -Naur graphtft-0.1.16.alpha.orig/imlibrenderer/imlibrenderer.c graphtft-0.1.16.alpha/imlibrenderer/imlibrenderer.c
95 --- graphtft-0.1.16.alpha.orig/imlibrenderer/imlibrenderer.c 2007-12-12 20:15:39.369682970 +0100
96 +++ graphtft-0.1.16.alpha/imlibrenderer/imlibrenderer.c 2007-12-12 20:20:35.006031224 +0100
97 @@ -53,7 +53,7 @@
98
99 // font
100
101 - std::ostringstream path; path << confPath.c_str() << "/graphTFT/fonts/";
102 + std::ostringstream path; path << confPath.c_str() << "/fonts/";
103 imlib_add_path_to_font_path(path.str().c_str());
104
105 // new image
106 @@ -134,7 +134,7 @@
107 if (fname[0] == '/')
108 path << fname;
109 else
110 - path << confPath << "/graphTFT/themes/" << themePath << "/" << fname;
111 + path << confPath << "/themes/" << themePath << "/" << fname;
112
113 new_image = imlib_load_image(path.str().c_str());
114
115 diff -Naur graphtft-0.1.18.alpha.orig/dspitems.c graphtft-0.1.18.alpha/dspitems.c
116 --- graphtft-0.1.18.alpha.orig/dspitems.c 2008-04-13 20:04:45.855102424 +0200
117 +++ graphtft-0.1.18.alpha/dspitems.c 2008-04-13 20:05:41.912312127 +0200
118 @@ -697,7 +697,7 @@
119 if (p[0] != '/')
120 {
121 p = string(GraphTFTSetup.PluginConfPath)
122 - + "/graphTFT/themes/"
123 + + "/themes/"
124 + string(theTheme->getDir())
125 + "/" + p;
126 }
127
128
129
130 --
131 gentoo-commits@l.g.o mailing list