blob: bde130a56555d37df2731078ae749c1720b01e49 (
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
|
# Copyright 1999-2009 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.1 2009/05/10 11:35:02 hwoarang Exp $
EAPI="2"
inherit 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}"
src_prepare() {
# 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"
}
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
}
|