Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-im/psi: ChangeLog psi-0.13_rc1-r1.ebuild psi-0.13_rc1.ebuild
Date: Tue, 02 Jun 2009 17:04:42
Message-Id: E1MBXPk-0005JX-3L@stork.gentoo.org
1 pva 09/06/02 17:04:40
2
3 Modified: ChangeLog
4 Added: psi-0.13_rc1-r1.ebuild
5 Removed: psi-0.13_rc1.ebuild
6 Log:
7 Fixed bug when call dialog might not display, bug #271091, thank Petr Moravek for report.
8 (Portage version: 2.2_rc33/cvs/Linux i686)
9
10 Revision Changes Path
11 1.160 net-im/psi/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-im/psi/ChangeLog?rev=1.160&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-im/psi/ChangeLog?rev=1.160&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-im/psi/ChangeLog?r1=1.159&r2=1.160
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-im/psi/ChangeLog,v
20 retrieving revision 1.159
21 retrieving revision 1.160
22 diff -u -r1.159 -r1.160
23 --- ChangeLog 1 Jun 2009 11:31:37 -0000 1.159
24 +++ ChangeLog 2 Jun 2009 17:04:40 -0000 1.160
25 @@ -1,6 +1,13 @@
26 # ChangeLog for net-im/psi
27 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-im/psi/ChangeLog,v 1.159 2009/06/01 11:31:37 pva Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-im/psi/ChangeLog,v 1.160 2009/06/02 17:04:40 pva Exp $
30 +
31 +*psi-0.13_rc1-r1 (02 Jun 2009)
32 +
33 + 02 Jun 2009; Peter Volkov <pva@g.o> -psi-0.13_rc1.ebuild,
34 + +psi-0.13_rc1-r1.ebuild, +files/psi-0.13_rc1-dialog-show.patch:
35 + Fixed bug when call dialog might not display, bug #271091, thank Petr
36 + Moravek for report.
37
38 01 Jun 2009; Peter Volkov <pva@g.o> psi-0.13_rc1.ebuild:
39 Updated qca version dependency as some psi bugs were fixed in 2.0.2 only,
40
41
42
43 1.1 net-im/psi/psi-0.13_rc1-r1.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-im/psi/psi-0.13_rc1-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-im/psi/psi-0.13_rc1-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: psi-0.13_rc1-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2009 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-im/psi/psi-0.13_rc1-r1.ebuild,v 1.1 2009/06/02 17:04:40 pva Exp $
53
54 EAPI="2"
55
56 inherit eutils qt4 multilib
57
58 MY_P="${P/_rc/-rc}"
59
60 LANGPACK_VER="20090217"
61
62 DESCRIPTION="Qt4 Jabber client, with Licq-like interface"
63 HOMEPAGE="http://psi-im.org/"
64 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2
65 mirror://gentoo/${PN}-langs-${LANGPACK_VER}.tar.bz2
66 extras? ( mirror://gentoo/${PN}-extra-patches-r515.tar.bz2
67 mirror://gentoo/${PN}-extra-iconsets-r515.tar.bz2 )"
68
69 LICENSE="GPL-2"
70 SLOT="0"
71 KEYWORDS="~amd64 ~x86"
72 IUSE="crypt dbus debug doc spell ssl xscreensaver extras"
73 RESTRICT="test"
74
75 LANGS="cs de eo es_ES fr it mk pl pt_BR ru uk ur_PK vi zh zh_TW"
76 for LNG in ${LANGS}; do
77 IUSE="${IUSE} linguas_${LNG}"
78 #SRC_URI="${SRC_URI} http://psi-im.org/download/lang/psi_${LNG/ur_PK/ur_pk}.qm"
79 done
80
81 COMMON_DEPEND=">=x11-libs/qt-gui-4.4:4[qt3support,dbus?]
82 >=app-crypt/qca-2.0.2:2
83 spell? ( app-text/aspell )
84 xscreensaver? ( x11-libs/libXScrnSaver )"
85
86 DEPEND="${COMMON_DEPEND}
87 doc? ( app-doc/doxygen )"
88
89 RDEPEND="${COMMON_DEPEND}
90 crypt? ( >=app-crypt/qca-gnupg-2.0.0_beta2 )
91 ssl? ( >=app-crypt/qca-ossl-2.0.0_beta2 )"
92
93 S=${WORKDIR}/${MY_P}
94
95 src_prepare() {
96 if use extras; then
97 # some patches from psi+ project http://code.google.com/p/psi-dev
98 ewarn "You're about to build heavily patched version of Psi called Psi+."
99 ewarn "It has really nice features but still under heavy development."
100 ewarn "Take a look at homepage for more info: http://code.google.com/p/psi-dev"
101 ewarn "If you wish to disable some patches just put"
102 ewarn "MY_EPATCH_EXCLUDE=\"list of patches\""
103 ewarn "into /etc/portage/env/${CATEGORY}/${PN} file."
104 ebeep
105
106 EPATCH_EXCLUDE="${MY_EPATCH_EXCLUDE} 280-psi-application-info.diff" \
107 EPATCH_SUFFIX="diff" EPATCH_FORCE="yes" epatch
108 sed -e 's/\(^#define PROG_CAPS_NODE \).*/\1"http:\/\/psi-dev.googlecode.com\/caps";/' \
109 -e 's:\(^#define PROG_NAME "Psi\):\1+:' \
110 -i src/applicationinfo.cpp || die
111 fi
112
113 rm -rf third-party/qca # We use system libraries.
114
115 epatch "${FILESDIR}/${P}-dialog-show.patch"
116 }
117
118 src_configure() {
119 # disable growl as it is a MacOS X extension only
120 local myconf="--prefix=/usr --qtdir=/usr"
121 myconf="${myconf} --disable-growl --disable-bundled-qca"
122 use debug && myconf="${myconf} --enable-debug"
123 use dbus || myconf="${myconf} --disable-qdbus"
124 use spell || myconf="${myconf} --disable-aspell"
125 use xscreensaver || myconf="${myconf} --disable-xss"
126
127 # cannot use econf because of non-standard configure script
128 ./configure ${myconf} || die "configure failed"
129 }
130
131 src_compile() {
132 eqmake4 ${PN}.pro
133
134 SUBLIBS="-L/usr/${get_libdir}/qca2" emake || die "emake failed"
135
136 if use doc; then
137 cd doc
138 mkdir -p api # 259632
139 make api_public || die "make api_public failed"
140 fi
141 }
142
143 src_install() {
144 emake INSTALL_ROOT="${D}" install || die "emake install failed"
145
146 # this way the docs will be installed in the standard gentoo dir
147 newdoc iconsets/roster/README README.roster || die
148 newdoc iconsets/system/README README.system || die
149 newdoc certs/README README.certs || die
150 dodoc README || die
151
152 if use doc; then
153 cd doc
154 dohtml -r api || die "dohtml failed"
155 fi
156
157 # install translations
158 cd "${WORKDIR}/${PN}-langs"
159 insinto /usr/share/${PN}/
160 for LNG in ${LANGS}; do
161 if use linguas_${LNG}; then
162 doins ${PN}_${LNG/ur_PK/ur_pk}.qm || die
163 fi
164 done
165
166 if use extras; then
167 cp -a "${WORKDIR}"/iconsets/* "${D}"/usr/share/${PN}/iconsets/ || die
168 fi
169 }
170
171 pkg_postinst() {
172 elog "If you wish to try voice (and video) chat in psi, don't forget to"
173 elog " # emerge psimedia"
174 }