p1_oauth2-0.6.3.ebuild 769 B

123456789101112131415161718192021222324252627282930313233343536
  1. # Copyright 1999-2018 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit rebar
  5. DESCRIPTION="Erlang OAuth 2.0 implementation"
  6. HOMEPAGE="https://github.com/processone/p1_oauth2"
  7. SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
  8. -> ${P}.tar.gz"
  9. LICENSE="MIT"
  10. SLOT="0"
  11. KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86"
  12. IUSE="test"
  13. CDEPEND=">=dev-lang/erlang-17.1"
  14. DEPEND="${CDEPEND}
  15. test? (
  16. >=dev-erlang/meck-0.8.3
  17. >=dev-erlang/proper-1.1_p20150814
  18. )"
  19. RDEPEND="${CDEPEND}"
  20. DOCS=( CHANGELOG.md README.md )
  21. src_prepare() {
  22. rebar_src_prepare
  23. rebar_remove_deps rebar.test.config
  24. sed -e '/, warnings_as_errors/d' -i rebar.test.config || die
  25. }
  26. src_test() {
  27. erebar -C rebar.test.config compile eunit
  28. }