aboutsummaryrefslogtreecommitdiff
blob: 3c3ab6fa3094a11fba2e041a69f29d4c0d1abbc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit rebar

DESCRIPTION="Small, fast, modern HTTP server for Erlang/OTP."
HOMEPAGE="https://github.com/ninenines/cowboy"
SRC_URI="https://github.com/ninenines/${PN}/archive/${PV}.tar.gz
	-> ${P}.tar.gz"

LICENSE="ISC"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="mirror"

DEPEND="dev-erlang/cowlib"
RDEPEND="${DEPEND}
	=dev-erlang/ranch-1.7.1*
"

DOCS=( README.asciidoc )

# TODO: cowboy has a test suite with lots of dependencies; enable it once those
# dependencies are merged as well
RESTRICT=test

# Override rebar's default since cowboy doesn't have cowboy.app.src but still
# needs its deps removed
src_prepare() {
	default
	rebar_remove_deps
}