r10k-1.1.3-r1.ebuild 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. USE_RUBY="ruby20 ruby21"
  5. RUBY_FAKEGEM_RECIPE_TEST="rspec"
  6. RUBY_FAKEGEM_TASK_DOC=""
  7. RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
  8. inherit ruby-fakegem
  9. DESCRIPTION="Puppet environment and module deployment"
  10. HOMEPAGE="https://github.com/adrienthebo/r10k"
  11. LICENSE="Apache-2.0"
  12. SLOT="0"
  13. KEYWORDS="~amd64 ~x86"
  14. IUSE="+git"
  15. ruby_add_rdepend "
  16. >=dev-ruby/colored-1.2
  17. =dev-ruby/cri-2*
  18. >=dev-ruby/systemu-2.5.2
  19. >=dev-ruby/log4r-1.1.10
  20. dev-ruby/json"
  21. RDEPEND="${RDEPEND} git? ( >=dev-vcs/git-1.6.6 )"
  22. all_ruby_prepare() {
  23. sed -i -e 's/json_pure/json/' \
  24. -e '/cri/ s/2.4.0/2.4/' \
  25. -e '/systemu/ s/2.5.2/2.5/' \
  26. -e '/s.files/d' ${RUBY_FAKEGEM_GEMSPEC} || die
  27. }
  28. pkg_postinst() {
  29. ewarn
  30. ewarn "If you are upgrading from 1.1.0 and are using multiple sources, please read"
  31. ewarn "this. (If not, feel free to continue with your regularly scheduled day.)"
  32. ewarn
  33. ewarn "GH-48 (https://github.com/adrienthebo/r10k/issues/48) introduced the ability"
  34. ewarn "for environments to be prefixed with the source name so that multiple sources"
  35. ewarn "installed into the same directory would not overwrite each other. However"
  36. ewarn "prefixing was automatically enabled and would break existing setups where"
  37. ewarn "multiple sources were cloned into different directories."
  38. ewarn
  39. ewarn "Because this introduced a breaking change, SemVer dictates that the automatic"
  40. ewarn "prefixing has to be rolled back. Prefixing can be enabled but always defaults"
  41. ewarn "to off. If you are relying on this behavior you will need to update your r10k.yaml"
  42. ewarn "to enable prefixing on a per-source basis."
  43. ewarn
  44. ewarn "Please see the issue (https://github.com/adrienthebo/r10k/issues/48) for more"
  45. ewarn "information."
  46. }