annotate gaim.apspec.in @ 12360:3153661f4d5c

[gaim-migrate @ 14664] Faceprint is concerned about 2 things: 1)some of the random colors are very close together. as best we can tell, there are two ways to fix this 1a) for each proposed color, iterate the entire list of selected colors, looking to ensure that it is not too close to any of them. this is an O(n^2) operation, with n >= 220 (the current number of colors we look for) 1b) iterate the entire set of possible colors, skipping ahead by some guess (rather than iterating by 1). this is an O(n^3) operation, where n is 65535/(whatever we skip ahead by). This is not only a more expensive operation, but because of the nature of the color list, it is not _necessarily_ going to yield more predictable results, skipping ahead 5 (or any other number) does not necessarily guarantee that you've skipped 5 very similar colors. 2) as you can see, either solution to #1 is potentially a resource hog. #1a is a random delay, #1b is inherently expensive. How often #1a will exceed the bound #1b, if ever, is unknown. rather than doing either of these, we settled on a middle course: a .h file has been created containing a set of colors. currently the set we were previously hard coded to. Gaim will search that list for usable colors and start randomly looking only if that list does not contain sufficient usable colors. ideally this list would be generated to have colors that are known to be a "safe" distance appart, that is colors that you can tell appart. and Ideally it would have a (small) multiple of the number of colors we are searching for. This should ensure that IF we go to randomly searching, we need do so only for a few colors. Right now I have no good way to generate a "safe" list of colors though. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Mon, 05 Dec 2005 21:46:47 +0000
parents a6d446cf090f
children d7983c1d79bb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10362
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1 # -*-shell-script-*-
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
2
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
3 [Meta]
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
4 RootName: @gaim.sourceforge.net/gaim:$SOFTWAREVERSION
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
5 DisplayName: Gaim Internet Messenger
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
6 ShortName: gaim
10552
895ab663c87c [gaim-migrate @ 11927]
Tim Ringenbach <marv@pidgin.im>
parents: 10528
diff changeset
7 Maintainer: The Gaim Developers
895ab663c87c [gaim-migrate @ 11927]
Tim Ringenbach <marv@pidgin.im>
parents: 10528
diff changeset
8 URL: http://gaim.sourceforge.net/
10362
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
9 Packager: Tim Ringenbach <marv_sf@users.sourceforge.net>
10689
04e61e64db63 [gaim-migrate @ 12238]
Tim Ringenbach <marv@pidgin.im>
parents: 10651
diff changeset
10 Summary: A GTK+ based multiprotocol instant messaging client
10362
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
11 SoftwareVersion: @VERSION@
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
12 InterfaceVersion: 2.0
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
13 PackageVersion: 1
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
14
10689
04e61e64db63 [gaim-migrate @ 12238]
Tim Ringenbach <marv@pidgin.im>
parents: 10651
diff changeset
15 [Description]
04e61e64db63 [gaim-migrate @ 12238]
Tim Ringenbach <marv@pidgin.im>
parents: 10651
diff changeset
16 Gaim allows you to talk to anyone using a variety of messaging protocols,
04e61e64db63 [gaim-migrate @ 12238]
Tim Ringenbach <marv@pidgin.im>
parents: 10651
diff changeset
17 including AIM (Oscar and TOC), ICQ, IRC, Yahoo!, MSN Messenger, Jabber,
04e61e64db63 [gaim-migrate @ 12238]
Tim Ringenbach <marv@pidgin.im>
parents: 10651
diff changeset
18 Gadu-Gadu, Napster, and Zephyr. These protocols are implemented using a
04e61e64db63 [gaim-migrate @ 12238]
Tim Ringenbach <marv@pidgin.im>
parents: 10651
diff changeset
19 modular, easy to use design. To use a protocol, just add an account using the
04e61e64db63 [gaim-migrate @ 12238]
Tim Ringenbach <marv@pidgin.im>
parents: 10651
diff changeset
20 account editor.
10362
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
21
10689
04e61e64db63 [gaim-migrate @ 12238]
Tim Ringenbach <marv@pidgin.im>
parents: 10651
diff changeset
22 Gaim supports many common features of other clients, as well as many unique
04e61e64db63 [gaim-migrate @ 12238]
Tim Ringenbach <marv@pidgin.im>
parents: 10651
diff changeset
23 features, such as perl scripting, TCL scripting and C plugins.
10362
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
24
10689
04e61e64db63 [gaim-migrate @ 12238]
Tim Ringenbach <marv@pidgin.im>
parents: 10651
diff changeset
25 Gaim is NOT affiliated with or endorsed by America Online, Inc., Microsoft
04e61e64db63 [gaim-migrate @ 12238]
Tim Ringenbach <marv@pidgin.im>
parents: 10651
diff changeset
26 Corporation, Yahoo! Inc., or ICQ Inc.
10362
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
27
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
28 [BuildPrepare]
10651
8fbab42659c2 [gaim-migrate @ 12176]
Tim Ringenbach <marv@pidgin.im>
parents: 10552
diff changeset
29 prepareBuild --enable-nss --enable-gnutls --enable-binreloc --disable-perl --disable-tcl --disable-gtktest
10362
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
30
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
31 [BuildUnprepare]
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
32 unprepareBuild
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
33
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
34 [Imports]
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
35 rm -rf include
10509
07402c00520c [gaim-migrate @ 11806]
Tim Ringenbach <marv@pidgin.im>
parents: 10362
diff changeset
36 rm -rf lib/pkgconfig
10362
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
37 find -name '*.la' | xargs rm
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
38 echo '*' | import
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
39
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
40 [Prepare]
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
41 # Dependency checking
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
42 require @gtk.org/gtk 2.2
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
43 require @68k.org/libaudiofile 0.0
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
44 require @xiph.org/libao 2.0
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
45 require @gtkspell.sourceforge.net/gtkspell 0.0
10528
c3a964f4fc61 [gaim-migrate @ 11849]
Tim Ringenbach <marv@pidgin.im>
parents: 10509
diff changeset
46 require @gnutls.org/gnutls 11.0 || { require @mozilla.org/nspr 4 && require @mozilla.org/nss 3; }
10362
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
47
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
48 [Install]
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
49 # Put your installation script here
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
50 installExe ./bin/*
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
51 # do the plugins
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
52 copyFiles ./lib/gaim "$PREFIX/lib"
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
53 installMan 1 ./man/man1/gaim.1
10552
895ab663c87c [gaim-migrate @ 11927]
Tim Ringenbach <marv@pidgin.im>
parents: 10528
diff changeset
54 installDesktop "Networking/Instant Messaging" ./share/applications/gaim.desktop
10689
04e61e64db63 [gaim-migrate @ 12238]
Tim Ringenbach <marv@pidgin.im>
parents: 10651
diff changeset
55 installLocale ./share/locale
10362
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
56 copyFiles ./share/pixmaps "$PREFIX/share"
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
57 copyFiles ./share/sounds "$PREFIX/share"
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
58 installIcon ./share/pixmaps/gaim.png
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
59 # install and fix the .pc file
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
60 # move this to the -devel package when I make one
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
61 # copyFile ./lib/pkgconfig/gaim.pc "$PREFIX/lib/pkgconfig/gaim.pc"
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
62 # safeSed "$PREFIX/lib/pkgconfig/gaim.pc" "s|prefix=/usr/local|prefix=$PREFIX|"
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
63
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
64 [Uninstall]
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
65 # Usually just the following line is enough to uninstall everything
c398f55ce5c7 [gaim-migrate @ 11580]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
66 uninstallFromLog