1 |
# Copyright 1999-2012 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/hotot/hotot-0.9.8.7.ebuild,v 1.8 2012/08/29 22:22:13 xmw Exp $ |
4 |
|
5 |
EAPI=4 |
6 |
|
7 |
PYTHON_DEPEND="gtk? 2" |
8 |
RESTRICT_PYTHON_ABIS="3.*" |
9 |
|
10 |
inherit cmake-utils python vcs-snapshot |
11 |
|
12 |
DESCRIPTION="lightweight & open source microblogging client" |
13 |
HOMEPAGE="http://hotot.org" |
14 |
SRC_URI="https://github.com/shellex/Hotot/tarball/${PV} -> ${P}.tar.gz" |
15 |
|
16 |
LICENSE="LGPL-3" |
17 |
SLOT="0" |
18 |
KEYWORDS="amd64 x86" |
19 |
IUSE="chrome gtk kde qt4" |
20 |
|
21 |
RDEPEND="dev-python/dbus-python |
22 |
gtk? ( dev-python/pywebkitgtk ) |
23 |
qt4? ( x11-libs/qt-webkit:4 |
24 |
kde? ( kde-base/kdelibs ) )" |
25 |
DEPEND="${RDEPEND} |
26 |
sys-devel/gettext |
27 |
qt4? ( x11-libs/qt-sql:4 )" |
28 |
|
29 |
REQUIRED_USE="|| ( chrome gtk qt4 )" |
30 |
|
31 |
pkg_setup() { |
32 |
if ! use gtk ; then |
33 |
if ! use qt4 ; then |
34 |
ewarn "neither gtk not qt4 binaries will be build" |
35 |
fi |
36 |
fi |
37 |
python_pkg_setup |
38 |
} |
39 |
|
40 |
src_configure() { |
41 |
mycmakeargs="${mycmakeargs} \ |
42 |
$(cmake-utils_use_with chrome CHROME) \ |
43 |
$(cmake-utils_use_with gtk GTK) \ |
44 |
$(cmake-utils_use_with kde KDE) \ |
45 |
$(cmake-utils_use_with qt4 QT) \ |
46 |
-DPYTHON_EXECUTABLE=$(PYTHON -2 -a)" |
47 |
|
48 |
cmake-utils_src_configure |
49 |
} |
50 |
|
51 |
src_install() { |
52 |
cmake-utils_src_install |
53 |
|
54 |
find "${D}" -name "*.pyc" -delete |
55 |
} |
56 |
|
57 |
pkg_postinst() { |
58 |
if use chrome; then |
59 |
elog "TO install hotot for chrome, open chromium/google-chrome," |
60 |
elog "vist chrome://chrome/extensions/ and load /usr/share/hotot" |
61 |
elog "as unpacked extension." |
62 |
fi |
63 |
} |