mikutter-3.5.4.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=5
  4. USE_RUBY="ruby22 ruby23"
  5. inherit eutils ruby-ng
  6. if [ "${PV}" = "9999" ]; then
  7. EGIT_REPO_URI="git://toshia.dip.jp/mikutter.git"
  8. inherit git-2
  9. KEYWORDS=""
  10. EGIT_SOURCEDIR="${WORKDIR}/all"
  11. else
  12. MY_P="${PN}.${PV}"
  13. SRC_URI="http://mikutter.hachune.net/bin/${MY_P}.tar.gz"
  14. KEYWORDS="~amd64"
  15. RUBY_S="${PN}"
  16. fi
  17. DESCRIPTION="Simple, powerful and moeful twitter client"
  18. HOMEPAGE="http://mikutter.hachune.net/"
  19. LICENSE="GPL-3"
  20. SLOT="0"
  21. IUSE="+libnotify"
  22. DEPEND=""
  23. RDEPEND="
  24. libnotify? ( x11-libs/libnotify )
  25. media-sound/alsa-utils"
  26. ruby_add_rdepend "dev-ruby/addressable
  27. dev-ruby/delayer
  28. dev-ruby/delayer-deferred
  29. dev-ruby/httpclient
  30. dev-ruby/json:0
  31. dev-ruby/instance_storage
  32. dev-ruby/memoist
  33. >=dev-ruby/moneta-0.7
  34. dev-ruby/nokogiri
  35. >=dev-ruby/oauth-0.5.1
  36. dev-ruby/pluggaloid
  37. dev-ruby/rcairo
  38. >=dev-ruby/ruby-gettext-3.0.1
  39. >=dev-ruby/ruby-gtk2-3.1.1
  40. dev-ruby/ruby-hmac
  41. dev-ruby/totoridipjp
  42. dev-ruby/twitter-text
  43. dev-ruby/typed-array
  44. virtual/ruby-ssl"
  45. all_ruby_unpack() {
  46. if [ "${PV}" = "9999" ];then
  47. git-2_src_unpack
  48. else
  49. default
  50. fi
  51. }
  52. each_ruby_install() {
  53. local rubyversion
  54. if use ruby_targets_ruby23; then
  55. rubyversion=ruby23
  56. elif use ruby_targets_ruby22; then
  57. rubyversion=ruby22
  58. fi
  59. exeinto /usr/share/mikutter
  60. doexe mikutter.rb
  61. insinto /usr/share/mikutter
  62. doins -r core plugin
  63. sed -e "s/ruby19/${rubyversion}/" "${FILESDIR}"/mikutter \
  64. | newbin - mikutter
  65. dodoc README
  66. make_desktop_entry mikutter Mikutter \
  67. /usr/share/mikutter/core/skin/data/icon.png
  68. }