commit:     2bae92ac0bae618d686ccbdc5186f3e7ad232f77
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 29 11:59:00 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Dec 29 11:59:00 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bae92ac

dev-libs/libretls: New package

LibreTLS is an implementation of LibreSSL's libtls repackaged
for compatibility with OpenSSL.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-libs/libretls/Manifest              |  1 +
 dev-libs/libretls/libretls-3.3.1.ebuild | 28 ++++++++++++++++++++++++++++
 dev-libs/libretls/metadata.xml          |  8 ++++++++
 3 files changed, 37 insertions(+)

diff --git a/dev-libs/libretls/Manifest b/dev-libs/libretls/Manifest
new file mode 100644
index 00000000000..01df108e3ba
--- /dev/null
+++ b/dev-libs/libretls/Manifest
@@ -0,0 +1 @@
+DIST libretls-3.3.1.tar.gz 431233 BLAKE2B 
b935cae7bdd2e2338099dbc830e2773198d5d4ed12df80b89291d0eb8ae68549e36413c79ba1373d8bce8fd857c4a291fbd9bce30c819cc182bd5b68ac7b9527
 SHA512 
ddb4eb7c2c7e9cbb36ced17424ea0e08863488e6b3e18cd462ccc52b2eca685b5299f79ed6ba58ad4da2d742b61fa4857109a19137a1ee4c6cfdb48463080f4a

diff --git a/dev-libs/libretls/libretls-3.3.1.ebuild 
b/dev-libs/libretls/libretls-3.3.1.ebuild
new file mode 100644
index 00000000000..82e1f3e0b5a
--- /dev/null
+++ b/dev-libs/libretls/libretls-3.3.1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Port of libtls from LibreSSL to OpenSSL"
+HOMEPAGE="https://git.causal.agency/libretls/about/";
+SRC_URI="https://causal.agency/libretls/${P}.tar.gz";
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="dev-libs/openssl:="
+RDEPEND=${DEPEND}
+BDEPEND="virtual/pkgconfig"
+
+src_configure() {
+       local myconf=(
+               --disable-static
+       )
+       econf "${myconf[@]}"
+}
+
+src_install() {
+       default
+       find "${D}" -name '*.la' -delete || die
+}

diff --git a/dev-libs/libretls/metadata.xml b/dev-libs/libretls/metadata.xml
new file mode 100644
index 00000000000..0319eec4c8b
--- /dev/null
+++ b/dev-libs/libretls/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>mgo...@gentoo.org</email>
+               <name>Michał Górny</name>
+       </maintainer>
+</pkgmetadata>

Reply via email to