logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: ae6115d4ede05d54e700e5cd6faa6173a1de6230
parent 4db42b87d10094f2ee38b1a14c8e2c4832786aa4
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 21 Jun 2024 15:01:24 +0200

dev-libs/libtls-bearssl: new package, add 0.5

Diffstat:

Adev-libs/libtls-bearssl/Manifest1+
Adev-libs/libtls-bearssl/libtls-bearssl-0.5.ebuild32++++++++++++++++++++++++++++++++
2 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/dev-libs/libtls-bearssl/Manifest b/dev-libs/libtls-bearssl/Manifest @@ -0,0 +1 @@ +DIST libtls-bearssl-0.5.tar.gz 40522 BLAKE2B 7036b5b9d0c7de530644e77541ace209a17305deb8461a2f6d588b2e673491260d15524c0a9a0c685ece2c83825475d4e0e9b14fb6724273ff7091c17c518719 SHA512 be5e205408752322f2b370c107f0a5092ff99da3892be82278fd230d9eeb697c0aeeec3461e5ccf7ab3735d470abb4bc2bebed7d6a5212f9ac934dd0f33b7d7e diff --git a/dev-libs/libtls-bearssl/libtls-bearssl-0.5.ebuild b/dev-libs/libtls-bearssl/libtls-bearssl-0.5.ebuild @@ -0,0 +1,32 @@ +# Copyright 2024 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="libtls implemented with bearssl" +HOMEPAGE="https://sr.ht/~mcf/libtls-bearssl" +SRC_URI="https://git.sr.ht/~mcf/libtls-bearssl/archive/${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND=" + dev-libs/bearssl:= + !dev-libs/libretls +" +DEPEND="${RDEPEND}" + +src_configure() { + export PREFIX=/usr + export LIBDIR="${EPREFIX}/usr/$(get_libdir)/" + + tc-export CC AR + + export CFLAGS="$CFLAGS $(pkg-config --cflags libbearssl)" + export LDLIBS="$(pkg-config --libs libbearssl) -l pthread" + + sed -i 's;Libs.private: -lbearssl;Requires: libbearssl;' libtls.pc.in || die +}