diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2016-04-03 12:18:37 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2016-04-03 12:18:37 -0400 |
commit | ddd50ef66e1a80939c240493c1be15a1a2accd13 (patch) | |
tree | c5c567719853d5060d4fc937d576351ced5f139d /net-libs/mbedtls | |
parent | dev-python/whoosh: version bump to 2.7.3 (diff) | |
download | gentoo-ddd50ef66e1a80939c240493c1be15a1a2accd13.tar.gz gentoo-ddd50ef66e1a80939c240493c1be15a1a2accd13.tar.bz2 gentoo-ddd50ef66e1a80939c240493c1be15a1a2accd13.zip |
net-libs/mbedtls: version bump to 2.2.1
Package-Manager: portage-2.2.26
Diffstat (limited to 'net-libs/mbedtls')
-rw-r--r-- | net-libs/mbedtls/Manifest | 1 | ||||
-rw-r--r-- | net-libs/mbedtls/mbedtls-2.2.1.ebuild | 94 |
2 files changed, 95 insertions, 0 deletions
diff --git a/net-libs/mbedtls/Manifest b/net-libs/mbedtls/Manifest index 21c794d25bde..c8ddd5cfff4c 100644 --- a/net-libs/mbedtls/Manifest +++ b/net-libs/mbedtls/Manifest @@ -1,2 +1,3 @@ DIST mbedtls-2.1.3.tar.gz 1789846 SHA256 94da4618d5a518b99f7914a5e348be436e3571113d9a9978d130725a1fc7bfac SHA512 c9ab514779c20b632d3a4027dd7c0027a916ff8d55f1f8ba80b0ef0d47a1d09f4bab7cb8bbd910d4e130e1f19d043d681572ba86ace9c3a4db60b2b051141a93 WHIRLPOOL 0547690b76f44c36da0eecf36bc8ce3ae6cd840ad8029f5711b6dc275b371abb6e2a87346ccb0bc9ce14b2b777b665a88364eecd7ab16a0d321dc8bc91c0c000 DIST mbedtls-2.2.0.tar.gz 1803014 SHA256 75494361e412444b38ebb9c908b7e17a5fb582eb9c3fadb2fe9b21e96f1bf8cb SHA512 cf9ea03792ef6c54e77cd4c2410517b6e124f8ee7132c78c0463fc1cf3a6eff656d8436abfb0c6238bd5484fcefc1ec42598ee6d8128ec88df1d04b053739fd1 WHIRLPOOL 7bdfdabf043f0eee8edd0af286640a3ae6bee928ede3f74a32d6bafc921a874a9d2af78aa7f6d637394abe1ea92ef0caca9c42e6808d530007fc6b99ab3ee18a +DIST mbedtls-2.2.1.tar.gz 1807209 SHA256 32819c62c20e8740a11b49daa5d09ac6f179edf120a87ac559cd63120b66b699 SHA512 bc97e7ddf2fcbd1c22927f5c01cfd0706a6f1051f5a62f42e97db49dcd98afbee8878b1dd815da830e3fe1b66b04ada8a0a88baf32833b2c13070c2bd29b62d5 WHIRLPOOL 2ae84564a0e35de60539030fac913396acf385e948095c2e9ee2cfe9d814c90a448d596a75cdffbb054a63ffe0a1a87b9161d5d512ec4bc7935e97803c39d139 diff --git a/net-libs/mbedtls/mbedtls-2.2.1.ebuild b/net-libs/mbedtls/mbedtls-2.2.1.ebuild new file mode 100644 index 000000000000..6e966eb60004 --- /dev/null +++ b/net-libs/mbedtls/mbedtls-2.2.1.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils multilib cmake-utils multilib-minimal + +DESCRIPTION="Cryptographic library for embedded systems" +HOMEPAGE="https://tls.mbed.org/" +SRC_URI="https://github.com/ARMmbed/mbedtls/archive/mbedtls-${PV}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0/10" # slot for libmbedtls.so +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" +IUSE="cpu_flags_x86_sse2 doc havege libressl programs test threads zlib" + +RDEPEND=" + programs? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + ) + zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen media-gfx/graphviz ) + test? ( dev-lang/perl )" + +S=${WORKDIR}/${PN}-${P} + +enable_mbedtls_option() { + local myopt="$@" + # check that config.h syntax is the same at version bump + sed -i \ + -e "s://#define ${myopt}:#define ${myopt}:" \ + include/mbedtls/config.h || die +} + +src_prepare() { + use cpu_flags_x86_sse2 && enable_mbedtls_option MBEDTLS_HAVE_SSE2 + use zlib && enable_mbedtls_option MBEDTLS_ZLIB_SUPPORT + use havege && enable_mbedtls_option MBEDTLS_HAVEGE_C + use threads && enable_mbedtls_option MBEDTLS_THREADING_C + use threads && enable_mbedtls_option MBEDTLS_THREADING_PTHREAD +} + +multilib_src_configure() { + local mycmakeargs=( + $(multilib_is_native_abi && cmake-utils_use_enable programs PROGRAMS \ + || echo -DENABLE_PROGRAMS=OFF) + $(cmake-utils_use_enable zlib ZLIB_SUPPORT) + -DUSE_STATIC_MBEDTLS_LIBRARY=OFF + $(cmake-utils_use_enable test TESTING) + -DUSE_SHARED_MBEDTLS_LIBRARY=ON + -DINSTALL_MBEDTLS_HEADERS=ON + -DLIB_INSTALL_DIR="/usr/$(get_libdir)" + ) + + cmake-utils_src_configure +} + +multilib_src_compile() { + cmake-utils_src_compile + use doc && multilib_is_native_abi && emake apidoc +} + +multilib_src_test() { + LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${BUILD_DIR}/library" \ + cmake-utils_src_test +} + +multilib_src_install() { + cmake-utils_src_install +} + +multilib_src_install_all() { + einstalldocs + + use doc && dohtml -r apidoc + + if use programs ; then + # avoid file collisions with sys-apps/coreutils + local p e + for p in "${ED%/}"/usr/bin/* ; do + if [[ -x "${p}" && ! -d "${p}" ]] ; then + mv "${p}" "${ED%/}"/usr/bin/mbedtls_${p##*/} || die + fi + done + for e in aes hash pkey ssl test ; do + docinto "${e}" + dodoc programs/"${e}"/*.c + dodoc programs/"${e}"/*.txt + done + fi +} |