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: rc-addon.sh vdr-graphtft-0.1.16_alpha-gentoo.diff graphtft-fe digest-vdr-graphtft-0.1.16_alpha confd
Date: Sun, 23 Dec 2007 22:05:18
Message-Id: E1J6YwZ-0000Cy-B6@stork.gentoo.org
1 hd_brummy 07/12/23 22:05:11
2
3 Added: rc-addon.sh vdr-graphtft-0.1.16_alpha-gentoo.diff
4 graphtft-fe digest-vdr-graphtft-0.1.16_alpha confd
5 Log:
6 initial ebuild, find older versions on overlay vdr-testing; Thanks to T.Kost, T.Dressler, S.Grebe for testing on graphtft-fe part
7 (Portage version: 2.1.3.19)
8
9 Revision Changes Path
10 1.1 media-plugins/vdr-graphtft/files/rc-addon.sh
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-graphtft/files/rc-addon.sh?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-graphtft/files/rc-addon.sh?rev=1.1&content-type=text/plain
14
15 Index: rc-addon.sh
16 ===================================================================
17 # $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-graphtft/files/rc-addon.sh,v 1.1 2007/12/23 22:05:10 hd_brummy Exp $
18 #
19 # rc-addon-script for plugin graphtft & graphtft-fe
20 #
21 # Joerg Bornkessel <hd_brummy@g.o>
22
23 plugin_pre_vdr_start() {
24
25 : ${GRAPHTFT_DEVICE:=/dev/fb0}
26
27 add_plugin_param "-d ${GRAPHTFT_DEVICE}"
28 }
29
30
31
32 1.1 media-plugins/vdr-graphtft/files/vdr-graphtft-0.1.16_alpha-gentoo.diff
33
34 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-graphtft/files/vdr-graphtft-0.1.16_alpha-gentoo.diff?rev=1.1&view=markup
35 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-graphtft/files/vdr-graphtft-0.1.16_alpha-gentoo.diff?rev=1.1&content-type=text/plain
36
37 Index: vdr-graphtft-0.1.16_alpha-gentoo.diff
38 ===================================================================
39 diff -Naur graphtft-0.1.16.alpha.orig/dfbrenderer/dfbrenderer.c graphtft-0.1.16.alpha/dfbrenderer/dfbrenderer.c
40 --- graphtft-0.1.16.alpha.orig/dfbrenderer/dfbrenderer.c 2007-12-12 20:15:39.223026383 +0100
41 +++ graphtft-0.1.16.alpha/dfbrenderer/dfbrenderer.c 2007-12-12 20:17:01.430709769 +0100
42 @@ -333,7 +333,7 @@
43 else
44 {
45 const char* tmp = themePath.c_str();
46 - asprintf(&fpath, "%s/graphTFT/themes/%s/%s", confPath.c_str(), tmp, fname);
47 + asprintf(&fpath, "%s/themes/%s/%s", confPath.c_str(), tmp, fname);
48 }
49
50 tell(4,"creating imageprovider for %s\n", fpath);
51 @@ -383,7 +383,7 @@
52
53 if (!fontCache.Contains(FontFaceSize(fontName, fontSize)))
54 {
55 - asprintf(&fpath, "%s/graphTFT/fonts/%s.ttf", confPath.c_str(), fontName);
56 + asprintf(&fpath, "%s/fonts/%s.ttf", confPath.c_str(), fontName);
57
58 tell(4,"creating font for %s\n", fpath);
59
60 @@ -444,7 +444,7 @@
61
62 if (!fontCache.Contains(FontFaceSize(font_name, size)))
63 {
64 - asprintf(&fpath, "%s/graphTFT/fonts/%s.ttf", confPath.c_str(), font_name);
65 + asprintf(&fpath, "%s/fonts/%s.ttf", confPath.c_str(), font_name);
66
67 tell(4,"creating font for %s\n", fpath);
68
69 diff -Naur graphtft-0.1.16.alpha.orig/graphtft.c graphtft-0.1.16.alpha/graphtft.c
70 --- graphtft-0.1.16.alpha.orig/graphtft.c 2007-12-12 20:15:39.246358112 +0100
71 +++ graphtft-0.1.16.alpha/graphtft.c 2007-12-12 20:19:52.292300174 +0100
72 @@ -20,6 +20,8 @@
73 #include <graphtft.h>
74 #include <span.h>
75
76 +#define DATA_DIR "/usr/share/vdr/graphTFT"
77 +
78 //***************************************************************************
79 // cGraphTFTMenu
80 //***************************************************************************
81 @@ -255,14 +257,7 @@
82
83 #endif
84
85 - // try to get the config dir
86 -
87 - if (!ConfigDirectory())
88 - return false;
89 -
90 - // init
91 -
92 - GraphTFTSetup.PluginConfPath = strdup(ConfigDirectory());
93 + GraphTFTSetup.PluginConfPath = strdup(DATA_DIR);
94
95 #if APIVERSNUM < 10507
96 RegisterI18n(Phrases);
97 @@ -278,7 +273,7 @@
98 if (loadThemes() != 0)
99 return false;
100
101 - return display->Init(_dev, ConfigDirectory(), port);
102 + return display->Init(_dev, DATA_DIR, port);
103 }
104
105 //***************************************************************************
106 @@ -294,8 +289,8 @@
107
108 // look for the themes in the config directory
109
110 - asprintf(&buffer, "find %s/graphTFT/themes -follow -type f -name '*.theme' | sort",
111 - ConfigDirectory());
112 + asprintf(&buffer, "find %s/themes -follow -type f -name '*.theme' | sort",
113 + DATA_DIR);
114
115 p = popen(buffer, "r");
116
117 diff -Naur graphtft-0.1.16.alpha.orig/imlibrenderer/imlibrenderer.c graphtft-0.1.16.alpha/imlibrenderer/imlibrenderer.c
118 --- graphtft-0.1.16.alpha.orig/imlibrenderer/imlibrenderer.c 2007-12-12 20:15:39.369682970 +0100
119 +++ graphtft-0.1.16.alpha/imlibrenderer/imlibrenderer.c 2007-12-12 20:20:35.006031224 +0100
120 @@ -53,7 +53,7 @@
121
122 // font
123
124 - std::ostringstream path; path << confPath.c_str() << "/graphTFT/fonts/";
125 + std::ostringstream path; path << confPath.c_str() << "/fonts/";
126 imlib_add_path_to_font_path(path.str().c_str());
127
128 // new image
129 @@ -134,7 +134,7 @@
130 if (fname[0] == '/')
131 path << fname;
132 else
133 - path << confPath << "/graphTFT/themes/" << themePath << "/" << fname;
134 + path << confPath << "/themes/" << themePath << "/" << fname;
135
136 new_image = imlib_load_image(path.str().c_str());
137
138
139
140
141 1.1 media-plugins/vdr-graphtft/files/graphtft-fe
142
143 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-graphtft/files/graphtft-fe?rev=1.1&view=markup
144 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-graphtft/files/graphtft-fe?rev=1.1&content-type=text/plain
145
146 Index: graphtft-fe
147 ===================================================================
148 #!/sbin/runscript
149 # Copyright 1999-2007 Gentoo Foundation
150 # Distributed under the terms of the GNU General Public License v2
151
152 . /etc/conf.d/vdr.graphtft
153
154 export DISPLAY=${GRAPHTFT_DISPLAY}
155
156 : ${GRAPHTFT_USER:=root}
157
158 OPTIONS="-h ${GRAPHTFT_HOST:=127.0.0.1}"
159 OPTIONS="${OPTIONS} -p ${GRAPHTFT_PORT:=2039}"
160 OPTIONS="${OPTIONS} -e ${GRAPHTFT_LOG_LEVEL:=0}"
161 OPTIONS="${OPTIONS} -W ${GRAPHTFT_SCREEN_WIDTH:=800}"
162 OPTIONS="${OPTIONS} -H ${GRAPHTFT_SCREEN_HEIGHT:=480}"
163 [ "${GRAPHTFT_NO_FRAME}" = "yes" ] && OPTIONS="${OPTIONS} -n"
164 [ "${GRAPHTFT_RESIZE_IMAGE}" = "yes" ] && OPTIONS="${OPTIONS} -r"
165
166 # -d <file> dump each image to file (default off)
167
168 start() {
169 ebegin "starting graphtft-fe ..."
170 start-stop-daemon --make-pidfile --background --pidfile /var/run/graphtft-fe.pid \
171 --chuid ${GRAPHTFT_USER} --start --exec /usr/bin/graphtft-fe -- ${OPTIONS}
172 eend $?
173 }
174
175 stop() {
176 ebegin "stopping graphtft ..."
177 start-stop-daemon --stop --pidfile /var/run/graphtft-fe.pid
178 eend $?
179 }
180
181
182
183
184 1.1 media-plugins/vdr-graphtft/files/digest-vdr-graphtft-0.1.16_alpha
185
186 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-graphtft/files/digest-vdr-graphtft-0.1.16_alpha?rev=1.1&view=markup
187 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-graphtft/files/digest-vdr-graphtft-0.1.16_alpha?rev=1.1&content-type=text/plain
188
189 Index: digest-vdr-graphtft-0.1.16_alpha
190 ===================================================================
191 MD5 3ae5def775b37f24b196a6e5bcabc43c DeepBlue-horchi-0.0.6.tar.bz2 1660439
192 RMD160 8ac510b9a65f8f4becef94519cf77f083709e96e DeepBlue-horchi-0.0.6.tar.bz2 1660439
193 SHA256 75ca7ea853ae9fc3a30b656ab0f6599bc09c10d371b76990156ad9491ad2c8ee DeepBlue-horchi-0.0.6.tar.bz2 1660439
194 MD5 677103f302335248e57b0c5dc8678531 vdr-graphtft-0.1.16.alpha.tar.bz2 234797
195 RMD160 e5a491b480b37480a9c7574cb74bdc2b14113bbe vdr-graphtft-0.1.16.alpha.tar.bz2 234797
196 SHA256 3ede1f5faeb37add03395a7296fe30ef505eb717c70c2000bfeca383f5b71457 vdr-graphtft-0.1.16.alpha.tar.bz2 234797
197
198
199
200 1.1 media-plugins/vdr-graphtft/files/confd
201
202 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-graphtft/files/confd?rev=1.1&view=markup
203 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-graphtft/files/confd?rev=1.1&content-type=text/plain
204
205 Index: confd
206 ===================================================================
207 # /etc/conf.d/vdr.graphtft
208 # $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-graphtft/files/confd,v 1.1 2007/12/23 22:05:10 hd_brummy Exp $
209
210 ####### Global config for Graphtft ####################
211
212 #
213 # set the DIR of the Framebuffer Device
214 # allowed values: device_names directFB none
215 # default: /dev/fb0
216 #GRAPHTFT_DEVICE=/dev/fb0
217
218
219 ###### Configuration for graphtft-fe ##################
220 #
221 # set GRAPHTFT_DEVICE="" to none
222
223 # set your tft display
224 # no default values
225 # default: not set, exemple
226 #GRAPHTFT_DISPLAY=":0.1"
227
228 # switch to user
229 # default user root ; depand on your x configuration
230 #
231 #GRAPHTFT_USER="root"
232
233 # set the width of your display
234 # allowed values:
235 # default: 800
236 #GRAPHTFT_SCREEN_WIDTH="800"
237
238 # set the height of your display
239 # allowed values:
240 # default: 480
241 #GRAPHTFT_SCREEN_HEIGHT="480"
242
243 # run output without windowsframe
244 # allowed values: yes no
245 # default: yes
246 #GRAPHTFT_NO_FRAME="yes"
247
248 # set the IP to your X Display
249 # allowed values: ip address
250 # default: localhost IP
251 #GRAPHTFT_HOST="127.0.0.1"
252
253 # set the port to your X Display
254 # allowed values: portnumber
255 # default: 2039
256 #GRAPHTFT_PORT="2039"
257
258 # set the logevel for graphtft-fe
259 # allowed values: 0 1 2 3
260 # default: 0
261 #GRAPHTFT_LOG_LEVEL="0"
262
263
264
265 --
266 gentoo-commits@g.o mailing list