You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-misc/hotot/hotot-9999.ebuild

65 lines
1.4 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/hotot/hotot-9999.ebuild,v 1.3 2012/03/26 09:14:57 xmw Exp $
EAPI=4
PYTHON_DEPEND="gtk? 2"
RESTRICT_PYTHON_ABIS="3.*"
EGIT_REPO_URI="https://github.com/shellex/Hotot.git"
inherit cmake-utils git-2 python
DESCRIPTION="lightweight & open source microblogging client"
HOMEPAGE="http://hotot.org"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS=""
IUSE="chrome gtk kde qt4"
RDEPEND="
gtk? ( dev-python/pywebkitgtk )
qt4? ( x11-libs/qt-webkit:4
kde? ( kde-base/kdelibs ) )"
DEPEND="${RDEPEND}
sys-devel/gettext"
pkg_setup() {
if ! use gtk ; then
if ! use qt4 ; then
ewarn "neither gtk not qt4 binaries will be build"
if ! use chrome ; then
die "enable one use flag of chrome, gtk or qt4"
fi
fi
fi
python_pkg_setup
}
src_configure() {
mycmakeargs="${mycmakeargs} \
$(cmake-utils_use_with chrome CHROME) \
$(cmake-utils_use_with gtk GTK) \
$(cmake-utils_use_with kde KDE) \
$(cmake-utils_use_with qt4 QT) \
-DPYTHON_EXECUTABLE=$(PYTHON -2 -a)"
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
find "${D}" -name "*.pyc" -delete
}
pkg_postinst() {
if use chrome; then
elog "TO install hotot for chrome, open chromium/google-chrome,"
elog "vist chrome://chrome/extensions/ and load /usr/share/hotot"
elog "as unpacked extension."
fi
}