1 # Contributor: Jakub Schmidtke <sjakub-at-gmail.com>
6 pkgdesc="Gentoo version of Psi - Jabber client"
8 url="http://packages.gentoo.org/packages/?category=net-im;name=psi"
10 depends=('qca>=1.0-3' 'qt>=3.3' 'qca-tls>=1.0-3' 'gnupg>=1.4.7-1')
12 conflicts=('psi' 'psi-svn' 'pedrito')
14 source=("http://distfiles.gentoo.org/distfiles/psi-0.10.tar.bz2" \
15 "http://distfiles.gentoo.org/distfiles/gentoo-psi-0.10.tar.bz2" \
16 "http://distfiles.gentoo.org/distfiles/gentoo-psi-0.10-r2.tar.bz2" \
17 "psi-desktop2.patch" "psi-pathfix2.patch" "psi-reverse_trayicon2.patch" \
20 md5sums=('f0fd4ccf077f7b24e236f71c22649b7b' '4aacc2de659a5a551e9b47382af83c35'\
21 'cc45686ae0cb30061e4a79767597dace' '73fdd72109e3a7469c80d96ed5f5d410'\
22 '0dacabdec9ce29cc56faadeeff01ec3b' 'c2528c15be8277434647506d791663d8'\
23 '0d5cafd17325fc912c4855252d73378f')
25 _sdir="$startdir/src/psi-0.10"
28 . /etc/profile.d/qt.sh
32 patch -p1 < ../psi-pathfix2.patch
33 patch -p1 < ../psi-desktop2.patch
34 patch -p0 < ../psi-reverse_trayicon2.patch
36 # from http://norman.rasmussen.co.za/darcs/psi-muc/
37 patch -p1 < ../0.10/psi-muc_support.patch
38 patch -p1 < ../0.10/psi-muc_support-update-20051123.patch
39 patch -p1 < ../0.10/psi-muc_support-update-20060114.patch
42 patch -p1 < ../0.10/psi-fix_popup_richtext.patch
43 patch -p1 < ../0.10/psi-roster-nr-0.9.14.patch
44 patch -p1 < ../0.10/psi-status_indicator++_add-on_roster-nr.patch
46 cp ../psi-indicator.png iconsets/roster/default/indicator.png
48 # from http://www.cs.kuleuven.ac.be/~remko/psi/
49 patch -p1 < ../0.10/jep8-avatars_iris.diff
50 patch -p1 < ../0.10/jep8-avatars_psi.diff
52 # from http://machekku.uaznia.net/jabber/psi/patches/
53 patch -p1 < ../0.10/psi-machekku-smart_reply_and_forward-0.5_psi-gentoo.diff
54 patch -p2 < ../0.10/psi-machekku-keep_message_in_auto_away_status.diff
55 patch -p2 < ../0.10/psi-machekku-quote_emoticons.diff
56 patch -p2 < ../0.10/psi-machekku-emoticons_advanced_toggle.diff
57 patch -p1 < ../0.10/psi-machekku-linkify_fix.diff
58 patch -p1 < ../0.10/psi-machekku-autostatus_while_dnd.diff
59 patch -p1 < ../0.10/psi-machekku-visual_styles_manifest.diff
60 patch -p2 < ../0.10/psi-machekku-tool_window_minimize_fix_for_windows.diff
61 patch -p1 < ../0.10/psi-machekku-new_character_counter.diff
63 # from ftp://ftp.patryk.one.pl/pub/psi/skazi/patches/
64 patch -p1 < ../0.10/psi-options_resize-fix.diff
65 patch -p1 < ../0.10/psi-settoggles-fix.diff
66 patch -p1 < ../0.10/psi-line_in_options-mod.diff
67 patch -p0 < ../0.10/psi-empty_group-fix.diff
68 patch -p1 < ../0.10/psi-no_online_status-mod.diff
69 patch -p1 < ../0.10/psi-status_history-add-psi-gentoo.diff
70 patch -p1 < ../0.10/psi-icon_buttons_big_return-mod.diff
71 patch -p1 < ../0.10/psi-linkify-mod-rev-fix.diff
72 patch -p1 < ../0.10/psi-save_profile-mod.diff
73 patch -p1 < ../0.10/psi-url_emoticon-mod.diff
74 patch -p1 < ../0.10/psi-thin_borders-mod.diff
76 # from http://www.uaznia.net/psi-daisy/patches/
77 patch -p0 < ../0.10/filetransfer.diff
78 patch -p1 < ../0.10/psi-emots-mod.diff
79 patch -p1 < ../0.10/psi_michalj_statusicon_in_chatdlg_titlebar.diff
80 patch -p1 < ../0.10/psi_michalj_custom_rostericons_in_tooltips.diff
82 # from ftp://ftp.patryk.one.pl/pub/psi/patches/
83 patch -p1 < ../0.10/psi-psz-chatdlg_typed_msgs_history.diff
85 # from http://kg.alternatywa.info/psi/patche/
86 patch -p1 < ../0.10/psi-status-timeout-kfix.diff
87 patch -p1 < ../0.10/psi-kg-spoof.diff
88 patch -p1 < ../0.10/psi-kg-individual_status_add.diff
92 patch -p1 < ../0.10/psi-certs.patch
94 # upstream patches from psi-flyspray
95 patch -p1 < ../0.10/psi-fix_groupsortingstyle_toggles.patch
96 patch -p1 < ../0.10/psi-multiple_account_groups.diff
98 # from http://psi-pedrito.go.pl/
99 patch -p1 < ../0.10/pedrito-null-key-string-fix.diff
100 patch -p0 < ../0.10/pedrito-avatars-printf-off.diff
101 patch -p1 < ../0.10/pedrito-linkify_and_wrap-client.diff
102 patch -p1 < ../0.10/pedrito-group_menuitem_for_notinlist.diff
104 # from psi-devel mailing list
105 patch -p0 < ../0.10/psi-history_lug.patch
106 patch -p1 < ../0.10/psi-history-deletion-bugfix.patch
107 patch -p1 < ../0.10/checkboxes-sound-options.diff
109 # from http://mircea.bardac.net/psi/patches/
110 patch -p1 < ../0.10/psi-cli-v2.diff
113 patch -p1 < ../0.10/psi-trayicon_ubuntu_fix.patch
115 # from http://home.unclassified.de/files/psi/patches/
116 patch -p2 < ../0.10/statusdlg-enterkey.diff
117 patch -p1 < ../0.10/fix-min-window-notify.diff
118 patch -p1 < ../0.10/hide-no-resource-from-contextmenu.diff
119 patch -p1 < ../0.10/custom-sound-popup.patch
120 patch -p1 < ../0.10/offline-contact-animation.diff
123 # from bugs.gentoo.org
124 patch -p1 < ../0.10/psi-add-status-history.patch
126 # from http://rydz.homedns.org
127 patch -p2 < ../0.10/psi-filetransfer-finish-popup-qsorix.patch
129 # from http://k.uaznia.net/jabber/psi/patches/
130 patch -p1 < ../0.10/a-psi-k-emergency_away_status_button.diff
131 patch -p1 < ../0.10/psi-evil_message_support.patch
132 patch -p1 < ../0.10/psi-auto_responder.patch
133 patch -p1 < ../0.10/psi-auto_responder_gui.patch
135 # from http://www.cs.kuleuven.ac.be/~remko/psi/
136 patch -p1 < ../0.10/rosteritems_iris.diff
137 # this one was chagned because of muc support
138 patch -p1 < ../0.10/rosteritems_psi_with_muc.diff
140 # from http://delx.cjb.net/psi/
141 patch -p1 < ../0.10/psi-nicknames.patch
143 # from http://norman.rasmussen.co.za/darcs/psi-rc/
144 patch -p0 < ../0.10/norman-rc.diff
145 patch -p1 < ../0.10/norman-darcs-20051129.diff
147 # from http://machekku.uaznia.net/jabber/psi/patches/
148 patch -p1 < ../0.10/psi-machekku-rc_multiline_status_fix.diff
150 # from http://norman.rasmussen.co.za/darcs/psi-rc/
151 patch -p1 < ../0.10/psi-dynamic-priority-rc-fix.diff
152 patch -p1 < ../0.10/norman-darcs-20051231.patch
154 # created for psi-gentoo and roster-nr
155 patch -p1 < ../0.10/psi-smile_icon_emoticonset.patch
156 patch -p1 < ../0.10/psi-enable_avatars.patch
157 patch -p1 < ../0.10/psi-transport_icons_and_avatars.patch
158 patch -p1 < ../0.10/psi-client_avatars_icons.patch
159 patch -p1 < ../0.10/psi-emoticons_advanced_toggle-add-roster-nr.patch
160 patch -p1 < ../0.10/psi-chatdlg_messages_colors_distinguishes.patch
161 patch -p1 < ../0.10/psi-messages_color_backgrounds_in_chat.patch
162 patch -p1 < ../0.10/psi-sort-style-on-roster-nr.patch
163 patch -p1 < ../0.10/psi-says_mod.patch
164 patch -p1 < ../0.10/psi-muc_support_langpacks_fix.patch
165 patch -p1 < ../0.10/psi-copy_jid_or_status_message_to_clipboard.patch
166 patch -p1 < ../0.10/psi-timestamps_option_and_date_showing.patch
167 patch -p1 < ../0.10/psi-avatars_graph_settings_filetypes.patch
168 patch -p1 < ../0.10/psi-auto_responder_by_message.patch
169 patch -p1 < ../0.10/psi-taskbar_flashing.patch
173 patch -p1 < ../0.10/psi-nelchael-exec_command.patch
174 patch -p1 < ../0.10/psi-nelchael-disconnect-sleep.patch
177 #patch -p1 < ../0.10/psi-nelchael-audacious-status-0.3.patch
179 patch -p1 < ../0.10/psi-gentoo-version.patch
181 ./configure --prefix=/usr --disable-growl
183 # fixes weird Gentoo bugs : #150187 and #154556
184 cd $_sdir/libpsi/psiwidgets
185 ${QTDIR}/bin/qmake psiwidgets.pro \
186 QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \
187 QMAKE=${QTDIR}/bin/qmake \
189 || die "Qmake failed"
191 # for CXXFLAGS from make.conf
193 ${QTDIR}/bin/qmake src.pro \
194 QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \
195 QMAKE=${QTDIR}/bin/qmake \
197 || die "Qmake failed"
200 ${QTDIR}/bin/qmake psi.pro \
201 QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \
202 QMAKE=${QTDIR}/bin/qmake \
204 || die "Qmake failed"
208 make INSTALL_ROOT=$startdir/pkg install