summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2017-05-18 05:21:59 -0400
committerAnthony G. Basile <blueness@gentoo.org>2017-05-18 05:22:22 -0400
commit4c5f38596433502c63e00d98fd730aa6d2baf29d (patch)
tree8f5add0676047a6d71eb697a285b0cf67e36d7cc /net-libs/mbedtls
parentgames-fps/xonotic: Fixed game basedir. (diff)
downloadgentoo-4c5f38596433502c63e00d98fd730aa6d2baf29d.tar.gz
gentoo-4c5f38596433502c63e00d98fd730aa6d2baf29d.tar.bz2
gentoo-4c5f38596433502c63e00d98fd730aa6d2baf29d.zip
net-libs/mbedtls: version bump to 2.5.0
Package-Manager: Portage-2.3.5, Repoman-2.3.1
Diffstat (limited to 'net-libs/mbedtls')
-rw-r--r--net-libs/mbedtls/Manifest1
-rw-r--r--net-libs/mbedtls/mbedtls-2.5.0.ebuild93
2 files changed, 94 insertions, 0 deletions
diff --git a/net-libs/mbedtls/Manifest b/net-libs/mbedtls/Manifest
index 03797510dd0e..0f66899a1d92 100644
--- a/net-libs/mbedtls/Manifest
+++ b/net-libs/mbedtls/Manifest
@@ -2,3 +2,4 @@ DIST mbedtls-2.2.1.tar.gz 1807209 SHA256 32819c62c20e8740a11b49daa5d09ac6f179edf
DIST mbedtls-2.3.0.tar.gz 1834271 SHA256 1614ee70be99a18ca8298148308fb725aad4ad31c569438bb51655a4999b14f9 SHA512 f8ddfa791dbefca4005711e55802a65da74e6e161350929faef37f976804f486a1cad7ac6abc30ac2a21ff847c772048564fc91d0ee1d8823bb4b6dbca9af7eb WHIRLPOOL 56244f55340a4414d1189bbd051326ca79d10eec3df2ad425007dd4709401912b5d3faf8c537213a244629c81942fa586685d37afaa920b78e14829e96b0b1b9
DIST mbedtls-2.4.1.tar.gz 1854727 SHA256 0c85fe59e1f0426b1c8f17efdc0c41bd531828b6cff746c392beb53c774af4cb SHA512 c452ec701c90bca236be1fbacb728036a01eca257c9df8b0d738e02f4a3570183e34ae23221ca61933dd34e42ca7659bae9ce5de0a6fdd870e77c4b7154d3688 WHIRLPOOL ccf4229e0504b59dd021ce7e0bf449e58c0c8c26e1f088827b6dc801cdaddc296400bac8afba58b282740a107f2462bccf544cd6f943bf98a0382c66f6875652
DIST mbedtls-2.4.2.tar.gz 1861681 SHA256 b7afab6a0f86e29c6055848b70d183c4e2531cb0ec955b66c0e4e1b7e4954bf4 SHA512 39ab068ffad99afe228749fc7f69a02a8c79f0fdb73e2dbcde2e97f737338030e2fb8507e9d1cb866429e89b255197a2225607d6645421d31d7f2ccb65bfc04f WHIRLPOOL e74864290e93d9ae52dcf6d9751d0da6b09c84f527e0a548198b2bb4869c4477628237eb1d422dcb47724435d360381fc9d7ddcc930bf078a8e5f63ee83411f4
+DIST mbedtls-2.5.0.tar.gz 1868724 SHA256 5f92c4abfd7939dc41a740cace8e6280b10ec4b7b673636eb59e47ab9258ba9f SHA512 dac13ed4b64ac70c087a563d1cf86c81dab4e4e083896a331476501d485950e6fb2e04baf3ee5ad7848b595c100cc46caebbd1d13417e0003ae8e2d5c7e47b12 WHIRLPOOL e17c24706772af3e1a5ac96f280543d1ecef30e03091b3f1c1addb0f44c2087a5691d6e37ebfeaa3d1b17b707b8865db0266b3842a5f1dfa130bf7ef556e722b
diff --git a/net-libs/mbedtls/mbedtls-2.5.0.ebuild b/net-libs/mbedtls/mbedtls-2.5.0.ebuild
new file mode 100644
index 000000000000..a5f6f23f8553
--- /dev/null
+++ b/net-libs/mbedtls/mbedtls-2.5.0.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils multilib-minimal
+
+DESCRIPTION="Cryptographic library for embedded systems"
+HOMEPAGE="https://tls.mbed.org/"
+SRC_URI="https://github.com/ARMmbed/mbedtls/archive/${P}.tar.gz"
+S=${WORKDIR}/${PN}-${P}
+
+LICENSE="Apache-2.0"
+SLOT="0/10" # slot for libmbedtls.so
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~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 )"
+
+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
+
+ cmake-utils_src_prepare
+}
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DENABLE_PROGRAMS=$(multilib_native_usex programs)
+ -DENABLE_ZLIB_SUPPORT=$(usex zlib)
+ -DUSE_STATIC_MBEDTLS_LIBRARY=OFF
+ -DENABLE_TESTING=$(usex test)
+ -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() {
+ use doc && HTML_DOCS=( apidoc )
+
+ einstalldocs
+
+ 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
+}