1 |
commit: 56450f4e204e7ee194a72dcc78c58d8d8352f21d |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 6 02:15:56 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 6 02:15:56 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56450f4e |
7 |
|
8 |
net-im/licq: Fixced RDEPEND (bug #608008). EAPI-6 bump. |
9 |
|
10 |
Ebuild overhaul and cleanup. |
11 |
|
12 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
13 |
|
14 |
net-im/licq/licq-1.8.2.ebuild | 72 ++++++++++++++++++++++++++----------------- |
15 |
1 file changed, 44 insertions(+), 28 deletions(-) |
16 |
|
17 |
diff --git a/net-im/licq/licq-1.8.2.ebuild b/net-im/licq/licq-1.8.2.ebuild |
18 |
index 88a4311..b1aeafd 100644 |
19 |
--- a/net-im/licq/licq-1.8.2.ebuild |
20 |
+++ b/net-im/licq/licq-1.8.2.ebuild |
21 |
@@ -1,8 +1,8 @@ |
22 |
-# Copyright 1999-2016 Gentoo Foundation |
23 |
+# Copyright 1999-2017 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
# $Id$ |
26 |
|
27 |
-EAPI=5 |
28 |
+EAPI=6 |
29 |
|
30 |
inherit cmake-utils eutils flag-o-matic |
31 |
|
32 |
@@ -13,34 +13,49 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" |
33 |
LICENSE="GPL-2" |
34 |
SLOT="2" |
35 |
KEYWORDS="alpha amd64 ia64 ppc sparc x86" |
36 |
-IUSE="debug doc linguas_he nls socks5 ssl xosd aosd xmpp qt4 msn" |
37 |
+IUSE="debug doc l10n_he nls socks5 ssl xosd aosd xmpp qt4 msn" |
38 |
|
39 |
-RDEPEND=">=app-crypt/gpgme-1 |
40 |
+RDEPEND=" |
41 |
+ >=app-crypt/gpgme-1 |
42 |
+ app-text/hunspell |
43 |
dev-libs/boost:= |
44 |
+ x11-libs/libXScrnSaver |
45 |
xmpp? ( net-libs/gloox ) |
46 |
qt4? ( dev-qt/qtgui:4 ) |
47 |
socks5? ( net-proxy/dante ) |
48 |
ssl? ( >=dev-libs/openssl-0.9.5a:0= ) |
49 |
xosd? ( x11-libs/xosd ) |
50 |
- aosd? ( x11-libs/libaosd )" |
51 |
-DEPEND="${RDEPEND} |
52 |
+ aosd? ( x11-libs/libaosd ) |
53 |
+" |
54 |
+DEPEND=" |
55 |
+ ${RDEPEND} |
56 |
doc? ( app-doc/doxygen[dot] ) |
57 |
- nls? ( sys-devel/gettext )" |
58 |
+ nls? ( sys-devel/gettext ) |
59 |
+" |
60 |
|
61 |
src_prepare() { |
62 |
- local licq_plugins="auto-reply icq rms" |
63 |
- use msn && licq_plugins+=" msn" |
64 |
- use xosd && licq_plugins+=" osd" |
65 |
- use aosd && licq_plugins+=" aosd" |
66 |
- use xmpp && licq_plugins+=" jabber" |
67 |
- use qt4 && licq_plugins+=" qt4-gui" |
68 |
- |
69 |
- local plugins="" x |
70 |
- for x in ${licq_plugins}; do |
71 |
- plugins+=" ${x}\/CMakeLists.txt" |
72 |
+ default |
73 |
+ |
74 |
+ local licq_plugins=( |
75 |
+ auto-reply |
76 |
+ icq |
77 |
+ rms |
78 |
+ $(usex aosd aosd '') |
79 |
+ $(usex msn msn '') |
80 |
+ $(usex qt4 qt4-gui '') |
81 |
+ $(usex xmpp jabber '') |
82 |
+ $(usex xosd osd '') |
83 |
+ ) |
84 |
+ |
85 |
+ local plugins=() x |
86 |
+ for x in ${licq_plugins[@]} ; do |
87 |
+ plugins+=( ${x}/CMakeLists.txt ) |
88 |
done |
89 |
|
90 |
- sed -i -e "s/file(GLOB cmake_plugins.*$/set(cmake_plugins ${plugins})/" plugins/CMakeLists.txt |
91 |
+ # somehow sed doesn't like an array variable |
92 |
+ x="${plugins[@]}" |
93 |
+ sed -e "s|file(GLOB cmake_plugins.*$|set(cmake_plugins ${x})|" \ |
94 |
+ -i plugins/CMakeLists.txt || die |
95 |
} |
96 |
|
97 |
pkg_setup() { |
98 |
@@ -49,23 +64,24 @@ pkg_setup() { |
99 |
} |
100 |
|
101 |
src_configure() { |
102 |
- local myopts="-DCMAKE_BUILD_TYPE=$(use debug && echo 'Debug' || echo 'Release')" |
103 |
- mycmakeargs="$myopts |
104 |
- $(cmake-utils_use doc USE_DOXYGEN) |
105 |
- $(cmake-utils_use linguas_he USE_HEBREW) |
106 |
- $(cmake-utils_use nls ENABLE_NLS) |
107 |
- $(cmake-utils_use socks5 USE_SOCKS5) |
108 |
- $(cmake-utils_use ssl USE_OPENSSL) |
109 |
- -DUSE_FIFO=ON |
110 |
+ mycmakeargs=( |
111 |
-DBUILD_PLUGINS=ON |
112 |
- -DBUILD_TESTS=OFF" |
113 |
+ -DBUILD_TESTS=OFF |
114 |
+ -DCMAKE_BUILD_TYPE="$(usex debug 'Debug' 'Release')" |
115 |
+ -DENABLE_NLS="$(usex nls)" |
116 |
+ -DUSE_DOXYGEN="$(usex doc)" |
117 |
+ -DUSE_FIFO=ON |
118 |
+ -DUSE_HEBREW="$(usex l10n_he)" |
119 |
+ -DUSE_OPENSSL="$(usex ssl)" |
120 |
+ -DUSE_SOCKS5="$(usex socks5)" |
121 |
+ ) |
122 |
|
123 |
cmake-utils_src_configure |
124 |
} |
125 |
|
126 |
src_install() { |
127 |
+ local DOCS=( README ) |
128 |
cmake-utils_src_install |
129 |
- dodoc README |
130 |
|
131 |
docinto doc |
132 |
dodoc doc/* |