blob: 801f73265485c8d0e4b7ff813e2123b839677730 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/pino/pino-0.2.6.ebuild,v 1.3 2010/04/21 07:23:29 dev-zero Exp $
EAPI="3"
DESCRIPTION="Twitter and Identi.ca desktop client written in Vala"
HOMEPAGE="http://pino-app.appspot.com/ http://code.google.com/p/pino-twitter/"
SRC_URI="http://pino-twitter.googlecode.com/files/${P}.tar.bz2"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug indicate"
RDEPEND=">=dev-libs/glib-2.14:2
>=x11-libs/gtk+-2.10:2
>=dev-libs/libgee-0.5.0
net-libs/libsoup:2.4
app-text/gtkspell
x11-libs/libnotify
dev-libs/libxml2:2
dev-libs/libunique
>=net-libs/webkit-gtk-1.1"
DEPEND="${RDEPEND}
>=dev-lang/vala-0.7
dev-util/pkgconfig
sys-devel/gettext
dev-util/intltool
dev-lang/python"
DOCS="AUTHORS README"
src_configure() {
local myconf=""
use debug && myconf="--debug"
if ! use indicate ; then
# sabotage the detection since no configure option
sed -i \
-e 's|indicate|indicate-false|' \
wscript || die "sed failed"
fi
local supported_linguas=$(<po/LINGUAS)
rm po/LINGUAS
for l in ${LINGUAS} ; do
if [[ "$supported_linguas" =~ "$l" ]] ; then
echo "$l" >> po/LINGUAS
fi
done
CCFLAGS="${CFLAGS}" LINKFLAGS="${LDFLAGS}" \
./waf --prefix=/usr \
configure ${myconf} || die "./waf configure failed"
}
src_compile() {
local myjobs=$(sed -n -e 's,.*\(-j[[:digit:]]\+\).*,\1,p' <<< ${MAKEOPTS})
./waf ${myjobs} build || die "./waf configure failed"
}
src_install() {
./waf \
--destdir="${D}" \
install || die "./waf install failed"
rm -rf "${D}/usr/share/doc"
dodoc ${DOCS}
}
|