/[gentoo-x86]/net-misc/hotot/hotot-0.9.8.14_p20130514.ebuild
Gentoo

Contents of /net-misc/hotot/hotot-0.9.8.14_p20130514.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Dec 28 18:47:11 2014 UTC (4 years, 8 months ago) by floppym
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +5 -6 lines
Clean up python-single-r1 conversion.

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)

1 # Copyright 1999-2014 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.14_p20130514.ebuild,v 1.1 2013/06/12 20:16:30 xmw Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python2_7 )
8
9 inherit cmake-utils python-single-r1 vcs-snapshot
10
11 DESCRIPTION="lightweight & open source microblogging client"
12 HOMEPAGE="http://hotot.org"
13 SRC_URI="https://github.com/lyricat/Hotot/tarball/ed2ff013 -> ${P}.tar.gz"
14
15 LICENSE="LGPL-3"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86"
18 IUSE="chrome gtk kde qt4"
19
20 REQUIRED_USE="|| ( chrome gtk qt4 ) ${PYTHON_REQUIRED_USE}"
21
22 RDEPEND="${PYTHON_DEPS}
23 dev-python/dbus-python[${PYTHON_USEDEP}]
24 gtk? ( dev-python/pywebkitgtk[${PYTHON_USEDEP}] )
25 qt4? ( dev-qt/qtwebkit:4
26 kde? ( kde-base/kdelibs ) )"
27 DEPEND="${RDEPEND}
28 sys-devel/gettext
29 qt4? ( dev-qt/qtsql:4 )"
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-single-r1_pkg_setup
38 }
39
40 src_configure() {
41 mycmakeargs=(
42 ${mycmakeargs}
43 $(cmake-utils_use_with chrome CHROME)
44 $(cmake-utils_use_with gtk GTK)
45 $(cmake-utils_use_with gtk GTK2)
46 -DWITH_GTK3=OFF
47 $(cmake-utils_use_with kde KDE)
48 $(cmake-utils_use_with qt4 QT)
49 -DPYTHON_EXECUTABLE=${PYTHON} )
50
51 cmake-utils_src_configure
52 }
53
54 src_install() {
55 cmake-utils_src_install
56 use gtk && dosym hotot-gtk2 /usr/bin/hotot
57
58 find "${D}" -name "*.pyc" -print -delete
59 }
60
61 pkg_postinst() {
62 if use chrome; then
63 elog "TO install hotot for chrome, open chromium/google-chrome,"
64 elog "vist chrome://chrome/extensions/ and load /usr/share/hotot"
65 elog "as unpacked extension."
66 fi
67 }

  ViewVC Help
Powered by ViewVC 1.1.20