diff options
author | Azamat H. Hackimov <azamat.hackimov@gmail.com> | 2024-04-12 03:38:10 +0300 |
---|---|---|
committer | Viorel Munteanu <ceamac@gentoo.org> | 2024-05-27 13:51:32 +0300 |
commit | ad836c07f3eb8358cd8b2c21d3a86d68540eaae7 (patch) | |
tree | f8b17ee996a5453882661f2a314e88c7dad3cd45 /net-libs/mbedtls/mbedtls-2.28.5.ebuild | |
parent | net-libs/mbedtls: add 3.6.0 (diff) | |
download | gentoo-ad836c07f3eb8358cd8b2c21d3a86d68540eaae7.tar.gz gentoo-ad836c07f3eb8358cd8b2c21d3a86d68540eaae7.tar.bz2 gentoo-ad836c07f3eb8358cd8b2c21d3a86d68540eaae7.zip |
net-libs/mbedtls: drop 2.28.5, 3.5.2
Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/36218
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
Diffstat (limited to 'net-libs/mbedtls/mbedtls-2.28.5.ebuild')
-rw-r--r-- | net-libs/mbedtls/mbedtls-2.28.5.ebuild | 103 |
1 files changed, 0 insertions, 103 deletions
diff --git a/net-libs/mbedtls/mbedtls-2.28.5.ebuild b/net-libs/mbedtls/mbedtls-2.28.5.ebuild deleted file mode 100644 index 0ef263d1a1fe..000000000000 --- a/net-libs/mbedtls/mbedtls-2.28.5.ebuild +++ /dev/null @@ -1,103 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake multilib-minimal - -DESCRIPTION="Cryptographic library for embedded systems" -HOMEPAGE="https://www.trustedfirmware.org/projects/mbed-tls/" -SRC_URI="https://github.com/Mbed-TLS/mbedtls/archive/${P}.tar.gz" -S="${WORKDIR}"/${PN}-${P} - -LICENSE="Apache-2.0" -SLOT="0/7.14.1" # ffmpeg subslot naming: SONAME tuple of {libmbedcrypto.so,libmbedtls.so,libmbedx509.so} -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" -IUSE="cmac cpu_flags_x86_sse2 doc havege programs static-libs test threads zlib" -RESTRICT="!test? ( test )" - -RDEPEND=" - programs? ( - dev-libs/openssl:= - ) - zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) -" -DEPEND="${RDEPEND}" -BDEPEND=" - doc? ( - app-text/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 cmac && enable_mbedtls_option MBEDTLS_CMAC_C - 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_src_prepare -} - -multilib_src_configure() { - local mycmakeargs=( - -DENABLE_PROGRAMS=$(multilib_native_usex programs) - -DENABLE_ZLIB_SUPPORT=$(usex zlib) - -DUSE_STATIC_MBEDTLS_LIBRARY=$(usex static-libs) - -DENABLE_TESTING=$(usex test) - -DUSE_SHARED_MBEDTLS_LIBRARY=ON - -DINSTALL_MBEDTLS_HEADERS=ON - -DLIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)" - -DMBEDTLS_FATAL_WARNINGS=OFF # Don't use -Werror, #744946 - ) - - cmake_src_configure -} - -multilib_src_compile() { - cmake_src_compile - use doc && multilib_is_native_abi && emake -C "${S}" apidoc -} - -multilib_src_test() { - # Disable parallel run, bug #718390 - # https://github.com/Mbed-TLS/mbedtls/issues/4980 - LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${BUILD_DIR}/library" \ - cmake_src_test -j1 -} - -multilib_src_install() { - cmake_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 -} |