Totem building
This commit is contained in:
6
dev-libs/botan/Manifest
Normal file
6
dev-libs/botan/Manifest
Normal file
@ -0,0 +1,6 @@
|
||||
AUX botan-2.11.0-build.patch 1886 BLAKE2B 62f6b5f9c47ded4c460c6c6b3057cbbb95711b5b5db300523f45e25e6bc161277174ea4c461e872f24bfd23839510a7857c44733a333cb6054b7dc183faa3e2e SHA512 90948e75d5bb6f2620a92fe4aea37d05aaf25e98430b112651aa6ad635f19f8659658ae79d16e60e27ca61ec5da92d5dd1c234c4c9e2ae0fab44b92806bcafe0
|
||||
DIST 2.19.1.tar.gz 8187922 BLAKE2B 809f093c539349da0d70d62f7d7ca62c99b51c1fb0aa55c2fd4e91742f1acb7ff5f799d140688169a09d50a4a7aa20cb2fe42e0c33fd93093431ffdfffe68dd2 SHA512 45e6fc320625ba230376546f27a32d49497a1bd85e13d9f6e4a871f0407c51bafa25be8534ee2f73ac46fbcd68413eb36670c447df2918623bda991f807e34a7
|
||||
DIST Botan-2.11.0.tar.xz 5765712 BLAKE2B 5602ef9485363b21f6f622f7370e486d834477730c2fc2f0bb9211db944d2b2a6a03d8ae14845cf871f648c76c77fd3e18804bd598f805a5754e3bfadb114d5d SHA512 a697a7f29788afc561cde35431e65e2f37e40fd45af89a6d060bf9988d28089905c6a1c005f9b23fb377547cd7a96a41f62c8d2f61a7f80d1ca1b9ccf857a2ce
|
||||
EBUILD botan-2.11.0.ebuild 2540 BLAKE2B c7619d759e7ecc9b1e576271f744e64804b7708254d62163eef622a5ee388c229f2b9f24fb4e979e2dbe12c2228b483b262213b09daf1c3e392a6f736db5034c SHA512 78b307c962d4321e16e62a05f97436cfe9905eb752bf1c16c22e2add284eb8dab5173c279e42423f2f1b73487a09305c67829648e5c34893d1fbdddc004885d9
|
||||
EBUILD botan-2.19.1.ebuild 2417 BLAKE2B c9cd60bd99c0a1442fb321a54d3daf472e8898104961b97f8bb13aad7fd5a70700c2e6282d69fe9998b3db0f1cedd07e48a3bbfd85ff18924a82e88f2144d2c1 SHA512 82ee03402b6ca767c0e1c46dd0bd1a206a9317d596f6291140df436a604b42d0dc69bf7c3b7e1d02c7cfb1ea29ba647109e789bc60e5888da8a40ea9802c8567
|
||||
MISC metadata.xml 610 BLAKE2B a74ed3478dcf62ad762a113e594c660656d52352e569d4eaa54c47009505a869c4e553a8f8330b0b2ad9dae88b7b2bc6d44ede1f2dd330da9ff01240f56eed29 SHA512 9d14b7f0222b9b169f8ae60798d1a9ac551004bcbd0344451409cdb1cbefaaf70760a2f443f0c793265492387ca28f7dccd293bd30585a014a72f2a21eee1561
|
103
dev-libs/botan/botan-2.11.0.ebuild
Normal file
103
dev-libs/botan/botan-2.11.0.ebuild
Normal file
@ -0,0 +1,103 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} )
|
||||
|
||||
inherit multilib python-r1 toolchain-funcs
|
||||
|
||||
MY_PN="Botan"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
DESCRIPTION="A C++ crypto library"
|
||||
HOMEPAGE="https://botan.randombit.net/"
|
||||
SRC_URI="https://botan.randombit.net/releases/${MY_P}.tar.xz"
|
||||
|
||||
KEYWORDS="amd64 ~arm hppa ~ia64 ppc ppc64 ~sparc x86 ~ppc-macos"
|
||||
SLOT="2/$(ver_cut 1-2)" # soname version
|
||||
LICENSE="BSD"
|
||||
IUSE="bindist doc boost python bzip2 libressl lzma sqlite ssl static-libs zlib"
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
DEPEND="python? ( ${PYTHON_DEPS} )"
|
||||
RDEPEND="${DEPEND}
|
||||
bzip2? ( >=app-arch/bzip2-1.0.5:= )
|
||||
zlib? ( >=sys-libs/zlib-1.2.3:= )
|
||||
boost? ( >=dev-libs/boost-1.48:= )
|
||||
lzma? ( app-arch/xz-utils:= )
|
||||
sqlite? ( dev-db/sqlite:3= )
|
||||
ssl? (
|
||||
!libressl? ( dev-libs/openssl:0=[bindist=] )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
)"
|
||||
BDEPEND="dev-lang/python:*
|
||||
doc? ( dev-python/sphinx )"
|
||||
|
||||
#PATCHES=(
|
||||
# "${FILESDIR}/${P}-build.patch"
|
||||
#)
|
||||
|
||||
src_configure() {
|
||||
local disable_modules=()
|
||||
use boost || disable_modules+=( "boost" )
|
||||
use bindist && disable_modules+=( "ecdsa" )
|
||||
elog "Disabling modules: ${disable_modules[@]}"
|
||||
|
||||
# Enable v9 instructions for sparc64
|
||||
if [[ "${PROFILE_ARCH}" = "sparc64" ]]; then
|
||||
CHOSTARCH="sparc32-v9"
|
||||
else
|
||||
CHOSTARCH="${CHOST%%-*}"
|
||||
fi
|
||||
|
||||
local myos=
|
||||
case ${CHOST} in
|
||||
*-darwin*) myos=darwin ;;
|
||||
*) myos=linux ;;
|
||||
esac
|
||||
|
||||
case ${CHOST} in
|
||||
hppa*) CHOSTARCH=parisc ;;
|
||||
esac
|
||||
|
||||
local pythonvers=()
|
||||
if use python; then
|
||||
append() {
|
||||
pythonvers+=( ${EPYTHON/python/} )
|
||||
}
|
||||
python_foreach_impl append
|
||||
fi
|
||||
|
||||
CXX="$(tc-getCXX)" AR="$(tc-getAR)" ./configure.py \
|
||||
$(use_enable static-libs static-library) \
|
||||
$(use_with boost) \
|
||||
$(use_with bzip2) \
|
||||
$(use_with doc documentation) \
|
||||
$(use_with doc sphinx) \
|
||||
$(use_with lzma) \
|
||||
$(use_with sqlite sqlite3) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with zlib) \
|
||||
$(usex hppa --without-stack-protector '') \
|
||||
--cc=gcc \
|
||||
--cpu=${CHOSTARCH} \
|
||||
--disable-modules=$(IFS=","; echo "${disable_modules[*]}" ) \
|
||||
--docdir=share/doc \
|
||||
--libdir=$(get_libdir) \
|
||||
--os=${myos} \
|
||||
--prefix="${EPREFIX}/usr" \
|
||||
--with-endian="$(tc-endian)" \
|
||||
--with-python-version=$(IFS=","; echo "${pythonvers[*]}" ) \
|
||||
--without-doxygen \
|
||||
|| die "configure.py failed"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
LD_LIBRARY_PATH="${S}" ./botan-test || die "Validation tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
use python && python_foreach_impl python_optimize
|
||||
}
|
97
dev-libs/botan/botan-2.19.1.ebuild
Normal file
97
dev-libs/botan/botan-2.19.1.ebuild
Normal file
@ -0,0 +1,97 @@
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python2+ )
|
||||
|
||||
inherit multilib python-r1 toolchain-funcs
|
||||
|
||||
DESCRIPTION="A C++ crypto library"
|
||||
SRC_URI="https://github.com/randombit/botan/archive/refs/tags/2.19.1.tar.gz"
|
||||
|
||||
HOMEPAGE="https://botan.randombit.net/"
|
||||
|
||||
KEYWORDS="amd64 ~arm hppa ~ia64 ppc ppc64 ~sparc x86 ~ppc-macos"
|
||||
SLOT="2/$(ver_cut 1-2)" # soname version
|
||||
LICENSE="BSD"
|
||||
IUSE="bindist doc boost python bzip2 libressl lzma sqlite ssl static-libs zlib"
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
S="${WORKDIR}/${P}"
|
||||
|
||||
DEPEND="python? ( ${PYTHON_DEPS} )"
|
||||
RDEPEND="${DEPEND}
|
||||
bzip2? ( >=app-arch/bzip2-1.0.5:= )
|
||||
zlib? ( >=sys-libs/zlib-1.2.3:= )
|
||||
boost? ( >=dev-libs/boost-1.48:= )
|
||||
lzma? ( app-arch/xz-utils:= )
|
||||
sqlite? ( dev-db/sqlite:3= )
|
||||
ssl? (
|
||||
!libressl? ( dev-libs/openssl:0=[bindist=] )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
)"
|
||||
BDEPEND="dev-lang/python:*
|
||||
doc? ( dev-python/sphinx )"
|
||||
|
||||
src_configure() {
|
||||
local disable_modules=()
|
||||
use boost || disable_modules+=( "boost" )
|
||||
use bindist && disable_modules+=( "ecdsa" )
|
||||
elog "Disabling modules: ${disable_modules[@]}"
|
||||
|
||||
# Enable v9 instructions for sparc64
|
||||
if [[ "${PROFILE_ARCH}" = "sparc64" ]]; then
|
||||
CHOSTARCH="sparc32-v9"
|
||||
else
|
||||
CHOSTARCH="${CHOST%%-*}"
|
||||
fi
|
||||
|
||||
local myos=
|
||||
case ${CHOST} in
|
||||
*-darwin*) myos=darwin ;;
|
||||
*) myos=linux ;;
|
||||
esac
|
||||
|
||||
case ${CHOST} in
|
||||
hppa*) CHOSTARCH=parisc ;;
|
||||
esac
|
||||
|
||||
local pythonvers=()
|
||||
if use python; then
|
||||
append() {
|
||||
pythonvers+=( ${EPYTHON/python/} )
|
||||
}
|
||||
python_foreach_impl append
|
||||
fi
|
||||
|
||||
CXX="$(tc-getCXX)" AR="$(tc-getAR)" ./configure.py \
|
||||
$(use_enable static-libs static-library) \
|
||||
$(use_with boost) \
|
||||
$(use_with bzip2) \
|
||||
$(use_with doc documentation) \
|
||||
$(use_with doc sphinx) \
|
||||
$(use_with lzma) \
|
||||
$(use_with sqlite sqlite3) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with zlib) \
|
||||
$(usex hppa --without-stack-protector '') \
|
||||
--cc=gcc \
|
||||
--cpu=${CHOSTARCH} \
|
||||
--disable-modules=$(IFS=","; echo "${disable_modules[*]}" ) \
|
||||
--docdir=share/doc \
|
||||
--libdir=$(get_libdir) \
|
||||
--os=${myos} \
|
||||
--prefix="${EPREFIX}/usr" \
|
||||
--with-endian="$(tc-endian)" \
|
||||
--with-python-version=$(IFS=","; echo "${pythonvers[*]}" ) \
|
||||
--without-doxygen \
|
||||
|| die "configure.py failed"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
LD_LIBRARY_PATH="${S}" ./botan-test || die "Validation tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
use python && python_foreach_impl python_optimize
|
||||
}
|
63
dev-libs/botan/files/botan-2.11.0-build.patch
Normal file
63
dev-libs/botan/files/botan-2.11.0-build.patch
Normal file
@ -0,0 +1,63 @@
|
||||
From 86df247e4f090f984e050962ed5a4a536ec63b33 Mon Sep 17 00:00:00 2001
|
||||
From: Ralf van der Enden <Ralf.vanderEnden@deltares.nl>
|
||||
Date: Fri, 5 Apr 2019 14:58:14 +0200
|
||||
Subject: [PATCH] boost 1.70 compatibility
|
||||
|
||||
Fixes issue #82
|
||||
---
|
||||
src/cli/tls_http_server.cpp | 8 +++++++-
|
||||
src/cli/tls_proxy.cpp | 8 +++++++-
|
||||
2 files changed, 14 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/cli/tls_http_server.cpp b/src/cli/tls_http_server.cpp
|
||||
index cc59a71c33..0a6428cd65 100644
|
||||
--- a/src/cli/tls_http_server.cpp
|
||||
+++ b/src/cli/tls_http_server.cpp
|
||||
@@ -41,6 +41,12 @@
|
||||
|
||||
#include "credentials.h"
|
||||
|
||||
+#if BOOST_VERSION >= 107000
|
||||
+#define GET_IO_SERVICE(s) ((boost::asio::io_context&)(s).get_executor().context())
|
||||
+#else
|
||||
+#define GET_IO_SERVICE(s) ((s).get_io_service())
|
||||
+#endif
|
||||
+
|
||||
namespace Botan_CLI {
|
||||
|
||||
namespace {
|
||||
@@ -435,7 +441,7 @@ class TLS_Asio_HTTP_Server final
|
||||
session::pointer make_session()
|
||||
{
|
||||
return session::create(
|
||||
- m_acceptor.get_io_service(),
|
||||
+ GET_IO_SERVICE(m_acceptor),
|
||||
m_session_manager,
|
||||
m_creds,
|
||||
m_policy);
|
||||
diff --git a/src/cli/tls_proxy.cpp b/src/cli/tls_proxy.cpp
|
||||
index 49ffbe3766..42ce156b12 100644
|
||||
--- a/src/cli/tls_proxy.cpp
|
||||
+++ b/src/cli/tls_proxy.cpp
|
||||
@@ -33,6 +33,12 @@
|
||||
|
||||
#include "credentials.h"
|
||||
|
||||
+#if BOOST_VERSION >= 107000
|
||||
+#define GET_IO_SERVICE(s) ((boost::asio::io_context&)(s).get_executor().context())
|
||||
+#else
|
||||
+#define GET_IO_SERVICE(s) ((s).get_io_service())
|
||||
+#endif
|
||||
+
|
||||
namespace Botan_CLI {
|
||||
|
||||
namespace {
|
||||
@@ -370,7 +376,7 @@ class tls_proxy_server final
|
||||
session::pointer make_session()
|
||||
{
|
||||
return session::create(
|
||||
- m_acceptor.get_io_service(),
|
||||
+ GET_IO_SERVICE(m_acceptor),
|
||||
m_session_manager,
|
||||
m_creds,
|
||||
m_policy,
|
22
dev-libs/botan/metadata.xml
Normal file
22
dev-libs/botan/metadata.xml
Normal file
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lloyd@randombit.net</email>
|
||||
<name>Jack Lloyd </name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>crypto@gentoo.org</email>
|
||||
<name>Crypto</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers Project</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="boost">use <pkg>dev-libs/boost</pkg></flag>
|
||||
</use>
|
||||
<slots>
|
||||
<subslots>botan soname version</subslots>
|
||||
</slots>
|
||||
</pkgmetadata>
|
Reference in New Issue
Block a user