1 |
commit: 83a445079c6b79e602aa11c6063761f57f074c12 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 31 11:40:54 2021 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 31 11:40:54 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83a44507 |
7 |
|
8 |
sci-libs/dlib: Version bump to 19.22 |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
sci-libs/dlib/Manifest | 1 + |
14 |
sci-libs/dlib/dlib-19.22.ebuild | 97 +++++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 98 insertions(+) |
16 |
|
17 |
diff --git a/sci-libs/dlib/Manifest b/sci-libs/dlib/Manifest |
18 |
index 63c671d911e..f824015a676 100644 |
19 |
--- a/sci-libs/dlib/Manifest |
20 |
+++ b/sci-libs/dlib/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST dlib-19.16.tar.gz 10411975 BLAKE2B 93047590a4d8f4685970d3db6841cbf9cc90ca8a5e50f0929a106d887e5db1b4fd96bbe14380537a3e28369a8db6d9d8c067e7768000ac3c7d0f225b46369326 SHA512 4e040ef88acff05e1a48e499b813c876b22ad3f989d076bdf19969d01036b62e51a0dff30b70046910ba31dfa1b1c2450a7fad41ae3142b7285ed74b8d584887 |
23 |
+DIST dlib-19.22.tar.gz 10796236 BLAKE2B 5ca840536f61b38557d39ff6c24d9727f7c494e032d5abf912ccf83f724ecad61ce241126478eeed8b14e33b994af4065b1cfaf17a3b29cfa0dafc236e4c2a06 SHA512 49af41460de9aa270e47ee1d158231e87ffdbbf56ca29a3382dd896fcf81ef04729e59bd9c26eac63fb088cefce651149e5cdb0ffed73bfd6b05127887114d94 |
24 |
|
25 |
diff --git a/sci-libs/dlib/dlib-19.22.ebuild b/sci-libs/dlib/dlib-19.22.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..04deb083df0 |
28 |
--- /dev/null |
29 |
+++ b/sci-libs/dlib/dlib-19.22.ebuild |
30 |
@@ -0,0 +1,97 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{7..9} ) |
37 |
+DISTUTILS_OPTIONAL=1 |
38 |
+inherit cmake cuda distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="Numerical and networking C++ library" |
41 |
+HOMEPAGE="http://dlib.net/" |
42 |
+SRC_URI="https://github.com/davisking/dlib/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="Boost-1.0" |
45 |
+SLOT="0/${PV}" |
46 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
47 |
+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" |
48 |
+REQUIRED_USE="python? ( png ${PYTHON_REQUIRED_USE} )" |
49 |
+RESTRICT="!test? ( test )" |
50 |
+ |
51 |
+# doc needs a bunch of deps not in portage |
52 |
+RDEPEND=" |
53 |
+ cblas? ( virtual/cblas ) |
54 |
+ cuda? ( dev-libs/cudnn:= ) |
55 |
+ gif? ( media-libs/giflib:= ) |
56 |
+ jpeg? ( virtual/jpeg:0= ) |
57 |
+ lapack? ( virtual/lapack ) |
58 |
+ mkl? ( sci-libs/mkl ) |
59 |
+ png? ( media-libs/libpng:0= ) |
60 |
+ python? ( ${PYTHON_DEPS} ) |
61 |
+ sqlite? ( dev-db/sqlite:3 ) |
62 |
+ X? ( x11-libs/libX11 )" |
63 |
+DEPEND="${RDEPEND}" |
64 |
+BDEPEND="python? ( test? ( dev-python/pytest[${PYTHON_USEDEP}] ) )" |
65 |
+ |
66 |
+DOCS=( docs/README.txt ) |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ use cuda && cuda_src_prepare |
70 |
+ cmake_src_prepare |
71 |
+ use python && distutils-r1_src_prepare |
72 |
+} |
73 |
+ |
74 |
+src_configure() { |
75 |
+ local mycmakeargs=( |
76 |
+ -DDLIB_ENABLE_ASSERTS=$(usex debug) |
77 |
+ -DDLIB_ENABLE_STACK_TRACE=$(usex debug) |
78 |
+ -DDLIB_GIF_SUPPORT=$(usex gif) |
79 |
+ -DDLIB_JPEG_SUPPORT=$(usex jpeg) |
80 |
+ -DDLIB_PNG_SUPPORT=$(usex png) |
81 |
+ -DDLIB_LINK_WITH_SQLITE3=$(usex sqlite) |
82 |
+ -DDLIB_NO_GUI_SUPPORT=$(usex X OFF ON) |
83 |
+ -DDLIB_USE_BLAS=$(usex cblas) |
84 |
+ -DDLIB_USE_CUDA=$(usex cuda) |
85 |
+ -DDLIB_USE_LAPACK=$(usex lapack) |
86 |
+ -DUSE_AVX_INSTRUCTIONS=$(usex cpu_flags_x86_avx) |
87 |
+ -DUSE_SSE2_INSTRUCTIONS=$(usex cpu_flags_x86_sse2) |
88 |
+ -DUSE_SSE4_INSTRUCTIONS=$(usex cpu_flags_x86_sse4_1) |
89 |
+ ) |
90 |
+ cmake_src_configure |
91 |
+ use python && distutils-r1_src_configure |
92 |
+} |
93 |
+ |
94 |
+src_compile() { |
95 |
+ cmake_src_compile |
96 |
+ use python && distutils-r1_src_compile |
97 |
+} |
98 |
+ |
99 |
+python_test() { |
100 |
+ esetup.py test |
101 |
+} |
102 |
+ |
103 |
+src_test() { |
104 |
+ ( |
105 |
+ local BUILD_DIR="${BUILD_DIR}"/dlib/test |
106 |
+ mkdir -p "${BUILD_DIR}" || die |
107 |
+ cd "${BUILD_DIR}" >/dev/null || die |
108 |
+ |
109 |
+ local CMAKE_USE_DIR="${S}"/dlib/test |
110 |
+ cmake_src_configure |
111 |
+ cmake_build |
112 |
+ |
113 |
+ ./dtest --runall || die "Tests failed" |
114 |
+ ) |
115 |
+ |
116 |
+ use python && distutils-r1_src_test |
117 |
+} |
118 |
+ |
119 |
+src_install() { |
120 |
+ cmake_src_install |
121 |
+ use python && distutils-r1_src_install |
122 |
+ |
123 |
+ if use examples; then |
124 |
+ dodoc -r examples |
125 |
+ docompress -x /usr/share/doc/${PF} |
126 |
+ fi |
127 |
+} |