1 |
commit: aad176a473e4f8fa39940ccabb2daae0f2deafda |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 15 20:35:43 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 19 23:51:30 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aad176a4 |
7 |
|
8 |
net-im/libcommuni: Prepare for dev-qt/qtgui[xcb -> X] |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
.../libcommuni-3.5.0_p20190110-r1.ebuild | 88 ++++++++++++++++++++++ |
14 |
1 file changed, 88 insertions(+) |
15 |
|
16 |
diff --git a/net-im/libcommuni/libcommuni-3.5.0_p20190110-r1.ebuild b/net-im/libcommuni/libcommuni-3.5.0_p20190110-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..0e061171fd0 |
19 |
--- /dev/null |
20 |
+++ b/net-im/libcommuni/libcommuni-3.5.0_p20190110-r1.ebuild |
21 |
@@ -0,0 +1,88 @@ |
22 |
+# Copyright 1999-2020 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+EGIT_COMMIT="88bb0fcdaab5bdd1176a3b6b485a6415a137ec27" |
28 |
+ |
29 |
+inherit qmake-utils |
30 |
+ |
31 |
+DESCRIPTION="A cross-platform IRC framework written with Qt" |
32 |
+HOMEPAGE="https://communi.github.io/" |
33 |
+SRC_URI="https://github.com/communi/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="BSD" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="amd64 x86" |
38 |
+IUSE="examples qml test +uchardet" |
39 |
+RESTRICT="!test? ( test )" |
40 |
+ |
41 |
+RDEPEND=" |
42 |
+ dev-qt/qtcore:5 |
43 |
+ dev-qt/qtdeclarative:5 |
44 |
+ examples? ( || ( |
45 |
+ dev-qt/qtgui:5[X(-)] |
46 |
+ dev-qt/qtgui:5[xcb(-)] |
47 |
+ ) ) |
48 |
+ uchardet? ( app-i18n/uchardet ) |
49 |
+ !uchardet? ( dev-libs/icu:= ) |
50 |
+" |
51 |
+ |
52 |
+DEPEND=" |
53 |
+ ${RDEPEND} |
54 |
+ test? ( dev-qt/qttest:5 ) |
55 |
+" |
56 |
+ |
57 |
+S="${WORKDIR}/${PN}-${EGIT_COMMIT}" |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ default |
61 |
+ |
62 |
+ # Currently the test tst_IrcLagTimer fails, so disabling |
63 |
+ # See: https://github.com/communi/libcommuni/issues/63 |
64 |
+ sed -e '/irclagtimer/d' -i tests/auto/auto.pro || die |
65 |
+} |
66 |
+ |
67 |
+src_configure() { |
68 |
+ local myqmakeargs=( libcommuni.pro |
69 |
+ # Disables compile run-time benchmarks, as they don't make any sense |
70 |
+ -config no_benchmarks |
71 |
+ # Is needed for fixing the QA Notice: The following files contain insecure RUNPATHs |
72 |
+ -config no_rpath |
73 |
+ # Compile libcommuni always in Release mode, as Debug seems to do nothing |
74 |
+ -config release |
75 |
+ # Don't silence all compile messages |
76 |
+ -config verbose |
77 |
+ -config $(usex examples '' 'no_')examples |
78 |
+ -config $(usex qml '' 'no_')install_imports |
79 |
+ -config $(usex qml '' 'no_')install_qml |
80 |
+ -config $(usex test '' 'no_')tests |
81 |
+ -config $(usex uchardet 'no_' '')icu |
82 |
+ -config $(usex uchardet '' 'no_')uchardet ) |
83 |
+ |
84 |
+ eqmake5 "${myqmakeargs[@]}" |
85 |
+} |
86 |
+ |
87 |
+src_test() { |
88 |
+ # This is a hack to delete the existing LD_LIBRARY_PATH and set a new one, |
89 |
+ # otherwise a test will fail, because it uses the system installed lib instead of the new compiled lib. |
90 |
+ # The test will fail, when libcommuni is emerged with USE="uchardet" and |
91 |
+ # libcommuni is already installed with USE="-uchardat", or the other way around. |
92 |
+ find "${S}" -type f -name 'target_wrapper.sh' -exec sed -i -e "/.*LD_LIBRARY_PATH.*/d" {} \; || die |
93 |
+ local -x LD_LIBRARY_PATH="${S}/lib" |
94 |
+ |
95 |
+ default |
96 |
+} |
97 |
+ |
98 |
+src_install() { |
99 |
+ emake install INSTALL_ROOT="${D}" |
100 |
+ |
101 |
+ if use examples; then |
102 |
+ local examples=( "bot" "client" "minimal" "qmlbot" "quick" ) |
103 |
+ for example in ${examples[@]}; do |
104 |
+ newbin examples/"${example}"/"${example}" libcommuni."${example}" |
105 |
+ done |
106 |
+ fi |
107 |
+ |
108 |
+ einstalldocs |
109 |
+} |