Gentoo Archives: gentoo-commits

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