view gaim.apspec.in @ 11701:5d7da4056644

[gaim-migrate @ 13992] SF Patch #1332870, from corfe83 "In gtkimhtml.c, in function gtk_smiley_tree_destroy, in the while loop, we go through the tree and add all the nodes to be deleted to a GSList. However, we add them by appending them to the list, but the order of the list doesn't matter. Because GSList's don't keep track of the last item in the list, this means each step of the loop (when we append) we are incrementing through the whole list. In my tests, on closing the preference box, this loop was gone through more than 1,000 times, and at many stages this list it is appending to is well over 50 elements long. I've changed it to prepend items to the list, which works just the same (although destroying items in the tree in a different order), and is much faster (prepend works in O(1) time, as opposed to O(N) time)." I think the moral of the story is, when order doesn't matter, use g_[s]list_prepend instead of g_[s]list_append. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 20 Oct 2005 08:01:03 +0000
parents a6d446cf090f
children d7983c1d79bb
line wrap: on
line source

# -*-shell-script-*-

[Meta]
RootName: @gaim.sourceforge.net/gaim:$SOFTWAREVERSION
DisplayName: Gaim Internet Messenger
ShortName: gaim
Maintainer: The Gaim Developers
URL: http://gaim.sourceforge.net/
Packager: Tim Ringenbach <marv_sf@users.sourceforge.net>
Summary: A GTK+ based multiprotocol instant messaging client
SoftwareVersion: @VERSION@
InterfaceVersion: 2.0
PackageVersion: 1

[Description]
Gaim allows you to talk to anyone using a variety of messaging protocols,
including AIM (Oscar and TOC), ICQ, IRC, Yahoo!, MSN Messenger, Jabber,
Gadu-Gadu, Napster, and Zephyr. These protocols are implemented using a
modular, easy to use design. To use a protocol, just add an account using the
account editor.

Gaim supports many common features of other clients, as well as many unique
features, such as perl scripting, TCL scripting and C plugins.

Gaim is NOT affiliated with or endorsed by America Online, Inc., Microsoft
Corporation, Yahoo! Inc., or ICQ Inc.

[BuildPrepare]
prepareBuild --enable-nss --enable-gnutls --enable-binreloc --disable-perl --disable-tcl --disable-gtktest

[BuildUnprepare]
unprepareBuild

[Imports]
rm -rf include
rm -rf lib/pkgconfig
find -name '*.la' | xargs rm
echo '*' | import

[Prepare]
# Dependency checking
require @gtk.org/gtk 2.2
require @68k.org/libaudiofile 0.0
require @xiph.org/libao 2.0
require @gtkspell.sourceforge.net/gtkspell 0.0
require @gnutls.org/gnutls 11.0 || { require @mozilla.org/nspr 4 && require @mozilla.org/nss 3; }

[Install]
# Put your installation script here
installExe ./bin/*
# do the plugins
copyFiles ./lib/gaim "$PREFIX/lib"
installMan 1 ./man/man1/gaim.1
installDesktop "Networking/Instant Messaging" ./share/applications/gaim.desktop
installLocale ./share/locale
copyFiles ./share/pixmaps "$PREFIX/share"
copyFiles ./share/sounds "$PREFIX/share"
installIcon ./share/pixmaps/gaim.png
# install and fix the .pc file
# move this to the -devel package when I make one
# copyFile ./lib/pkgconfig/gaim.pc "$PREFIX/lib/pkgconfig/gaim.pc"
# safeSed "$PREFIX/lib/pkgconfig/gaim.pc" "s|prefix=/usr/local|prefix=$PREFIX|"

[Uninstall]
# Usually just the following line is enough to uninstall everything
uninstallFromLog