Diff dlib-19.24.2 with a dlib-19.24.8

/usr/portage/sci-libs/dlib/dlib-19.24.8.ebuild 2025-07-29 16:22:17.332467742 +0300
1
# Copyright 1999-2024 Gentoo Authors
1
# Copyright 1999-2025 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6
PYTHON_COMPAT=( python3_{10..12} )
6
PYTHON_COMPAT=( python3_{10..13} )
7 7
DISTUTILS_USE_PEP517=setuptools
8 8
DISTUTILS_EXT=1
9 9
DISTUTILS_OPTIONAL=1
10 10
inherit cmake cuda distutils-r1
11 11

  
12 12
DESCRIPTION="Numerical and networking C++ library"
13
HOMEPAGE="http://dlib.net/"
13
HOMEPAGE="https://dlib.net/"
14 14
SRC_URI="https://github.com/davisking/dlib/archive/v${PV}.tar.gz -> ${P}.tar.gz"
15 15

  
16 16
LICENSE="Boost-1.0"
17 17
SLOT="0/${PV}"
18 18
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
19
IUSE="cblas cuda debug examples gif jpeg lapack mkl png python sqlite test X cpu_flags_x86_avx cpu_flags_x86_sse2 cpu_flags_x86_sse4_1"
19
IUSE="cblas cuda debug examples ffmpeg gif jpeg lapack mkl png python sqlite test webp X cpu_flags_x86_avx cpu_flags_x86_sse2 cpu_flags_x86_sse4_1"
20 20
REQUIRED_USE="python? ( png ${PYTHON_REQUIRED_USE} )"
21 21
RESTRICT="!test? ( test )"
22 22

  
......
24 24
RDEPEND="
25 25
	cblas? ( virtual/cblas )
26 26
	cuda? ( dev-libs/cudnn:= )
27
	ffmpeg? ( media-video/ffmpeg:=[X?] )
27 28
	gif? ( media-libs/giflib:= )
28 29
	jpeg? ( media-libs/libjpeg-turbo:0= )
29 30
	lapack? ( virtual/lapack )
......
31 32
	png? ( media-libs/libpng:0= )
32 33
	python? ( ${PYTHON_DEPS} )
33 34
	sqlite? ( dev-db/sqlite:3 )
35
	webp? ( media-libs/libwebp:= )
34 36
	X? ( x11-libs/libX11 )"
35 37
DEPEND="${RDEPEND}"
36 38
BDEPEND="
......
45 47

  
46 48
DOCS=( docs/README.txt )
47 49

  
50
PATCHES=(
51
	"${FILESDIR}/${P}"-disable-upstream-flags.patch
52
)
53

  
48 54
src_prepare() {
49 55
	use cuda && cuda_src_prepare
50 56
	cmake_src_prepare
......
55 61
	local mycmakeargs=(
56 62
		-DDLIB_ENABLE_ASSERTS=$(usex debug)
57 63
		-DDLIB_ENABLE_STACK_TRACE=$(usex debug)
64
		-DDLIB_USE_FFMPEG=$(usex ffmpeg)
58 65
		-DDLIB_GIF_SUPPORT=$(usex gif)
59 66
		-DDLIB_JPEG_SUPPORT=$(usex jpeg)
60 67
		-DDLIB_PNG_SUPPORT=$(usex png)
......
63 70
		-DDLIB_USE_BLAS=$(usex cblas)
64 71
		-DDLIB_USE_CUDA=$(usex cuda)
65 72
		-DDLIB_USE_LAPACK=$(usex lapack)
73
		-DDLIB_WEBP_SUPPORT=$(usex webp)
66 74
		-DUSE_AVX_INSTRUCTIONS=$(usex cpu_flags_x86_avx)
67 75
		-DUSE_SSE2_INSTRUCTIONS=$(usex cpu_flags_x86_sse2)
68 76
		-DUSE_SSE4_INSTRUCTIONS=$(usex cpu_flags_x86_sse4_1)
Thank you!