summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-im/kadu/ChangeLog8
-rw-r--r--net-im/kadu/Manifest13
-rw-r--r--net-im/kadu/files/digest-kadu-0.4.024
-rw-r--r--net-im/kadu/files/kadu-toolbar_toggle-gentoo.diff162
-rw-r--r--net-im/kadu/kadu-0.4.0.ebuild245
5 files changed, 446 insertions, 6 deletions
diff --git a/net-im/kadu/ChangeLog b/net-im/kadu/ChangeLog
index 3177b031decd..e8dd92499561 100644
--- a/net-im/kadu/ChangeLog
+++ b/net-im/kadu/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-im/kadu
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/kadu/ChangeLog,v 1.21 2005/03/30 20:03:51 sekretarz Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-im/kadu/ChangeLog,v 1.22 2005/04/17 21:46:55 sekretarz Exp $
+
+*kadu-0.4.0 (17 Apr 2005)
+
+ 17 Apr 2005; Karol Wojtaszek <sekretarz@gentoo.org>
+ +files/kadu-toolbar_toggle-gentoo.diff, +kadu-0.4.0.ebuild:
+ Version bump, thanks to Marcin Kryczek <aye@gentoo.pl>
*kadu-0.4.0_rc3 (30 Mar 2005)
diff --git a/net-im/kadu/Manifest b/net-im/kadu/Manifest
index 425662692689..eb1d01e49619 100644
--- a/net-im/kadu/Manifest
+++ b/net-im/kadu/Manifest
@@ -3,28 +3,31 @@ Hash: SHA1
MD5 06b7374a870ba4e628682056281e02c1 kadu-0.4.0_rc3.ebuild 7763
MD5 6b57537cbf49758ceae23a4510f6598a kadu-0.3.7.ebuild 820
+MD5 f69d6d1da98aff003a6f1c5d09387988 kadu-0.4.0.ebuild 7471
MD5 6f738bedd198819888c44c1b8d31b07c kadu-0.4.0_rc2-r1.ebuild 7814
MD5 16ac3d0adb42d86b1f231af467d2931c kadu-0.3.9.ebuild 2093
MD5 4cd31fb88974954e268028c5b1dd663d kadu-0.4.0_rc2.ebuild 7631
MD5 5dea796a7f3e380693bd0185bd5b35cd kadu-0.3.6.ebuild 609
MD5 92e6b2c409481dba26af02a7b685af6b kadu-0.3.8.ebuild 867
-MD5 7822269b23205bcc87484eda312a94af ChangeLog 3000
+MD5 1298cc484786e53db3d315e03b091a9a ChangeLog 3201
MD5 a574ec2607edf5e80117d65415e01d3c metadata.xml 159
MD5 2b6dd9d889e66221f2f9d82d5653889b files/digest-kadu-0.4.0_rc2 1638
MD5 0b7c1b741e9bd306dbff42d1b217dd7b files/digest-kadu-0.4.0_rc3 1638
MD5 2b6dd9d889e66221f2f9d82d5653889b files/digest-kadu-0.4.0_rc2-r1 1638
MD5 878470dcf216da170b3878d17b0f59a2 files/kadu-0.4.0_rc2-nas-gentoo.diff 986
+MD5 0a4dbebc3ca1bcf58ddf0af2e289a663 files/kadu-toolbar_toggle-gentoo.diff 5983
MD5 a749836353c0aa03308822bdcbd08422 files/kadu-0.4.0_rc2-libgsm-amd64.patch 331
MD5 e19ebd592e5b94e0b82b481d90861819 files/xosd-gentoo.patch 1148
MD5 5d82fddca529f0af79869df2a55db7f1 files/digest-kadu-0.3.6 63
MD5 d6cc7076216ed7aa0d0ab8b3ff154d41 files/digest-kadu-0.3.7 63
MD5 7259b6aef0a2d10501b79c455fe4b763 files/digest-kadu-0.3.8 63
MD5 9c405497d2804fa81d6b2d48c00e227f files/digest-kadu-0.3.9 63
+MD5 461160290c6432abc7016928349ec366 files/digest-kadu-0.4.0 1633
MD5 878470dcf216da170b3878d17b0f59a2 files/kadu-0.3.9-nas-gentoo.diff 986
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.2.6 (GNU/Linux)
+Version: GnuPG v1.4.1 (GNU/Linux)
-iD8DBQFCSxSlZ/iYVBmujdURAvx8AJ9xXuSchUTHGl/zyCOKhJDZZw/ynwCfQyGN
-gqpNXLdVHJYWQ0gjDxTHmyM=
-=376Y
+iD8DBQFCYtmVZ/iYVBmujdURAiaaAKDG3dsSFmH42V4y+6hN7Hb8XRs8fwCgvPfA
+/eG0YlOGd4hoz6ySMkgKwcc=
+=4LLT
-----END PGP SIGNATURE-----
diff --git a/net-im/kadu/files/digest-kadu-0.4.0 b/net-im/kadu/files/digest-kadu-0.4.0
new file mode 100644
index 000000000000..45557a0108f8
--- /dev/null
+++ b/net-im/kadu/files/digest-kadu-0.4.0
@@ -0,0 +1,24 @@
+MD5 9d6c6e5ece8bb88a9e988c554af07bea kadu-0.4.0.tar.bz2 1198118
+MD5 1cec6670d6441d1251b3f430525564a3 tabs-r34.tar.bz2 11981
+MD5 539afdd2295ec462022f5e10d80a816c amarok-1.13.tar.gz 9201
+MD5 b17becaee7bfd0eeae4b7e22eef9b3bd tcl_scripting-20050403.tar.gz 617946
+MD5 2ef812084512cc14a95c1737535cbbdb kadu-theme-alt_cryst.tar.bz2 121877
+MD5 023085edabaf6a1b844fe6b5fc9315f9 kadu-theme-crystal-16.tar.bz2 45993
+MD5 57852ff3d3fd0063a642fcc173f7fa29 kadu-theme-crystal-22.tar.bz2 48895
+MD5 f0b33b0d42b9dc1de5c6b19097600a9e kadu-theme-gg3d.tar.bz2 78353
+MD5 5ec5ec33849c35ae8d2b114250b664b3 kadu-theme-noia-16.tar.bz2 109294
+MD5 586cc6ff9ba62f0fdd7c7c1adf229efb kadu-theme-nuvola-16.tar.gz 119276
+MD5 7a17b4881141b346c6268ef25c284613 kadu-theme-nuvola-22.tar.gz 147311
+MD5 766e4841651364d032b68b8321f153ef kadu-theme-old_default.tar.bz2 85997
+MD5 a8d5d60e062255e77b732a37ea2e5e7c kadu-theme-piolnet.tar.bz2 79831
+MD5 cbd97ea8302ac4ad9507f104597da0c4 kadu-theme-real_gg.tar.bz2 131697
+MD5 640acacc8f5b33da6e1eb379eb3177dc weather-2.01.tar.bz2 46297
+MD5 001deaa1ebd6beaf104b77fce9aeff2e ext_info-1.2.tar.bz2 17868
+MD5 2f884c06b7fc540e46323d9a4cee6487 spy-0.0.7-test.tar.gz 17594
+MD5 77b0b8da0723ef23caaf1c75125d0fa4 firewall-20050308.tar.bz2 6858
+MD5 4a424362ba3a10ddbce0fb1a4ff4d649 KaduChess-0.3-Calista.tar.bz2 24892
+MD5 7bf1890bc208897e407189e3b504682f led_notify-0.2.tar.bz2 2838
+MD5 4a6e4d52b8efa3d182e2a55e02cc3383 xmms-1.25.tar.gz 14992
+MD5 506d8fc409f228b7feba4b3b7b14f412 xosd_notify-050322.tar.bz2 12454
+MD5 e63393922738bea7a9d1be675c826608 mail-0.2.0.tar.bz2 93363
+MD5 0e427d25f69f5f5d10e303f8d2e79e70 spellchecker-0.13.tar.gz 9121
diff --git a/net-im/kadu/files/kadu-toolbar_toggle-gentoo.diff b/net-im/kadu/files/kadu-toolbar_toggle-gentoo.diff
new file mode 100644
index 000000000000..24b931618fac
--- /dev/null
+++ b/net-im/kadu/files/kadu-toolbar_toggle-gentoo.diff
@@ -0,0 +1,162 @@
+diff -aurp kadu.orig/kadu/kadu.cpp kadu/kadu/kadu.cpp
+--- kadu.orig/kadu/kadu.cpp 2005-03-20 15:48:41.000000000 +0100
++++ kadu/kadu/kadu.cpp 2005-03-20 19:07:06.000000000 +0100
+@@ -100,8 +100,21 @@ void ToolBar::createControls()
+ if ((*j).caption== "--separator--")
+ addSeparator();
+ else
+- (*j).button = new QToolButton(icons_manager.loadIcon((*j).iconname), (*j).caption,
+- QString::null, (*j).receiver, (*j).slot, this, (*j).name);
++ {
++ if ((*j).type == ToolButton::Push)
++ {
++ (*j).button = new QToolButton(icons_manager.loadIcon((*j).iconname), (*j).caption,
++ QString::null, (*j).receiver, (*j).slot, this, (*j).name);
++ }
++ else
++ {
++ (*j).button = new QToolButton(icons_manager.loadIcon((*j).iconname), (*j).caption,
++ QString::null, 0, 0, this, (*j).name);
++ (*j).button->setToggleButton(true);
++ (*j).button->setOn((*j).type == ToolButton::ToggleOn);
++ connect((*j).button, SIGNAL(toggled(bool)), (*j).receiver, (*j).slot);
++ }
++ }
+
+ setStretchableWidget(new QWidget(this));
+ kdebugf2();
+@@ -141,6 +154,34 @@ void ToolBar::registerButton(const QStri
+ RToolButton.slot= slot;
+ RToolButton.position= position;
+ RToolButton.name= name;
++ RToolButton.type= ToolButton::Push;
++
++ if ((RegisteredToolButtons.count()<(uint)(position+1)) || (position == -1))
++ RegisteredToolButtons.append(RToolButton);
++ else
++ RegisteredToolButtons.insert(RegisteredToolButtons.at(position), RToolButton);
++
++ if(instance!=NULL)
++ instance->createControls();
++ kdebugf2();
++}
++
++void ToolBar::registerToggleButton(const QString &iconname, const QString& caption, bool on,
++ QObject* receiver, const char* slot, int position, const char* name)
++{
++ kdebugf();
++ if(instance!=NULL)
++ instance->clear();
++
++ ToolButton RToolButton;
++
++ RToolButton.iconname= iconname;
++ RToolButton.caption= caption;
++ RToolButton.receiver= receiver;
++ RToolButton.slot= slot;
++ RToolButton.position= position;
++ RToolButton.name= name;
++ RToolButton.type= on ? ToolButton::ToggleOn : ToolButton::ToggleOff;
+
+ if ((RegisteredToolButtons.count()<(uint)(position+1)) || (position == -1))
+ RegisteredToolButtons.append(RToolButton);
+@@ -400,8 +441,10 @@ Kadu::Kadu(QWidget *parent, const char *
+ setActiveGroup("");
+
+ // dodanie przyciskow do paska narzedzi
+- ToolBar::registerButton("ShowHideInactiveUsers", tr("Show / hide inactive users"), Userbox, SLOT(showHideInactive()), -1, "inactiveUsersButton");
+- ToolBar::registerButton("ShowOnlyDescriptionUsers", tr("Show / hide users without description"), Userbox, SLOT(showHideDescriptions()), -1, "withDescriptionUsersButton");
++ ToolBar::registerToggleButton("ShowHideInactiveUsers", tr("Show / hide inactive users"),
++ config_file.readBoolEntry("General","ShowHideInactive"), Userbox, SLOT(showHideInactive(bool)), -1, "inactiveUsersButton");
++ ToolBar::registerToggleButton("ShowOnlyDescriptionUsers", tr("Show / hide users without description"),
++ config_file.readBoolEntry("General","ShowOnlyDescriptionUsers"), Userbox, SLOT(showHideDescriptions(bool)), -1, "withDescriptionUsersButton");
+ ToolBar::registerButton("Configuration", tr("Configuration"), this, SLOT(configure()), -1, "configurationButton");
+ ToolBar::registerSeparator();
+ ToolBar::registerButton("History", tr("View history"), this, SLOT(viewHistory()), -1, "historyButton");
+diff -aurp kadu.orig/kadu/kadu.h kadu/kadu/kadu.h
+--- kadu.orig/kadu/kadu.h 2005-03-20 15:48:41.000000000 +0100
++++ kadu/kadu/kadu.h 2005-03-20 19:02:48.000000000 +0100
+@@ -35,6 +35,12 @@ class ToolBar : public QToolBar
+ QString slot;
+ QToolButton* button;
+ int position;
++ enum
++ {
++ Push,
++ ToggleOff,
++ ToggleOn
++ } type;
+ };
+ static QValueList<ToolButton> RegisteredToolButtons;
+ void createControls();
+@@ -44,6 +50,8 @@ class ToolBar : public QToolBar
+ ~ToolBar();
+ static void registerButton(const QString &iconname, const QString& caption,
+ QObject* receiver, const char* slot, const int position=-1, const char* name="");
++ static void registerToggleButton(const QString &iconname, const QString& caption, bool on,
++ QObject* receiver, const char* slot, const int position=-1, const char* name="");
+ static void unregisterButton(const char* name);
+ static void registerSeparator(int position=-1);
+ static QToolButton* getButton(const char* name);
+diff -aurp kadu.orig/kadu/userbox.cpp kadu/kadu/userbox.cpp
+--- kadu.orig/kadu/userbox.cpp 2005-03-20 15:48:42.000000000 +0100
++++ kadu/kadu/userbox.cpp 2005-03-20 18:08:42.000000000 +0100
+@@ -678,6 +678,14 @@ void UserBox::showHideInactive()
+ kdebugf2();
+ }
+
++void UserBox::showHideInactive(bool state)
++{
++ kdebugf();
++ config_file.writeEntry("General","ShowHideInactive",state);
++ all_refresh();
++ kdebugf2();
++}
++
+ void UserBox::showHideDescriptions()
+ {
+ kdebugf();
+@@ -685,6 +693,13 @@ void UserBox::showHideDescriptions()
+ all_refresh();
+ }
+
++void UserBox::showHideDescriptions(bool state)
++{
++ kdebugf();
++ config_file.writeEntry("General","ShowOnlyDescriptionUsers",state);
++ all_refresh();
++}
++
+ UinsList UserBox::getSelectedUins() const
+ {
+ kdebugf();
+diff -aurp kadu.orig/kadu/userbox.h kadu/kadu/userbox.h
+--- kadu.orig/kadu/userbox.h 2005-03-20 15:48:42.000000000 +0100
++++ kadu/kadu/userbox.h 2005-03-20 17:58:14.000000000 +0100
+@@ -418,12 +418,26 @@ class UserBox : public QListBox , QToolT
+ void showHideInactive();
+
+ /**
++ \fn void showHideInactive()
++ Przełącza tryb pokazywania kontaktów niedostępnych.
++ \param state Jeśli true - kontakty nieaktywne sa widoczne
++ **/
++ void showHideInactive(bool state);
++
++ /**
+ \fn void showHideDescriptions()
+ Przełącza tryb pokazywania opisów kontaktów.
+ **/
+ void showHideDescriptions();
+
+ /**
++ \fn void showHideDescriptions()
++ Przełącza tryb pokazywania opisów kontaktów.
++ \param state Jeśli true - kontakty bez opisow sa ukryte
++ **/
++ void showHideDescriptions(bool state);
++
++ /**
+ \fn virtual void clear()
+ Czyśli listę.
+ **/
diff --git a/net-im/kadu/kadu-0.4.0.ebuild b/net-im/kadu/kadu-0.4.0.ebuild
new file mode 100644
index 000000000000..4ffa9564c15f
--- /dev/null
+++ b/net-im/kadu/kadu-0.4.0.ebuild
@@ -0,0 +1,245 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/kadu/kadu-0.4.0.ebuild,v 1.1 2005/04/17 21:46:55 sekretarz Exp $
+
+inherit flag-o-matic eutils
+
+VTCL="20050403"
+VTABS="r34"
+VAMAROK="1.13"
+WEATHER="2.01"
+EXT_INFO="1.2"
+XMMS="1.25"
+XOSD_NOTIFY="050322"
+MAIL="0.2.0"
+SPELLCHECKER="0.13"
+SPY="0.0.7-test"
+CHESS="0.3-Calista"
+FIREWALL="20050308"
+LED_NOTIFY="0.2"
+
+THEMES="kadu-theme-crystal-16
+ kadu-theme-crystal-22
+ kadu-theme-gg3d
+ kadu-theme-noia-16
+ kadu-theme-nuvola-16
+ kadu-theme-nuvola-22
+ kadu-theme-old_default
+ kadu-theme-piolnet
+ kadu-theme-real_gg
+ alt_cryst"
+
+DESCRIPTION="QT client for popular in Poland Gadu-Gadu IM network"
+HOMEPAGE="http://kadu.net/"
+
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~amd64"
+
+IUSE="X debug alsa arts esd voice speech nas oss spell ssl tcltk xmms xosd amarok pheaders extraicons extramodules mail"
+
+DEPEND="x11-libs/qt
+ media-libs/libsndfile
+ alsa? ( media-libs/alsa-lib virtual/alsa )
+ arts? ( kde-base/arts )
+ amarok? ( media-sound/amarok )
+ esd? ( media-sound/esound )
+ nas? ( media-libs/nas )
+ pheaders? ( >=sys-devel/gcc-3.4.0 )
+ spell? ( app-dicts/aspell-pl )
+ ssl? ( dev-libs/openssl )
+ speech? ( app-accessibility/powiedz )
+ tcltk? ( >=dev-lang/tcl-8.4.0 >=dev-lang/tk-8.4.0 )
+ xmms? ( media-sound/xmms )
+ xosd? ( x11-libs/xosd )
+ X? ( virtual/x11 )"
+
+SRC_URI="http://kadu.net/download/stable/${P}.tar.bz2
+ http://biprowod.wroclaw.pl/kadu/smieci/tabs-${VTABS}.tar.bz2
+ amarok? ( http://scripts.one.pl/amarok/stable/0.4.0/amarok-${VAMAROK}.tar.gz )
+ tcltk? ( http://scripts.one.pl/tcl4kadu/files/snapshots/tcl_scripting-${VTCL}.tar.gz )
+ extraicons? (
+ http://biprowod.wroclaw.pl/kadu/kadu-theme-alt_cryst.tar.bz2
+ http://www.kadu.net/download/additions/kadu-theme-crystal-16.tar.bz2
+ http://www.kadu.net/download/additions/kadu-theme-crystal-22.tar.bz2
+ http://www.kadu.net/download/additions/kadu-theme-gg3d.tar.bz2
+ http://www.kadu.net/download/additions/kadu-theme-noia-16.tar.bz2
+ http://www.kadu.net/download/additions/kadu-theme-nuvola-16.tar.gz
+ http://www.kadu.net/download/additions/kadu-theme-nuvola-22.tar.gz
+ http://www.kadu.net/download/additions/kadu-theme-old_default.tar.bz2
+ http://www.kadu.net/download/additions/kadu-theme-piolnet.tar.bz2
+ http://www.kadu.net/download/additions/kadu-theme-real_gg.tar.bz2 )
+ extramodules? (
+ http://pcb45.tech.us.edu.pl/~blysk/weather/weather-${WEATHER}.tar.bz2
+ http://nkg.republika.pl/files/ext_info-${EXT_INFO}.tar.bz2
+ http://biprowod.wroclaw.pl/kadu/inne/spy-${SPY}.tar.gz
+ http://users.skorpion.wroc.pl/arturmat/firewall/files/firewall-${FIREWALL}.tar.bz2
+ http://biprowod.wroclaw.pl/kadu/KaduChess-${CHESS}.tar.bz2
+ http://pcb45.tech.us.edu.pl/~blysk/led_notify/led_notify-${LED_NOTIFY}.tar.bz2 )
+ xmms? ( http://scripts.one.pl/xmms/devel/0.4.0/xmms-${XMMS}.tar.gz )
+ xosd? ( http://www.kadu.net/~joi/xosd_notify/xosd_notify-${XOSD_NOTIFY}.tar.bz2 )
+ mail? ( http://michal.kernel-panic.cjb.net/mail/tars/release/mail-${MAIL}.tar.bz2 )
+ spell? (
+ http://scripts.one.pl/spellchecker/devel/0.4.0/spellchecker-${SPELLCHECKER}.tar.gz
+ )"
+
+S=${WORKDIR}/${PN}
+
+enable_module() {
+ if use ${1}; then
+ mv ${WORKDIR}/${2} ${WORKDIR}/kadu/modules/
+ module_config ${2} m
+ fi
+}
+
+module_config() {
+ sed -i -r "s/(^module_${1}\\s*=\\s*).*/\\1${2}/" .config
+}
+
+spec_config() {
+ sed -i -r "s/(^${2}\\s*=\\s*).*//" modules/${1}/spec
+ echo "${2}=${3}" >> modules/${1}/spec
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ # Disabling autodownload for modules
+ rm -f ${WORKDIR}/kadu/modules/*.web
+
+ # Disabling autodownload for icons
+ rm -f ${WORKDIR}/kadu/varia/themes/icons/*.web
+
+ # Disabling all modules and iconsets for further activation via USE flags
+ sed .config -i -e 's/=m/=n/g'
+ sed .config -i -e 's/=y/=n/g'
+
+ # Enable default icon theme
+ sed .config -i -e 's/icons_default=n/icons_default=y/'
+
+ enable_module amarok amarok
+ enable_module spell spellchecker
+ enable_module xmms xmms
+ enable_module xosd xosd_notify
+ enable_module mail mail
+ enable_module tcltk "tcl_scripting"
+
+ enable_module extramodules weather
+ enable_module extramodules ext_info
+ enable_module extramodules spy
+ enable_module extramodules led_notify
+ enable_module extramodules tabs
+
+ # put some patches
+ epatch ${FILESDIR}/kadu-toolbar_toggle-gentoo.diff
+ use xosd && epatch ${FILESDIR}/xosd-gentoo.patch
+}
+
+src_compile() {
+ filter-flags -fno-rtti
+
+ # Enabling default iconset
+ module_config icons_default y
+
+ # Enabling dependencies that are needed by other modules
+ module_config account_management m
+ module_config autoaway m
+ module_config autoresponder m
+ module_config config_wizard m
+ module_config dcc m
+ module_config default_sms m
+ module_config docking m
+ module_config filedesc m
+ module_config hints m
+ module_config notify m
+ module_config sms m
+ module_config sound m
+ module_config desktop_docking m
+
+ if use extramodules; then
+ if use !tcltk; then
+ ewarn "script_chess depends on module_tcl_scripting;"
+ ewarn "It won't be installed."
+ fi
+ fi
+
+ # Firewall
+ if use extramodules; then
+ if use !tcltk; then
+ ewarn "script_firewall depends on module_tcl_scripting;"
+ ewarn "It won't be installed."
+ fi
+ fi
+
+ use speech && module_config speech m
+ use extramodules && module_config autoresponder
+
+ # static modules (disable only, do not compile as .so)
+ use ssl && module_config encryption y
+
+ # dynamic modules
+ use alsa && module_config alsa_sound m
+ use arts && module_config arts_sound m
+ use esd && module_config esd_sound m
+ use nas && module_config nas_sound m
+ use voice && module_config voice m
+ use X && module_config x11_docking m
+ use X && module_config wmaker_docking m
+
+ # Some fixes
+ einfo "Fixing modules spec files"
+ if use arts; then
+ spec_config arts_sound MODULE_INCLUDES_PATH "\"$(kde-config --prefix)/include $(kde-config --prefix)/include/artsc\""
+ spec_config arts_sound MODULE_LIBS_PATH $(kde-config --prefix)/lib
+ fi
+ if use amarok; then
+ spec_config amarok MODULE_INCLUDES_PATH $(kde-config --prefix)/include
+ spec_config amarok MODULE_LIBS_PATH $(kde-config --prefix)/lib
+ fi
+
+ if use extramodules; then
+ einfo "Changing default firewall log location to user's homedir/.gg/firewall.log"
+ sed ${WORKDIR}/firewall.tcl -i -e 's%$module(scriptpath)/firewall.log%$env(HOME)/.gg/firewall.log%g'
+ fi
+
+ local myconf
+ myconf="${myconf} --enable-modules --enable-dist-info=Gentoo"
+
+ use voice && myconf="${myconf} --enable-dependency-tracing"
+ use debug && myconf="${myconf} --enable-debug"
+ use pheaders && myconf="${myconf} --enable-pheaders"
+
+ econf ${myconf} || die
+ emake || die
+}
+
+src_install() {
+ make \
+ DESTDIR=${D} \
+ install || die
+
+ # Installing additional scripts and plugins
+ # Chess and Firewall
+ if use extramodules; then
+ if use tcltk; then
+ einfo "Installing Chess script"
+ insinto /usr/share/kadu/modules/data/tcl_scripting/scripts
+ doins ${WORKDIR}/KaduChess/{data,pics,KaduChess.tcl}
+ # small fix form author's site
+ sed ${D}/usr/share/kadu/modules/data/tcl_scripting/scripts/KaduChess.tcl -i -e 's/on chat0 KC_recv KC_recv/on chat0 KC_recv/g'
+
+ einfo "Installing Firewall module"
+ doins ${WORKDIR}/firewall{.tcl,.png}
+ fi
+ fi
+
+ if use extraicons; then
+ einfo "Installing extra icons"
+ for theme in ${THEMES}; do
+ insinto /usr/share/kadu/themes/icons/${theme}
+ doins ${WORKDIR}/${theme}/{icons.conf,*.png}
+ done
+ fi
+}