1 |
Hello, |
2 |
|
3 |
I'd like to add the following function to eutils.eclass : |
4 |
|
5 |
# Generate a standard error message for missing USE flags |
6 |
# in existing packages, and die. |
7 |
# |
8 |
# Usage: built_with_use_die <category/package> <functionality> [<USE flag>] |
9 |
# ex: built_with_use_die dev-util/subversion python |
10 |
# or: built_with_use_die net-www/apache LDAP ldap |
11 |
# |
12 |
# Typical usage: |
13 |
# if ! built_with_use dev-util/subversion python ; then |
14 |
# built_with_use_die dev-util/subversion python |
15 |
# fi |
16 |
# |
17 |
# Note: when <USE flag> is not specified, <functionality> is used for the USE |
18 |
flag name. |
19 |
built_with_use_die() { |
20 |
local package=$1 |
21 |
local func=$2 |
22 |
local use_flag=$3 |
23 |
|
24 |
[[ -z ${use_flag} ]] && use_flag=${func} |
25 |
|
26 |
eerror "Your ${package} package has been built without" |
27 |
eerror "${func} support, please enable the '${use_flag}' USE flag and" |
28 |
eerror "re-emerge ${package}." |
29 |
elog "You can enable this USE flag either globally in /etc/make.conf," |
30 |
elog "or just for specific packages in /etc/portage/package.use." |
31 |
die "${package} missing ${func} support" |
32 |
} |
33 |
|
34 |
This function is already used in latest www-apps/trac ebuilds. The following |
35 |
packages might be concerned, i.e. packages that are currently using |
36 |
built_with_use() : |
37 |
|
38 |
app-admin/system-config-httpd |
39 |
app-admin/kedpm |
40 |
app-admin/sabayon |
41 |
app-admin/analog |
42 |
app-admin/diradm |
43 |
app-admin/moodss |
44 |
app-admin/puppet |
45 |
app-admin/keepassx |
46 |
app-admin/webalizer |
47 |
app-backup/bobs |
48 |
app-cdr/k3b |
49 |
app-cdr/dvdshrink |
50 |
app-crypt/xca |
51 |
app-crypt/gnupg |
52 |
app-doc/kchmviewer |
53 |
app-editors/joe |
54 |
app-editors/gobby |
55 |
app-emacs/emacs-w3m |
56 |
app-emulation/wine |
57 |
app-emulation/crossover-office-bin |
58 |
app-emulation/crossover-office-pro-bin |
59 |
app-emulation/xen-tools |
60 |
app-i18n/uim |
61 |
app-i18n/scim-bridge |
62 |
app-i18n/scim-qtimm |
63 |
app-misc/g15composer |
64 |
app-misc/beagle |
65 |
app-misc/gramps |
66 |
app-misc/tracker |
67 |
app-misc/tomboy |
68 |
app-misc/webcomics-collector |
69 |
app-office/krita |
70 |
app-office/koffice |
71 |
app-office/kmymoney2 |
72 |
app-office/tinyerp-server |
73 |
app-office/gnucash |
74 |
app-office/mozilla-sunbird |
75 |
app-office/gnumeric |
76 |
app-office/qbankmanager |
77 |
app-pda/libsyncml |
78 |
app-pda/libopensync-plugin-syncml |
79 |
app-pda/libopensync-plugin-irmc |
80 |
app-portage/elogv |
81 |
app-portage/esearch |
82 |
app-portage/porthole |
83 |
app-portage/layman |
84 |
app-text/an |
85 |
app-text/xdvik |
86 |
app-text/bibletime |
87 |
app-text/biblestudy |
88 |
app-text/evince |
89 |
app-text/enscript |
90 |
app-text/epdfview |
91 |
app-text/gnome-doc-utils |
92 |
dev-cpp/Ice |
93 |
dev-cpp/libthrowable |
94 |
dev-db/pgadmin3 |
95 |
dev-dotnet/galago-sharp |
96 |
dev-games/ogre |
97 |
dev-haskell/wxhaskell |
98 |
dev-java/cairo-java |
99 |
dev-java/velocity |
100 |
dev-lang/lazarus |
101 |
dev-lang/mercury-extras |
102 |
dev-libs/g-wrap |
103 |
dev-libs/m17n-lib |
104 |
dev-lisp/sbcl |
105 |
dev-ml/findlib |
106 |
dev-ml/lablgl |
107 |
dev-ml/ocamlnet |
108 |
dev-php4/php-java-bridge |
109 |
dev-php5/pecl-pdo-odbc |
110 |
dev-php5/pecl-pdo-oci |
111 |
dev-php5/php-qt |
112 |
dev-php5/pecl-pdo-sqlite |
113 |
dev-php5/pecl-pdo |
114 |
dev-php5/pecl-pdo-dblib |
115 |
dev-php5/pecl-pdo-mysql |
116 |
dev-php5/pecl-pdo-pgsql |
117 |
dev-python/pymssql |
118 |
dev-python/pyzor |
119 |
dev-python/soappy |
120 |
dev-python/pyopengl |
121 |
dev-python/imaging |
122 |
dev-python/wxpython |
123 |
dev-python/xapwrap |
124 |
dev-python/telepathy-python |
125 |
dev-ruby/ruby-gd |
126 |
dev-ruby/sqlite3-ruby |
127 |
dev-tcltk/thread |
128 |
dev-tinyos/tos-getenv |
129 |
dev-tinyos/tos-scripts |
130 |
dev-util/meld |
131 |
dev-util/pida |
132 |
dev-util/source-highlight |
133 |
dev-util/documancer |
134 |
dev-util/dialog |
135 |
dev-util/rapidsvn |
136 |
dev-util/imediff2 |
137 |
dev-util/svnmailer |
138 |
games-action/rrootage |
139 |
games-action/powermanga |
140 |
games-action/noiz2sa |
141 |
games-arcade/frozen-bubble |
142 |
games-arcade/supertux |
143 |
games-arcade/pycadia |
144 |
games-arcade/solarwolf |
145 |
games-arcade/defendguin |
146 |
games-arcade/project-starfighter |
147 |
games-arcade/stepmania |
148 |
games-arcade/smclone |
149 |
games-arcade/tomatoes |
150 |
games-arcade/monster-masher |
151 |
games-arcade/ceferino |
152 |
games-emulation/dosbox-cvs |
153 |
games-emulation/dosbox |
154 |
games-fps/qudos |
155 |
games-fps/quake3-bin |
156 |
games-fps/duke3d |
157 |
games-fps/quake1-data |
158 |
games-fps/quake2-data |
159 |
games-fps/quake2-icculus |
160 |
games-fps/doom3-dungeon |
161 |
games-kids/cubetest |
162 |
games-mud/lyntin |
163 |
games-puzzle/xye |
164 |
games-puzzle/twindistress |
165 |
games-puzzle/flobopuyo |
166 |
games-puzzle/monsterz |
167 |
games-rpg/nwn |
168 |
games-rpg/tmw |
169 |
games-rpg/xu4 |
170 |
games-rpg/nwn-cep |
171 |
games-simulation/gl117 |
172 |
games-simulation/openttd |
173 |
games-simulation/lincity-ng |
174 |
games-simulation/planets |
175 |
games-sports/ultimatestunts |
176 |
games-strategy/freelords |
177 |
games-strategy/wesnoth |
178 |
gnome-extra/evolution-data-server |
179 |
gnome-extra/hal-device-manager |
180 |
gnome-extra/gnome-games |
181 |
gnome-extra/evolution-exchange |
182 |
kde-base/kpdf |
183 |
kde-base/kdebase |
184 |
kde-base/kdelibs |
185 |
kde-base/kdegraphics |
186 |
kde-base/kopete |
187 |
kde-base/kghostview |
188 |
kde-base/kdemultimedia-arts |
189 |
kde-base/kdenetwork |
190 |
kde-base/kdebase-kioslaves |
191 |
kde-misc/tork |
192 |
kde-misc/kompose |
193 |
kde-misc/kdnssd-avahi |
194 |
mail-client/mozilla-thunderbird |
195 |
mail-client/evolution |
196 |
media-fonts/acroread-asianfonts |
197 |
media-gfx/splashutils |
198 |
media-gfx/gimp |
199 |
media-gfx/pstoedit |
200 |
media-gfx/gimp-print |
201 |
media-gfx/hugin |
202 |
media-gfx/graphviz |
203 |
media-gfx/asymptote |
204 |
media-gfx/f-spot |
205 |
media-gfx/kphotoalbum |
206 |
media-libs/mesa |
207 |
media-libs/libipoddevice |
208 |
media-libs/giblib |
209 |
media-libs/libquicktime |
210 |
media-libs/openinventor |
211 |
media-libs/openexr |
212 |
media-libs/ploticus |
213 |
media-plugins/vdr-softdevice |
214 |
media-plugins/kipi-plugins |
215 |
media-plugins/quodlibet-trayicon |
216 |
media-plugins/vdr-weatherng |
217 |
media-plugins/mytharchive |
218 |
media-plugins/slimserver-alienbbc |
219 |
media-plugins/quodlibet-ipod |
220 |
media-sound/cmus |
221 |
media-sound/audacity |
222 |
media-sound/quodlibet |
223 |
media-sound/timidity++ |
224 |
media-sound/beast |
225 |
media-sound/ncmpc |
226 |
media-sound/pympd |
227 |
media-sound/mt-daapd |
228 |
media-sound/lastfmplayer |
229 |
media-sound/exaile |
230 |
media-sound/vorbis-tools |
231 |
media-sound/listen |
232 |
media-sound/mumble |
233 |
media-sound/murmur |
234 |
media-sound/sonata |
235 |
media-sound/banshee |
236 |
media-sound/alsa-tools |
237 |
media-sound/prokyon3 |
238 |
media-sound/alsa-utils |
239 |
media-sound/pulseaudio |
240 |
media-sound/slimserver |
241 |
media-sound/padevchooser |
242 |
media-tv/nuvexport |
243 |
media-tv/freevo |
244 |
media-tv/mythtv |
245 |
media-video/mplayer-resume |
246 |
media-video/ffmpeg2theora |
247 |
media-video/kaffeine |
248 |
media-video/cpdvd |
249 |
media-video/oxine |
250 |
media-video/totem |
251 |
media-video/tovid |
252 |
media-video/winki |
253 |
media-video/avidemux |
254 |
media-video/thoggen |
255 |
media-video/recordmydesktop |
256 |
media-video/dvbcut |
257 |
media-video/dvdrip |
258 |
media-video/mpeg4ip |
259 |
media-video/kdenlive |
260 |
media-video/ogmrip |
261 |
media-video/ati-gatos |
262 |
media-video/videotrans |
263 |
net-analyzer/base |
264 |
net-analyzer/ntop |
265 |
net-analyzer/sarg |
266 |
net-analyzer/cacti |
267 |
net-analyzer/munin |
268 |
net-analyzer/sguil-client |
269 |
net-analyzer/aimsniff |
270 |
net-analyzer/smokeping |
271 |
net-analyzer/sguil-sensor |
272 |
net-analyzer/sguil-server |
273 |
net-analyzer/jffnms |
274 |
net-analyzer/iptraf |
275 |
net-analyzer/prewikka |
276 |
net-analyzer/wireshark |
277 |
net-dialup/speedtouch-usb |
278 |
net-dialup/ueagle-atm |
279 |
net-dns/avahi |
280 |
net-firewall/firehol |
281 |
net-firewall/shorewall |
282 |
net-im/psi |
283 |
net-im/sim |
284 |
net-im/ekg2 |
285 |
net-im/gaim |
286 |
net-im/ekiga |
287 |
net-im/gajim |
288 |
net-im/tkabber |
289 |
net-im/ejabberd |
290 |
net-im/tapiocaui |
291 |
net-irc/epic4 |
292 |
net-irc/unrealircd |
293 |
net-irc/inspircd |
294 |
net-libs/rb_libtorrent |
295 |
net-mail/vimap |
296 |
net-mail/cyrus-imapd |
297 |
net-mail/popa3d |
298 |
net-mail/uw-imap |
299 |
net-mail/vm-pop3d |
300 |
net-mail/mailgraph |
301 |
net-misc/ser |
302 |
net-misc/neon |
303 |
net-misc/vino |
304 |
net-misc/xrdp |
305 |
net-misc/sobby |
306 |
net-misc/scponly |
307 |
net-misc/asterisk-app_icd |
308 |
net-misc/sitecopy |
309 |
net-misc/asterisk-addons |
310 |
net-misc/openntpd |
311 |
net-misc/vidalia |
312 |
net-misc/openvpn |
313 |
net-misc/hylafax |
314 |
net-misc/asterisk |
315 |
net-nds/openldap |
316 |
net-news/snownews |
317 |
net-nntp/tin |
318 |
net-nntp/slrn |
319 |
net-p2p/amule |
320 |
net-p2p/deluge |
321 |
net-p2p/museek+ |
322 |
net-p2p/bittorrent |
323 |
net-p2p/mldonkey |
324 |
net-p2p/qbittorrent |
325 |
net-print/cups |
326 |
net-voip/cohoba |
327 |
net-wireless/wpa_supplicant |
328 |
net-www/apache |
329 |
rox-extra/musicbox |
330 |
sci-biology/clustalx |
331 |
sci-biology/treeviewx |
332 |
sci-chemistry/apbs |
333 |
sci-chemistry/maid |
334 |
sci-chemistry/molmol |
335 |
sci-electronics/pcb |
336 |
sci-electronics/geda |
337 |
sci-electronics/kicad |
338 |
sci-geosciences/grass |
339 |
sci-libs/gdal |
340 |
sci-libs/hdf5 |
341 |
sci-libs/scipy |
342 |
sci-libs/libgeda |
343 |
sci-mathematics/maxima |
344 |
sci-visualization/hippodraw |
345 |
sys-apps/hal |
346 |
sys-apps/yum |
347 |
sys-apps/qingy |
348 |
sys-cluster/mpich2 |
349 |
sys-devel/autogen |
350 |
sys-freebsd/freebsd-rescue |
351 |
sys-fs/loop-aes |
352 |
sys-libs/uclibc |
353 |
sys-power/powersave |
354 |
sys-power/kpowersave |
355 |
virtual/perl-DB_File |
356 |
www-apache/anyterm |
357 |
www-apache/mod_vhost_ldap |
358 |
www-apps/trac |
359 |
www-apps/bugzilla |
360 |
www-apps/viewvc |
361 |
www-apps/viewcvs |
362 |
www-client/lynx |
363 |
www-client/elinks |
364 |
www-client/mozilla-firefox |
365 |
www-servers/aolserver |
366 |
x11-apps/xdm |
367 |
x11-apps/xfd |
368 |
x11-apps/xgc |
369 |
x11-apps/xmh |
370 |
x11-apps/xsm |
371 |
x11-apps/xmag |
372 |
x11-apps/xman |
373 |
x11-apps/xvidtune |
374 |
x11-apps/xphelloworld |
375 |
x11-apps/xcalc |
376 |
x11-apps/xedit |
377 |
x11-apps/xload |
378 |
x11-apps/editres |
379 |
x11-apps/xclipboard |
380 |
x11-apps/listres |
381 |
x11-apps/xkbutils |
382 |
x11-apps/xconsole |
383 |
x11-apps/bitmap |
384 |
x11-apps/xditview |
385 |
x11-apps/xmessage |
386 |
x11-apps/xclock |
387 |
x11-apps/viewres |
388 |
x11-apps/xfontsel |
389 |
x11-base/xorg-server |
390 |
x11-drivers/nvidia-drivers |
391 |
x11-drivers/xf86-video-savage |
392 |
x11-drivers/xf86-video-sunffb |
393 |
x11-drivers/nvidia-legacy-drivers |
394 |
x11-drivers/xf86-video-i810 |
395 |
x11-drivers/xf86-video-tdfx |
396 |
x11-drivers/xf86-video-ati |
397 |
x11-drivers/xf86-video-mga |
398 |
x11-drivers/xf86-video-sis |
399 |
x11-drivers/xf86-video-via |
400 |
x11-drivers/xf86-video-glint |
401 |
x11-libs/gtk+ |
402 |
x11-libs/pango |
403 |
x11-libs/goffice |
404 |
x11-misc/idesk |
405 |
x11-misc/rss-glx |
406 |
x11-misc/fraqtive |
407 |
x11-misc/alacarte |
408 |
x11-misc/xbindkeys |
409 |
x11-misc/service-discovery-applet |
410 |
x11-plugins/wmhdplop |
411 |
x11-plugins/beryl-plugins |
412 |
x11-plugins/gkrelltop |
413 |
x11-themes/tango-icon-theme-extras |
414 |
x11-themes/tangerine-icon-theme |
415 |
x11-themes/tango-icon-theme |
416 |
x11-wm/kahakai |
417 |
x11-wm/stumpwm-cvs |
418 |
x11-wm/beryl |
419 |
x11-wm/enlightenment |
420 |
x11-wm/fluxbox |
421 |
xfce-extra/thunar-volman |
422 |
|
423 |
And eclasses : |
424 |
|
425 |
confutils.eclass |
426 |
depend.php.eclass |
427 |
games.eclass |
428 |
games-mods.eclass |
429 |
gkrellm-plugin.eclass |
430 |
horde.eclass |
431 |
java-utils-2 |
432 |
kde.eclass |
433 |
mysql.eclass |
434 |
subversion.eclass |
435 |
phpconfutils.eclass |
436 |
php-common-r1.eclass |
437 |
php5-sapi*.eclass |
438 |
toolchain.eclass |
439 |
x-modular.eclass |
440 |
|
441 |
Any thoughts? Thanks, |
442 |
-- |
443 |
Julien Allanos (dju`) |