| 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.ebuild,v 1.5 2012/07/08 08:54:50 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/c14a972356 -> ${P}.tar.gz"
|
| 15 |
|
| 16 |
LICENSE="LGPL-3"
|
| 17 |
SLOT="0"
|
| 18 |
KEYWORDS="amd64 x86"
|
| 19 |
IUSE="chrome gtk kde qt4"
|
| 20 |
|
| 21 |
RDEPEND="
|
| 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 |
|
| 28 |
REQUIRED_USE="|| ( chrome gtk qt4 )"
|
| 29 |
|
| 30 |
pkg_setup() {
|
| 31 |
if ! use gtk ; then
|
| 32 |
if ! use qt4 ; then
|
| 33 |
ewarn "neither gtk not qt4 binaries will be build"
|
| 34 |
fi
|
| 35 |
fi
|
| 36 |
python_pkg_setup
|
| 37 |
}
|
| 38 |
|
| 39 |
src_configure() {
|
| 40 |
mycmakeargs="${mycmakeargs} \
|
| 41 |
$(cmake-utils_use_with chrome CHROME) \
|
| 42 |
$(cmake-utils_use_with gtk GTK) \
|
| 43 |
$(cmake-utils_use_with kde KDE) \
|
| 44 |
$(cmake-utils_use_with qt4 QT) \
|
| 45 |
-DPYTHON_EXECUTABLE=$(PYTHON -2 -a)"
|
| 46 |
|
| 47 |
cmake-utils_src_configure
|
| 48 |
}
|
| 49 |
|
| 50 |
src_install() {
|
| 51 |
cmake-utils_src_install
|
| 52 |
|
| 53 |
find "${D}" -name "*.pyc" -delete
|
| 54 |
}
|
| 55 |
|
| 56 |
pkg_postinst() {
|
| 57 |
if use chrome; then
|
| 58 |
elog "TO install hotot for chrome, open chromium/google-chrome,"
|
| 59 |
elog "vist chrome://chrome/extensions/ and load /usr/share/hotot"
|
| 60 |
elog "as unpacked extension."
|
| 61 |
fi
|
| 62 |
}
|