blob: 298d8d58f55d84229f582d9808184b150c0a640e (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/twittare/twittare-0.7.42.ebuild,v 1.5 2011/02/05 13:20:07 ssuominen Exp $
EAPI="2"
inherit eutils qt4
DESCRIPTION="Twitter client for Linux using Qt4"
HOMEPAGE="http://www.twittare.com"
SRC_URI="http://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="debug doc"
DEPEND="x11-libs/qt-core:4
x11-libs/qt-gui:4
x11-libs/libnotify"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/${PN}-gcc-4.4-glibc-2.10.patch"
)
src_prepare() {
epatch "${FILESDIR}"/${P}-libnotify-0.7.patch
# fix LDFLAGS issue
sed -i "s/-fpic/${LDFLAGS}\ -fpic/" "${S}"/libtwnotification/makefile || die "sed failed"
sed -i "s/-shared/${LDFLAGS}\ -shared/" "${S}"/libtwnotification/makefile || die "sed failed"
qt4_src_prepare
}
src_configure() {
eqmake4
}
src_compile() {
emake -C libtwnotification || die "emake libtwnotification failed"
emake || die "emake failed"
}
src_install() {
dobin twittare || die "dobin failed"
dolib.so libtwnotification/libtwnotification.so || die "dolib.so failed"
insinto /usr/share/applications
doins twittare.desktop || die "doins twittare.desktop failed"
insinto /usr/share/pixmaps
doins pixmaps/twittare-blue.png pixmaps/twittare-pink.png || die "doins pixmaps failed"
insinto /usr/share/${PN}
doins -r lang/ || die "doins lang failed"
if use doc; then
dodoc NEWS README ChangeLog || die "dodoc failed"
fi
}
|