summaryrefslogtreecommitdiff
path: root/dev-erlang/fast_tls/fast_tls-1.1.26.ebuild
blob: 34a8aaacfafdb8cc83359e57822535eb13139143 (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
# Copyright 2021-2026 Liguros Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8

inherit rebar

DESCRIPTION="TLS/SSL native driver for Erlang and Elixir"
HOMEPAGE="https://github.com/processone/fast_tls"
SRC_URI="https://github.com/processone/fast_tls/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~sparc ~x86"
IUSE="libressl"

DEPEND="
	>=dev-erlang/p1_utils-1.0.28
	!libressl? ( dev-libs/openssl:0= )
	libressl? ( >=dev-libs/libressl-3.5.0:0= )"
RDEPEND="${DEPEND}"

DOCS=( CHANGELOG.md README.md )

src_prepare() {
	if use libressl; then
		eapply -p1 ${FILESDIR}/SSL_get_extms_support.patch
	fi

	# Avoid configure error
	sed -i -e 's/.*p1_utils.*/{p1_utils}./' ${S}/rebar.config

	default
}