hotot-0.9.8.15_p20150812.ebuild 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. PYTHON_COMPAT=( python2_7 )
  5. inherit cmake-utils python-single-r1 vcs-snapshot
  6. DESCRIPTION="lightweight & open source microblogging client"
  7. HOMEPAGE="http://hotot.org"
  8. SRC_URI="https://github.com/lyricat/Hotot/tarball/452fc0924a98923b -> ${P}.tar.gz"
  9. LICENSE="LGPL-3"
  10. SLOT="0"
  11. KEYWORDS="~amd64 ~x86"
  12. IUSE="chrome gtk2 gtk3 kde qt4 qt5"
  13. REQUIRED_USE="|| ( chrome gtk2 gtk3 qt4 qt5 ) ${PYTHON_REQUIRED_USE}"
  14. RDEPEND="${PYTHON_DEPS}
  15. dev-python/dbus-python[${PYTHON_USEDEP}]
  16. gtk2? ( dev-python/pywebkitgtk[${PYTHON_USEDEP}] )
  17. gtk3? ( dev-python/pygobject:3[${PYTHON_USEDEP}]
  18. x11-libs/gtk+:3[introspection]
  19. net-libs/webkit-gtk:3[introspection] )
  20. qt4? (
  21. dev-qt/qtcore:4
  22. dev-qt/qtgui:4
  23. dev-qt/qtwebkit:4
  24. kde? ( kde-frameworks/kdelibs:4 ) )
  25. qt5? (
  26. dev-qt/qtcore:5
  27. dev-qt/qtgui:5
  28. dev-qt/qtnetwork:5
  29. dev-qt/qtwebkit:5
  30. dev-qt/qtwidgets:5
  31. )"
  32. DEPEND="${RDEPEND}
  33. sys-devel/gettext
  34. qt4? ( dev-qt/qtsql:4 )"
  35. src_configure() {
  36. mycmakeargs=(
  37. ${mycmakeargs}
  38. -DWITH_CHROME=$(usex chrome)
  39. -DWITH_GTK=$(usex gtk2)
  40. -DWITH_GTK2=$(usex gtk2)
  41. -DWITH_GTK3=$(usex gtk3)
  42. -DWITH_KDE=$(usex kde)
  43. -DWITH_QT=$(usex qt4)
  44. -DWITH_QT5=$(usex qt5)
  45. -DPYTHON_EXECUTABLE=${PYTHON} )
  46. cmake-utils_src_configure
  47. }
  48. src_install() {
  49. cmake-utils_src_install
  50. find "${D}" -name "*.pyc" -delete
  51. }
  52. pkg_postinst() {
  53. if use chrome; then
  54. elog "TO install hotot for chrome, open chromium/google-chrome,"
  55. elog "vist chrome://chrome/extensions/ and load /usr/share/hotot"
  56. elog "as unpacked extension."
  57. fi
  58. }