You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
747 B
35 lines
747 B
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=6
|
|
|
|
inherit rebar
|
|
|
|
DESCRIPTION="Erlang port of Hamcrest"
|
|
HOMEPAGE="https://github.com/hyperthunk/hamcrest-erlang"
|
|
SRC_URI="https://dev.gentoo.org/~hanno/distfiles/${P}.tar.gz"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86"
|
|
IUSE="test"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
CDEPEND=">=dev-lang/erlang-17.1"
|
|
DEPEND="${CDEPEND}
|
|
test? ( >=dev-erlang/proper-1.2 )"
|
|
RDEPEND="${CDEPEND}"
|
|
|
|
DOCS=( NOTES README.markdown TODO.md )
|
|
|
|
# Override with EAPI default because it's missing hamcrest.app.src and doesn't
|
|
# have any deps.
|
|
src_prepare() {
|
|
default
|
|
}
|
|
|
|
src_test() {
|
|
rebar_remove_deps test.config
|
|
erebar -C test.config compile ct
|
|
}
|