Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-irc/kvirc: kvirc-4.0_pre3921.ebuild ChangeLog
Date: Sun, 31 Jan 2010 19:18:48
Message-Id: E1NbfJl-0005Xj-1V@stork.gentoo.org
1 arfrever 10/01/31 19:18:45
2
3 Modified: ChangeLog
4 Added: kvirc-4.0_pre3921.ebuild
5 Log:
6 Version bump.
7 (Portage version: 15303-svn/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.98 net-irc/kvirc/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/kvirc/ChangeLog?rev=1.98&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/kvirc/ChangeLog?rev=1.98&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/kvirc/ChangeLog?r1=1.97&r2=1.98
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-irc/kvirc/ChangeLog,v
19 retrieving revision 1.97
20 retrieving revision 1.98
21 diff -u -r1.97 -r1.98
22 --- ChangeLog 11 Jan 2010 10:37:42 -0000 1.97
23 +++ ChangeLog 31 Jan 2010 19:18:44 -0000 1.98
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-irc/kvirc
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-irc/kvirc/ChangeLog,v 1.97 2010/01/11 10:37:42 arfrever Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-irc/kvirc/ChangeLog,v 1.98 2010/01/31 19:18:44 arfrever Exp $
29 +
30 +*kvirc-4.0_pre3921 (31 Jan 2010)
31 +
32 + 31 Jan 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
33 + +kvirc-4.0_pre3921.ebuild:
34 + Version bump.
35
36 *kvirc-4.0_pre3831 (11 Jan 2010)
37
38
39
40
41 1.1 net-irc/kvirc/kvirc-4.0_pre3921.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/kvirc/kvirc-4.0_pre3921.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/kvirc/kvirc-4.0_pre3921.ebuild?rev=1.1&content-type=text/plain
45
46 Index: kvirc-4.0_pre3921.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-irc/kvirc/kvirc-4.0_pre3921.ebuild,v 1.1 2010/01/31 19:18:44 arfrever Exp $
51
52 EAPI="2"
53
54 inherit cmake-utils multilib python
55
56 DESCRIPTION="Advanced IRC Client"
57 HOMEPAGE="http://www.kvirc.net/"
58 SRC_URI="mirror://gentoo/${P}.tar.bz2"
59
60 LICENSE="kvirc"
61 SLOT="4"
62 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86"
63 IUSE="audiofile +crypt dcc_video +dcc_voice debug doc gsm +ipc ipv6 kde +nls oss +perl +phonon profile +python +qt-dbus qt-webkit +ssl theora +transparency"
64
65 RDEPEND="
66 >=dev-libs/crypto++-5.6.0-r1
67 sys-libs/zlib
68 x11-libs/libX11
69 >=x11-libs/qt-core-4.5
70 >=x11-libs/qt-gui-4.5
71 >=x11-libs/qt-sql-4.5
72 dcc_video? (
73 media-libs/libv4l
74 theora? ( media-libs/libogg media-libs/libtheora )
75 )
76 kde? ( >=kde-base/kdelibs-4 )
77 oss? ( audiofile? ( media-libs/audiofile ) )
78 perl? ( dev-lang/perl )
79 phonon? ( || ( media-sound/phonon >=x11-libs/qt-phonon-4.5 ) )
80 python? ( dev-lang/python )
81 qt-dbus? ( >=x11-libs/qt-dbus-4.5 )
82 qt-webkit? ( >=x11-libs/qt-webkit-4.5 )
83 ssl? ( dev-libs/openssl )"
84 DEPEND="${RDEPEND}
85 >=dev-util/cmake-2.6.4
86 dev-util/pkgconfig
87 x11-proto/scrnsaverproto
88 nls? ( sys-devel/gettext )
89 doc? ( app-doc/doxygen )"
90 RDEPEND="${RDEPEND}
91 gsm? ( media-sound/gsm )"
92
93 DOCS="ChangeLog TODO"
94
95 pkg_setup() {
96 if use audiofile && ! use oss; then
97 die "USE=\"audiofile\" requires USE=\"oss\""
98 fi
99
100 if use theora && ! use dcc_video; then
101 die "USE=\"theora\" requires USE=\"dcc_video\""
102 fi
103
104 if use python; then
105 python_set_active_version 2
106 fi
107 }
108
109 src_prepare() {
110 VERSIO_PRAESENS="${PV#*_pre}"
111 elog "Setting revision number to ${VERSIO_PRAESENS}"
112 sed -e "/#define KVI_DEFAULT_FRAME_CAPTION/s/KVI_VERSION/& \" r${VERSIO_PRAESENS}\"/" -i src/kvirc/ui/kvi_frame.cpp || die "Failed to set revision number"
113 }
114
115 src_configure() {
116 local libdir="$(get_libdir)"
117 local mycmakeargs="
118 -DCMAKE_INSTALL_PREFIX=/usr
119 -DCOEXISTENCE=1
120 -DLIB_SUFFIX=${libdir#lib}
121 -DMANUAL_REVISION=${VERSIO_PRAESENS}
122 -DUSE_ENV_FLAGS=1
123 -DVERBOSE=1
124 -DWANT_NO_EMBEDDED_CODE=1
125 $(cmake-utils_use_want audiofile AUDIOFILE)
126 $(cmake-utils_use_want crypt CRYPT)
127 $(cmake-utils_use_want dcc_video DCC_VIDEO)
128 $(cmake-utils_use_want dcc_voice DCC_VOICE)
129 $(cmake-utils_use_want debug DEBUG)
130 $(cmake-utils_use_want doc DOXYGEN)
131 $(cmake-utils_use_want gsm GSM)
132 $(cmake-utils_use_want ipc IPC)
133 $(cmake-utils_use_want ipv6 IPV6)
134 $(cmake-utils_use_want kde KDE4)
135 $(cmake-utils_use_want nls GETTEXT)
136 $(cmake-utils_use_want oss OSS)
137 $(cmake-utils_use_want perl PERL)
138 $(cmake-utils_use_want phonon PHONON)
139 $(cmake-utils_use_want profile MEMORY_PROFILE)
140 $(cmake-utils_use_want python PYTHON)
141 $(cmake-utils_use_want qt-dbus QTDBUS)
142 $(cmake-utils_use_want qt-webkit QTWEBKIT)
143 $(cmake-utils_use_want ssl OPENSSL)
144 $(cmake-utils_use_want theora OGG_THEORA)
145 $(cmake-utils_use_want transparency TRANSPARENCY)"
146
147 cmake-utils_src_configure
148 }
149
150 pkg_preinst() {
151 if has_version "=${CATEGORY}/${PN}-4.0_pre3412"; then
152 log_location_change="1"
153 fi
154 }
155
156 pkg_postinst() {
157 if [[ "${log_location_change}" == "1" ]]; then
158 elog "Default location of logs has changed back from ~/log to ~/.config/KVIrc/log."
159 elog "You might want to run the following command to restore default location:"
160 elog " sed -e \"/^stringLogsPath=/d\" -i ~/.config/KVIrc/config/main.kvc"
161 elog "You can also set location of logs in KVIrc configuration."
162 ebeep 12
163 fi
164 }