quiterss-0.18.4.ebuild 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. PLOCALES="ar bg cs de el_GR es fa fi fr gl he hi hu it ja ko lt nl pl pt_BR pt_PT ro_RO ru sk sr sv tg_TJ th_TH tr uk vi zh_CN zh_TW"
  5. inherit fdo-mime gnome2-utils l10n qmake-utils
  6. DESCRIPTION="A Qt-based RSS/Atom feed reader"
  7. HOMEPAGE="https://quiterss.org"
  8. if [[ ${PV} == *9999* ]]; then
  9. EGIT_REPO_URI="https://github.com/QuiteRSS/quiterss.git"
  10. inherit git-r3
  11. else
  12. SRC_URI="https://github.com/QuiteRSS/quiterss/archive/${PV}.tar.gz -> ${P}.tar.gz"
  13. KEYWORDS="amd64 ~arm x86 ~amd64-linux ~x86-linux"
  14. fi
  15. LICENSE="GPL-3"
  16. SLOT="0"
  17. IUSE="phonon qt5"
  18. RDEPEND=">=dev-db/sqlite-3.11.1:3
  19. !qt5? ( dev-qt/qtcore:4[ssl]
  20. dev-qt/qtgui:4
  21. dev-qt/qtsingleapplication[X,qt4(+)]
  22. dev-qt/qtsql:4[sqlite]
  23. dev-qt/qtwebkit:4
  24. phonon? ( || ( media-libs/phonon[qt4] dev-qt/qtphonon:4 ) ) )
  25. qt5? ( dev-qt/qtcore:5
  26. dev-qt/qtgui:5
  27. dev-qt/qtmultimedia:5
  28. dev-qt/qtnetwork:5[ssl]
  29. dev-qt/qtprintsupport:5
  30. dev-qt/qtsingleapplication[X,qt5(-)]
  31. dev-qt/qtsql:5[sqlite]
  32. dev-qt/qtwebkit:5
  33. dev-qt/qtwidgets:5
  34. dev-qt/qtxml:5 )"
  35. DEPEND="${RDEPEND}
  36. virtual/pkgconfig"
  37. DOCS=( AUTHORS CHANGELOG README.md )
  38. src_prepare() {
  39. default
  40. my_rm_loc() {
  41. sed -i -e "s:lang/${PN}_${1}.ts::" lang/lang.pri || die
  42. }
  43. # dedicated english locale file is not installed at all
  44. rm "lang/${PN}_en.ts" || die
  45. l10n_find_plocales_changes lang ${PN}_ .ts
  46. l10n_for_each_disabled_locale_do my_rm_loc
  47. }
  48. src_configure() {
  49. local myqmakeargs=(
  50. PREFIX="${EPREFIX}/usr"
  51. SYSTEMQTSA=1
  52. )
  53. if use qt5; then
  54. eqmake5 "${myqmakeargs[@]}"
  55. else
  56. eqmake4 "${myqmakeargs[@]}" \
  57. $(usex phonon '' 'DISABLE_PHONON=1')
  58. fi
  59. }
  60. src_install() {
  61. emake INSTALL_ROOT="${D}" install
  62. einstalldocs
  63. }
  64. pkg_preinst() {
  65. gnome2_icon_savelist
  66. }
  67. pkg_postinst() {
  68. fdo-mime_desktop_database_update
  69. gnome2_icon_cache_update
  70. }
  71. pkg_postrm() {
  72. fdo-mime_desktop_database_update
  73. gnome2_icon_cache_update
  74. }