Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-apps/libkface/files/, kde-apps/libkface/
Date: Sun, 19 Nov 2017 22:33:23
Message-Id: 1511130610.be678488163ca20922ebd1477e20ad0d288f99e7.asturm@gentoo
1 commit: be678488163ca20922ebd1477e20ad0d288f99e7
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 19 22:30:10 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 19 22:30:10 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=be678488
7
8 kde-apps/libkface: Dropped upstream
9
10 See also:
11 https://mail.kde.org/pipermail/release-team/2017-November/010718.html
12
13 .../libkface-16.11.80-opencv3.2-gentoo-3.1.patch | 58 ----------------------
14 kde-apps/libkface/libkface-9999.ebuild | 34 -------------
15 kde-apps/libkface/metadata.xml | 8 ---
16 3 files changed, 100 deletions(-)
17
18 diff --git a/kde-apps/libkface/files/libkface-16.11.80-opencv3.2-gentoo-3.1.patch b/kde-apps/libkface/files/libkface-16.11.80-opencv3.2-gentoo-3.1.patch
19 deleted file mode 100644
20 index bd61e9c52c..0000000000
21 --- a/kde-apps/libkface/files/libkface-16.11.80-opencv3.2-gentoo-3.1.patch
22 +++ /dev/null
23 @@ -1,58 +0,0 @@
24 ---- a/src/recognition-opencv-lbph/facerec_borrowed.h 2016-11-26 14:19:01.492645170 +0100
25 -+++ b/src/recognition-opencv-lbph/facerec_borrowed.h.new 2016-11-26 14:19:17.655835794 +0100
26 -@@ -141,7 +141,7 @@
27 - /*
28 - * Predict
29 - */
30 -- void predict(cv::InputArray src, cv::Ptr<cv::face::PredictCollector> collector, const int state = 0) const override;
31 -+ void predict(cv::InputArray src, cv::Ptr<cv::face::PredictCollector> collector) const override;
32 - #endif
33 -
34 - /**
35 ---- a/src/recognition-opencv-lbph/facerec_borrowed.cpp 2016-11-26 14:19:01.492645170 +0100
36 -+++ b/src/recognition-opencv-lbph/facerec_borrowed.cpp.new 2016-11-26 14:19:29.184971765 +0100
37 -@@ -380,7 +380,7 @@
38 - #if OPENCV_TEST_VERSION(3,1,0)
39 - void LBPHFaceRecognizer::predict(InputArray _src, int &minClass, double &minDist) const
40 - #else
41 --void LBPHFaceRecognizer::predict(cv::InputArray _src, cv::Ptr<cv::face::PredictCollector> collector, const int state) const
42 -+void LBPHFaceRecognizer::predict(cv::InputArray _src, cv::Ptr<cv::face::PredictCollector> collector) const
43 - #endif
44 - {
45 - if(m_histograms.empty())
46 -@@ -404,7 +404,7 @@
47 - minDist = DBL_MAX;
48 - minClass = -1;
49 - #else
50 -- collector->init((int)m_histograms.size(), state);
51 -+ collector->init((int)m_histograms.size());
52 - #endif
53 -
54 - // This is the standard method
55 -@@ -424,7 +424,7 @@
56 - }
57 - #else
58 - int label = m_labels.at<int>((int) sampleIdx);
59 -- if (!collector->emit(label, dist, state))
60 -+ if (!collector->collect(label, dist))
61 - {
62 - return;
63 - }
64 -@@ -470,7 +470,7 @@
65 - minClass = it->first;
66 - }
67 - #else
68 -- if (!collector->emit(it->first, mean, state))
69 -+ if (!collector->collect(it->first, mean))
70 - {
71 - return;
72 - }
73 -@@ -523,7 +523,7 @@
74 - }
75 - #else
76 - // large is better thus it is -score.
77 -- if (!collector->emit(it->first, -score, state))
78 -+ if (!collector->collect(it->first, -score))
79 - {
80 - return;
81 - }
82
83 diff --git a/kde-apps/libkface/libkface-9999.ebuild b/kde-apps/libkface/libkface-9999.ebuild
84 deleted file mode 100644
85 index 571b7dde0c..0000000000
86 --- a/kde-apps/libkface/libkface-9999.ebuild
87 +++ /dev/null
88 @@ -1,34 +0,0 @@
89 -# Copyright 1999-2017 Gentoo Foundation
90 -# Distributed under the terms of the GNU General Public License v2
91 -
92 -EAPI=6
93 -
94 -KDE_BLOCK_SLOT4="false"
95 -inherit kde5
96 -
97 -DESCRIPTION="Qt/C++ wrapper around LibFace to perform face recognition and detection"
98 -HOMEPAGE="https://cgit.kde.org/libkface.git"
99 -
100 -LICENSE="BSD GPL-2+"
101 -KEYWORDS=""
102 -IUSE=""
103 -
104 -DEPEND="
105 - $(add_qt_dep qtgui)
106 - $(add_qt_dep qtsql)
107 - $(add_qt_dep qtwidgets)
108 - $(add_qt_dep qtxml)
109 - media-libs/opencv:=
110 - || ( <media-libs/opencv-3.0.0 >=media-libs/opencv-3.1.0-r6[contrib] )
111 -"
112 -RDEPEND="${DEPEND}"
113 -
114 -PATCHES=( "${FILESDIR}/${PN}-16.11.80-opencv3.2-gentoo-3.1.patch" ) # not upstreamable like that
115 -
116 -src_configure() {
117 - local mycmakeargs=(
118 - -DENABLE_OPENCV3=$(has_version ">=media-libs/opencv-3" && echo yes || echo no)
119 - )
120 -
121 - kde5_src_configure
122 -}
123
124 diff --git a/kde-apps/libkface/metadata.xml b/kde-apps/libkface/metadata.xml
125 deleted file mode 100644
126 index 2fdbf33d96..0000000000
127 --- a/kde-apps/libkface/metadata.xml
128 +++ /dev/null
129 @@ -1,8 +0,0 @@
130 -<?xml version="1.0" encoding="UTF-8"?>
131 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
132 -<pkgmetadata>
133 - <maintainer type="project">
134 - <email>kde@g.o</email>
135 - <name>Gentoo KDE Project</name>
136 - </maintainer>
137 -</pkgmetadata>