Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-irc/kvirc/
Date: Tue, 03 Apr 2018 16:40:15
Message-Id: 1522773514.cabd489cd7aa549e40032b6f5ddd6ceaf25047b5.floppym@gentoo
1 commit: cabd489cd7aa549e40032b6f5ddd6ceaf25047b5
2 Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
3 AuthorDate: Tue Apr 3 01:53:28 2018 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 3 16:38:34 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cabd489c
7
8 net-irc/kvirc: Version bump (5.0_pre20180401054732).
9
10 net-irc/kvirc/Manifest | 1 +
11 net-irc/kvirc/kvirc-5.0_pre20180401054732.ebuild | 148 +++++++++++++++++++++++
12 2 files changed, 149 insertions(+)
13
14 diff --git a/net-irc/kvirc/Manifest b/net-irc/kvirc/Manifest
15 index a0cf00614ba..6b013cf00dd 100644
16 --- a/net-irc/kvirc/Manifest
17 +++ b/net-irc/kvirc/Manifest
18 @@ -1,3 +1,4 @@
19 DIST kvirc-5.0_pre20171001143427.tar.gz 6035319 BLAKE2B 764b079b2d991f3b80b48eaf4119ac9cbfef3429d97e990fdc9c95a23561d3efc553c876a8eac17465cf14533f3230af24695f834dd985d73f89d45103457eb2 SHA512 ccf9b032737ce24cc98c23f3e1363b7ad874452837805b9a240dfd0d5e067da556dcd6003398f3cb2826f144656540592189e7f88d68608d6fbb2e8294535640
20 DIST kvirc-5.0_pre20171211100641.tar.gz 6035018 BLAKE2B 0da30cbd0ac7443b994f4f8f4b8b39255219d99a34dd026cc59d119bec11985e261f281928f817ffe0865427a2f59b2a25abbe20d9d4a391086c26c507f83074 SHA512 599ea40faac97ad0604e29fe8f77a92f36a9f52fdee118dead712e1cea8d03d2b2791cb121dcd7efd39d5719e9133ff79e45ea1ffefa5886b0b11709ae41f814
21 DIST kvirc-5.0_pre20180209140255.tar.gz 6035048 BLAKE2B 1141fb73b2498f931b8e2b28368cbae8b94d6268e2f5548e38f5a5a6c0776a9ffe4c7c2d5139eda7166c1cae73fb61ebc894cc085ec1ad20edc1f53136a21492 SHA512 c9dc3d257dcb9446c91be07d490fc76418eaaa93bd133dfec5b659949baae68383e04cbfbab9624db8bf6f1908fd93a190a74f95b6d1b929a75739c3032f82e6
22 +DIST kvirc-5.0_pre20180401054732.tar.gz 6040980 BLAKE2B fa023ef84f5c84e92b11ed043be0a2e52316fc92f206c41bcb7216760e0473e13e118398445137aeafd657c856cdccfa2f5202f9534904771d8a049d5139f41a SHA512 6d3a9bb06018e2d54369139bbf0a768d3c4e39754b908c1e4294c79707c8b5b751141ae10bdf8456465bd9bf6e4e426a91bc6bef5a1c3563bf32adecc10582eb
23
24 diff --git a/net-irc/kvirc/kvirc-5.0_pre20180401054732.ebuild b/net-irc/kvirc/kvirc-5.0_pre20180401054732.ebuild
25 new file mode 100644
26 index 00000000000..37a0e7d775e
27 --- /dev/null
28 +++ b/net-irc/kvirc/kvirc-5.0_pre20180401054732.ebuild
29 @@ -0,0 +1,148 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI="5"
34 +PYTHON_COMPAT=(python2_7)
35 +
36 +inherit cmake-utils flag-o-matic gnome2-utils multilib python-single-r1 xdg-utils
37 +
38 +if [[ "${PV}" == "9999" ]]; then
39 + inherit git-r3
40 +
41 + EGIT_REPO_URI="https://github.com/kvirc/KVIrc"
42 + KVIRC_GIT_REVISION=""
43 + KVIRC_GIT_SOURCES_DATE=""
44 +else
45 + inherit vcs-snapshot
46 +
47 + KVIRC_GIT_REVISION="e6915e5ed77aef19080aeab5ca76a61faf1d4e41"
48 + KVIRC_GIT_SOURCES_DATE="${PV#*_pre}"
49 + KVIRC_GIT_SOURCES_DATE="${KVIRC_GIT_SOURCES_DATE:0:4}-${KVIRC_GIT_SOURCES_DATE:4:2}-${KVIRC_GIT_SOURCES_DATE:6:2}"
50 +fi
51 +
52 +DESCRIPTION="Advanced IRC Client"
53 +HOMEPAGE="http://www.kvirc.net/ https://github.com/kvirc/KVIrc"
54 +if [[ "${PV}" == "9999" ]]; then
55 + SRC_URI=""
56 +else
57 + SRC_URI="https://github.com/kvirc/KVIrc/archive/${KVIRC_GIT_REVISION}.tar.gz -> ${P}.tar.gz"
58 +fi
59 +
60 +LICENSE="kvirc"
61 +SLOT="0"
62 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
63 +IUSE="audiofile +dbus dcc_video debug doc gsm kde +nls oss +perl +phonon profile +python spell +ssl theora webkit"
64 +REQUIRED_USE="audiofile? ( oss ) python? ( ${PYTHON_REQUIRED_USE} )"
65 +
66 +RDEPEND="dev-qt/qtcore:5
67 + dev-qt/qtgui:5
68 + dev-qt/qtmultimedia:5
69 + dev-qt/qtnetwork:5
70 + dev-qt/qtprintsupport:5
71 + dev-qt/qtsql:5
72 + dev-qt/qtwidgets:5
73 + dev-qt/qtx11extras:5
74 + dev-qt/qtxml:5
75 + sys-libs/zlib:0=
76 + x11-libs/libX11
77 + x11-libs/libXScrnSaver
78 + audiofile? ( media-libs/audiofile )
79 + dbus? ( dev-qt/qtdbus:5 )
80 + dcc_video? ( dev-qt/qtmultimedia:5[widgets] )
81 + kde? (
82 + kde-frameworks/kcoreaddons:5
83 + kde-frameworks/ki18n:5
84 + kde-frameworks/knotifications:5
85 + kde-frameworks/kservice:5
86 + kde-frameworks/kwindowsystem:5
87 + kde-frameworks/kxmlgui:5
88 + )
89 + perl? ( dev-lang/perl:0= )
90 + phonon? ( media-libs/phonon[qt5(+)] )
91 + python? ( ${PYTHON_DEPS} )
92 + spell? ( app-text/enchant:0= )
93 + ssl? ( dev-libs/openssl:0= )
94 + theora? (
95 + media-libs/libogg
96 + media-libs/libtheora
97 + media-libs/libvorbis
98 + )
99 + webkit? ( dev-qt/qtwebkit:5 )"
100 +DEPEND="${RDEPEND}
101 + virtual/pkgconfig
102 + doc? ( app-doc/doxygen )
103 + kde? ( kde-frameworks/extra-cmake-modules:5 )
104 + nls? ( sys-devel/gettext )"
105 +RDEPEND="${RDEPEND}
106 + gsm? ( media-sound/gsm )"
107 +
108 +DOCS=(ChangeLog doc/FAQ)
109 +
110 +pkg_setup() {
111 + if use python; then
112 + python-single-r1_pkg_setup
113 + fi
114 +}
115 +
116 +src_prepare() {
117 + cmake-utils_src_prepare
118 +
119 + if [[ "${PV}" == "9999" ]]; then
120 + KVIRC_GIT_REVISION="$(git show -s --format=%H)"
121 + KVIRC_GIT_SOURCES_DATE="$(git show -s --format=%cd --date=short)"
122 + fi
123 + einfo "Setting of revision number to ${KVIRC_GIT_REVISION} ${KVIRC_GIT_SOURCES_DATE}"
124 + sed -e "/#define KVI_DEFAULT_FRAME_CAPTION/s/KVI_VERSION/& \" (${KVIRC_GIT_REVISION} ${KVIRC_GIT_SOURCES_DATE})\"/" -i src/kvirc/ui/KviMainWindow.cpp || die "Setting of revision number failed"
125 +}
126 +
127 +src_configure() {
128 + append-flags -fno-strict-aliasing
129 +
130 + local libdir="$(get_libdir)"
131 + local mycmakeargs=(
132 + -DLIB_SUFFIX=${libdir#lib}
133 + -DMANUAL_REVISION=${KVIRC_GIT_REVISION}
134 + -DMANUAL_SOURCES_DATE=${KVIRC_GIT_SOURCES_DATE//-/}
135 + -DWANT_ENV_FLAGS=yes
136 + -DWANT_VERBOSE=yes
137 +
138 + -DWANT_CRYPT=yes
139 + -DWANT_DCC_VOICE=yes
140 + -DWANT_IPC=yes
141 + -DWANT_IPV6=yes
142 + -DWANT_TRANSPARENCY=yes
143 +
144 + -DWANT_AUDIOFILE=$(usex audiofile)
145 + -DWANT_DCC_VIDEO=$(usex dcc_video)
146 + -DWANT_DEBUG=$(usex debug)
147 + -DWANT_DOXYGEN=$(usex doc)
148 + -DWANT_GETTEXT=$(usex nls)
149 + -DWANT_GSM=$(usex gsm)
150 + -DWANT_KDE=$(usex kde)
151 + -DWANT_MEMORY_PROFILE=$(usex profile)
152 + -DWANT_OGG_THEORA=$(usex theora)
153 + -DWANT_OPENSSL=$(usex ssl)
154 + -DWANT_OSS=$(usex oss)
155 + -DWANT_PERL=$(usex perl)
156 + -DWANT_PHONON=$(usex phonon)
157 + -DWANT_PYTHON=$(usex python)
158 + -DWANT_QTDBUS=$(usex dbus)
159 + -DWANT_QTWEBKIT=$(usex webkit)
160 + -DWANT_SPELLCHECKER=$(usex spell)
161 +
162 + # COMPILE_SVG_SUPPORT not used in source code.
163 + -DWANT_QTSVG=no
164 + )
165 +
166 + cmake-utils_src_configure
167 +}
168 +
169 +pkg_postinst() {
170 + gnome2_icon_cache_update
171 + xdg_desktop_database_update
172 +}
173 +
174 +pkg_postrm() {
175 + gnome2_icon_cache_update
176 + xdg_desktop_database_update
177 +}