quiterss-9999.ebuild 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # Copyright 1999-2017 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=""
  18. RDEPEND="
  19. >=dev-db/sqlite-3.11.1:3
  20. dev-qt/qtcore:5
  21. dev-qt/qtgui:5
  22. dev-qt/qtmultimedia:5
  23. dev-qt/qtnetwork:5[ssl]
  24. dev-qt/qtprintsupport:5
  25. dev-qt/qtsingleapplication[X,qt5]
  26. dev-qt/qtsql:5[sqlite]
  27. dev-qt/qtwebkit:5
  28. dev-qt/qtwidgets:5
  29. dev-qt/qtxml:5
  30. "
  31. DEPEND="${RDEPEND}
  32. virtual/pkgconfig
  33. "
  34. DOCS=( AUTHORS CHANGELOG README.md )
  35. src_prepare() {
  36. default
  37. my_rm_loc() {
  38. sed -i -e "s:lang/${PN}_${1}.ts::" lang/lang.pri || die
  39. }
  40. # dedicated english locale file is not installed at all
  41. rm "lang/${PN}_en.ts" || die
  42. l10n_find_plocales_changes lang ${PN}_ .ts
  43. l10n_for_each_disabled_locale_do my_rm_loc
  44. }
  45. src_configure() {
  46. eqmake5 \
  47. PREFIX="${EPREFIX}/usr" \
  48. SYSTEMQTSA=1
  49. }
  50. src_install() {
  51. emake INSTALL_ROOT="${D}" install
  52. einstalldocs
  53. }
  54. pkg_preinst() {
  55. gnome2_icon_savelist
  56. }
  57. pkg_postinst() {
  58. fdo-mime_desktop_database_update
  59. gnome2_icon_cache_update
  60. }
  61. pkg_postrm() {
  62. fdo-mime_desktop_database_update
  63. gnome2_icon_cache_update
  64. }