diff options
Diffstat (limited to 'dev-libs/aws-c-io')
| -rw-r--r-- | dev-libs/aws-c-io/Manifest | 1 | ||||
| -rw-r--r-- | dev-libs/aws-c-io/aws-c-io-0.7.0.ebuild | 42 | ||||
| -rw-r--r-- | dev-libs/aws-c-io/files/aws-c-io-0.7.0-cmake-prefix.patch | 12 | ||||
| -rw-r--r-- | dev-libs/aws-c-io/metadata.xml | 24 |
4 files changed, 79 insertions, 0 deletions
diff --git a/dev-libs/aws-c-io/Manifest b/dev-libs/aws-c-io/Manifest new file mode 100644 index 000000000000..bca18fcf6224 --- /dev/null +++ b/dev-libs/aws-c-io/Manifest @@ -0,0 +1 @@ +DIST aws-c-io-0.7.0.tar.gz 561762 BLAKE2B ffe8ac5de9fd5f57e7bc18e1d956f28567413d34ec23a7d0869065718039b1ab56aeae82fd8e24bf77f7393df2c1140308195cd8a4c6ff06cbc7843ae62d76c8 SHA512 b858a5a14cfea86c39f96963c4238ca0f90339befcbd6480e6353719d9846079764f8b42fbdc0cec2f99223bfe1c07fa2a014543fa3fe8a6357440e3cd1007f5 diff --git a/dev-libs/aws-c-io/aws-c-io-0.7.0.ebuild b/dev-libs/aws-c-io/aws-c-io-0.7.0.ebuild new file mode 100644 index 000000000000..e3fbefde1310 --- /dev/null +++ b/dev-libs/aws-c-io/aws-c-io-0.7.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="AWS SDK for C module, handles IO and TLS work for application protocols" +HOMEPAGE="https://github.com/awslabs/aws-c-io" +SRC_URI="https://github.com/awslabs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="static-libs test" + +RESTRICT="!test? ( test )" + +BDEPEND=" + || ( + >dev-util/cmake-3.19.1 + <dev-util/cmake-3.19.0 + ) +" + +DEPEND=" + >=dev-libs/aws-c-cal-0.4.5:=[static-libs=] + >=dev-libs/aws-c-common-0.4.62:=[static-libs=] + >=dev-libs/s2n-0.10.21:=[static-libs=] +" + +PATCHES=( + "${FILESDIR}"/${P}-cmake-prefix.patch +) + +src_configure() { + local mycmakeargs=( + -DBUILD_SHARED_LIBS=$(usex !static-libs) + -DBUILD_TESTING=$(usex test) + ) + cmake_src_configure +} diff --git a/dev-libs/aws-c-io/files/aws-c-io-0.7.0-cmake-prefix.patch b/dev-libs/aws-c-io/files/aws-c-io-0.7.0-cmake-prefix.patch new file mode 100644 index 000000000000..39cab922b3d9 --- /dev/null +++ b/dev-libs/aws-c-io/files/aws-c-io-0.7.0-cmake-prefix.patch @@ -0,0 +1,12 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -23,7 +23,7 @@ elseif(NOT DEFINED CMAKE_INSTALL_LIBDIR) + endif() + + # This is required in order to append /lib/cmake to each element in CMAKE_PREFIX_PATH +-set(AWS_MODULE_DIR "/${CMAKE_INSTALL_LIBDIR}/cmake") ++set(AWS_MODULE_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/cmake") + string(REPLACE ";" "${AWS_MODULE_DIR};" AWS_MODULE_PATH "${CMAKE_PREFIX_PATH}${AWS_MODULE_DIR}") + # Append that generated list to the module search path + list(APPEND CMAKE_MODULE_PATH ${AWS_MODULE_PATH}) + diff --git a/dev-libs/aws-c-io/metadata.xml b/dev-libs/aws-c-io/metadata.xml new file mode 100644 index 000000000000..50ffd156cf66 --- /dev/null +++ b/dev-libs/aws-c-io/metadata.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>sven.eden@prydeworx.com</email> + <name>Sven Eden</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription> +This is a module for the AWS SDK for C. It handles all IO and TLS work for application protocols. + +aws-c-io is an event driven framework for implementing application protocols. It is built on top of cross-platform +abstractions that allow you as a developer to think only about the state machine and API for your protocols. A typical +use-case would be to write something like Http on top of asynchronous-io with TLS already baked in. All of the platform +and security concerns are already handled for you. + +It is designed to be light-weight, fast, portable, and flexible for multiple domain use-cases such as: embedded, +server, client, and mobile. + </longdescription> + <origin>gentoo-staging</origin> +</pkgmetadata> |
