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/kopete/
Date: Sat, 11 Nov 2017 22:05:31
Message-Id: 1510437904.fd7262196a1c29d649013d2dea4fdd21e2ff11da.asturm@gentoo
1 commit: fd7262196a1c29d649013d2dea4fdd21e2ff11da
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 11 22:05:04 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 11 22:05:04 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=fd726219
7
8 kde-apps/kopete: Add 17.08.3_p20171029 snapshot for testing
9
10 Package-Manager: Portage-2.3.13, Repoman-2.3.4
11
12 kde-apps/kopete/kopete-17.08.3_p20171029.ebuild | 189 ++++++++++++++++++++++++
13 1 file changed, 189 insertions(+)
14
15 diff --git a/kde-apps/kopete/kopete-17.08.3_p20171029.ebuild b/kde-apps/kopete/kopete-17.08.3_p20171029.ebuild
16 new file mode 100644
17 index 0000000000..2cc8c33ec6
18 --- /dev/null
19 +++ b/kde-apps/kopete/kopete-17.08.3_p20171029.ebuild
20 @@ -0,0 +1,189 @@
21 +# Copyright 1999-2017 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +COMMIT=d7dbacb483124d5d6a8ad30586ec126c8514a715
27 +KDE_HANDBOOK="forceoptional"
28 +KDE_TEST="forceoptional"
29 +inherit kde5 vcs-snapshot
30 +
31 +DESCRIPTION="Multi-protocol IM client based on KDE Frameworks"
32 +HOMEPAGE="https://kopete.kde.org https://www.kde.org/applications/internet/kopete"
33 +SRC_URI="https://github.com/KDE/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
34 +
35 +KEYWORDS=""
36 +IUSE="ssl v4l"
37 +
38 +# tests hang, last checked for 4.2.96
39 +RESTRICT+=" test"
40 +
41 +# Available plugins
42 +#
43 +# addbookmarks: NO DEPS
44 +# alias: NO DEPS (disabled upstream)
45 +# autoreplace: NO DEPS
46 +# contactnotes: NO DEPS
47 +# cryptography: app-crypt/gpgme[cxx,qt5], kde-apps/libkleo:5
48 +# highlight: NO DEPS
49 +# history: NO DEPS
50 +# latex: virtual/latex as RDEPEND
51 +# nowlistening: NO DEPS
52 +# otr: libotr
53 +# pipes: NO DEPS
54 +# privacy: NO DEPS
55 +# statistics: dev-db/sqlite:3
56 +# texteffect: NO DEPS
57 +# translator: NO DEPS
58 +# urlpicpreview: NO DEPS
59 +# webpresence: libxml2 libxslt
60 +# NOTE: By default we enable all plugins that don't have any dependencies
61 +PLUGINS="+addbookmarks +autoreplace +contactnotes +cryptography +highlight
62 +history latex nowlistening otr pipes +privacy +statistics +texteffect
63 +translator +urlpicpreview webpresence"
64 +
65 +# Available protocols
66 +#
67 +# gadu: net-libs/libgadu @since 4.3
68 +# groupwise: app-crypt/qca:2
69 +# irc: NO DEPS, probably will fail so inform user about it
70 +# xmpp: net-dns/libidn app-crypt/qca:2 ENABLED BY DEFAULT NETWORK
71 +# jingle: media-libs/speex net-libs/ortp DISABLED BY UPSTREAM
72 +# meanwhile: net-libs/meanwhile
73 +# oscar: NO DEPS
74 +# telepathy: net-libs/decibel
75 +# testbed: NO DEPS
76 +# winpopup: NO DEPS (we're adding samba as RDEPEND so it works)
77 +# yahoo: media-libs/jasper
78 +# zeroconf (bonjour): NO DEPS
79 +# DISABLED until fixed: skype sms
80 +PROTOCOLS="gadu groupwise jingle meanwhile oscar
81 +testbed winpopup +xmpp yahoo zeroconf"
82 +
83 +# disabled protocols
84 +# telepathy: net-libs/decibel
85 +# irc: NO DEPS
86 +# msn: net-libs/libmsn
87 +# qq: NO DEPS
88 +
89 +IUSE="${IUSE} ${PLUGINS} ${PROTOCOLS}"
90 +
91 +# media-libs/qimageblitz
92 +COMMONDEPEND="
93 + $(add_frameworks_dep kcmutils)
94 + $(add_frameworks_dep kconfig)
95 + $(add_frameworks_dep kcrash)
96 + $(add_frameworks_dep kdbusaddons)
97 + $(add_frameworks_dep khtml)
98 + $(add_frameworks_dep kcoreaddons)
99 + $(add_frameworks_dep kdbusaddons)
100 + $(add_frameworks_dep kdelibs4support)
101 + $(add_frameworks_dep kemoticons)
102 + $(add_frameworks_dep khtml)
103 + $(add_frameworks_dep ki18n)
104 + $(add_frameworks_dep knotifyconfig)
105 + $(add_frameworks_dep kparts)
106 + $(add_frameworks_dep ktexteditor)
107 + $(add_kdeapps_dep kcontacts)
108 + $(add_kdeapps_dep kidentitymanagement)
109 + $(add_kdeapps_dep libkleo)
110 + $(add_qt_dep qtgui)
111 + $(add_qt_dep qtsql)
112 + $(add_qt_dep qtwidgets)
113 + $(add_qt_dep qtxml)
114 + app-crypt/gpgme[cxx,qt5]
115 + dev-libs/libpcre
116 + media-libs/phonon[qt5(+)]
117 + x11-libs/libX11
118 + x11-libs/libXScrnSaver
119 + gadu? ( >=net-libs/libgadu-1.8.0[threads] )
120 + groupwise? ( app-crypt/qca:2[qt5] )
121 + jingle? (
122 + dev-libs/expat
123 + dev-libs/openssl:0
124 + >=media-libs/mediastreamer-2.3.0
125 + media-libs/speex
126 + net-libs/libsrtp:=
127 + net-libs/ortp:=
128 + )
129 + meanwhile? ( net-libs/meanwhile )
130 + otr? ( >=net-libs/libotr-4.0.0 )
131 + statistics? ( dev-db/sqlite:3 )
132 + v4l? ( media-libs/libv4l )
133 + webpresence? (
134 + dev-libs/libxml2
135 + dev-libs/libxslt
136 + )
137 + xmpp? (
138 + app-crypt/qca:2[qt5]
139 + net-dns/libidn
140 + sys-libs/zlib
141 + )
142 + yahoo? ( media-libs/jasper )
143 + zeroconf? (
144 + $(add_frameworks_dep kdnssd)
145 + $(add_kdeapps_dep kidentitymanagement)
146 + )
147 +"
148 +RDEPEND="${COMMONDEPEND}
149 + latex? (
150 + || (
151 + media-gfx/imagemagick
152 + media-gfx/graphicsmagick[imagemagick]
153 + )
154 + virtual/latex-base
155 + )
156 + ssl? ( app-crypt/qca:2[ssl] )
157 +"
158 +# sms? ( app-mobilephone/smssend )
159 +# winpopup? ( net-fs/samba )
160 +DEPEND="${COMMONDEPEND}
161 + x11-proto/scrnsaverproto
162 + jingle? ( dev-libs/jsoncpp )
163 +"
164 +
165 +src_configure() {
166 + local x x2
167 + # Handle common stuff
168 + local mycmakeargs=(
169 + $(cmake-utils_use_find_package jingle LiboRTP)
170 + $(cmake-utils_use_find_package jingle Mediastreamer)
171 + $(cmake-utils_use_find_package jingle Speex)
172 + -DDISABLE_VIDEOSUPPORT=$(usex !v4l)
173 + )
174 + # enable protocols
175 + for x in ${PROTOCOLS}; do
176 + case ${x/+/} in
177 + jingle) x2=libjingle ;;
178 + xmpp) x2=jabber ;;
179 + zeroconf) x2=bonjour ;;
180 + *) x2=${x/+/} ;;
181 + esac
182 + mycmakeargs+=( -DWITH_${x2}=$(usex ${x/+/}) )
183 + done
184 +
185 + mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_Libmsn=ON -DWITH_qq=OFF )
186 +
187 + # disable until fixed:
188 + mycmakeargs+=( -DWITH_{skype,sms}=OFF )
189 +
190 + # enable plugins
191 + for x in ${PLUGINS}; do
192 + mycmakeargs+=( -DWITH_${x/+/}=$(usex ${x/+/}) )
193 + done
194 +
195 + kde5_src_configure
196 +}
197 +
198 +pkg_postinst() {
199 + kde5_pkg_postinst
200 +
201 + if ! use ssl; then
202 + if use xmpp ; then
203 + if ! has_version "app-crypt/qca:2[ssl]" ; then
204 + elog "In order to use ssl in xmpp you'll need to"
205 + elog "install app-crypt/qca package with USE=ssl."
206 + fi
207 + fi
208 + fi
209 +}