Gentoo Archives: gentoo-commits

From: Andrey Utkin <andrey_utkin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/spectrum2/
Date: Mon, 28 Jan 2019 19:32:05
Message-Id: 1548640207.dbf6d26091cc8c3ff2e5ef24b91810846e236518.andrey_utkin@gentoo
1 commit: dbf6d26091cc8c3ff2e5ef24b91810846e236518
2 Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com>
3 AuthorDate: Sun Jan 27 17:03:47 2019 +0000
4 Commit: Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 28 01:50:07 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbf6d260
7
8 net-im/spectrum2: bump to version 2.0.10
9
10 Also bumped to EAPI=7.
11
12 Package-Manager: Portage-2.3.56, Repoman-2.3.12
13 Signed-off-by: Conrad Kostecki <conrad <AT> kostecki.com>
14 Signed-off-by: Andrey Utkin <andrey_utkin <AT> gentoo.org>
15
16 net-im/spectrum2/Manifest | 1 +
17 net-im/spectrum2/spectrum2-2.0.10.ebuild | 122 +++++++++++++++++++++++++++++++
18 2 files changed, 123 insertions(+)
19
20 diff --git a/net-im/spectrum2/Manifest b/net-im/spectrum2/Manifest
21 index f17b8486402..d19142bc269 100644
22 --- a/net-im/spectrum2/Manifest
23 +++ b/net-im/spectrum2/Manifest
24 @@ -1 +1,2 @@
25 +DIST spectrum2-2.0.10.tar.gz 844427 BLAKE2B cb57bede4bfe996219ca5d0e62167643eb51fe44fd607400de8c2640f3892af9d089b6d62d7c25485049ef2a37066b3f6de46bfb5a6b7107fef6eb31dcf736f3 SHA512 b74f6f543aaa923a589b8b0b1007dec260af6fb66e5475c0294216713568dd93f4f52f39e6cbe4c6263efb0a479ac4d8095709d758e4faac81fc7d4712fd0b2c
26 DIST spectrum2-2.0.9.tar.gz 842688 BLAKE2B 32cdb95c161aa97338895fb144200ac94d200aefb58300a8f55b03457b3aae1a0ef4a60311f0e2be8e3f3e331625d04ecd61a9583d07794c4398762e1348b939 SHA512 f111133d3d327619ebbeeaa8c329b09dbdbef9c66ec7bc06eb6eac8c54e144cbf2d81d2751699bf97ae1d1bf0a94581f3971394a7f06b9a4d69f6248f1497982
27
28 diff --git a/net-im/spectrum2/spectrum2-2.0.10.ebuild b/net-im/spectrum2/spectrum2-2.0.10.ebuild
29 new file mode 100644
30 index 00000000000..285dd6d4982
31 --- /dev/null
32 +++ b/net-im/spectrum2/spectrum2-2.0.10.ebuild
33 @@ -0,0 +1,122 @@
34 +# Copyright 1999-2019 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +PYTHON_COMPAT=( python2_7 )
40 +
41 +inherit cmake-utils python-single-r1 systemd user
42 +
43 +DESCRIPTION="An open source instant messaging transport"
44 +HOMEPAGE="https://www.spectrum.im"
45 +SRC_URI="https://github.com/SpectrumIM/spectrum2/archive/${PV}.tar.gz -> ${P}.tar.gz"
46 +
47 +LICENSE="GPL-2+"
48 +SLOT="0"
49 +KEYWORDS="~amd64"
50 +IUSE="debug doc frotz irc mysql postgres purple sms +sqlite test twitter whatsapp xmpp"
51 +REQUIRED_USE="|| ( mysql postgres sqlite )"
52 +
53 +RDEPEND="
54 + dev-libs/boost:=
55 + dev-libs/expat
56 + dev-libs/libev:=
57 + dev-libs/log4cxx
58 + dev-libs/jsoncpp:=
59 + dev-libs/openssl:0=
60 + dev-libs/popt
61 + dev-libs/protobuf:=
62 + net-dns/libidn:0=
63 + net-im/swift:=
64 + net-misc/curl
65 + sys-libs/zlib:=
66 + frotz? ( !games-engines/frotz )
67 + irc? ( net-im/libcommuni )
68 + mysql? (
69 + || (
70 + dev-db/mariadb-connector-c
71 + dev-db/mysql-connector-c
72 + )
73 + )
74 + postgres? ( dev-libs/libpqxx:= )
75 + purple? (
76 + dev-libs/glib
77 + net-im/pidgin:=
78 + )
79 + sms? ( app-mobilephone/smstools )
80 + sqlite? ( dev-db/sqlite:3 )
81 + twitter? ( net-misc/curl )
82 + whatsapp? ( net-im/transwhat )"
83 +
84 +DEPEND="
85 + ${PYTHON_DEPS}
86 + ${RDEPEND}
87 + doc? ( app-doc/doxygen )
88 + test? (
89 + dev-python/sleekxmpp[${PYTHON_USEDEP}]
90 + dev-util/cppunit
91 + net-irc/ngircd
92 + )
93 +"
94 +
95 +PATCHES=( "${FILESDIR}/${PN}-2.0.9-remove_debug_cflags.patch" )
96 +
97 +# Tests are currently restricted, as they do completly fail
98 +RESTRICT="test"
99 +
100 +pkg_setup() {
101 + enewgroup spectrum
102 + enewuser spectrum -1 -1 /var/lib/spectrum2 spectrum
103 +
104 + use test && python-single-r1_pkg_setup
105 +}
106 +
107 +src_prepare() {
108 + # Respect users LDFLAGS
109 + sed -i -e "s/-Wl,-export-dynamic/& ${LDFLAGS}/" spectrum/src/CMakeLists.txt || die
110 +
111 + # Respect users CFLAGS, when compiling for debug mode
112 + # Since Spectrum2 searches for a qt4 compiled libcommuni,
113 + # it must be patched, to find the qt5 compiled libcommuni,
114 + # See: https://github.com/SpectrumIM/spectrum2/pull/253
115 + cmake-utils_src_prepare
116 +}
117 +
118 +src_configure() {
119 + use debug && CMAKE_BUILD_TYPE="Debug"
120 +
121 + local mycmakeargs=(
122 + -DENABLE_DOCS="$(usex doc)"
123 + -DENABLE_FROTZ="$(usex frotz)"
124 + -DENABLE_IRC="$(usex irc)"
125 + -DENABLE_MYSQL="$(usex mysql)"
126 + -DENABLE_PQXX="$(usex postgres)"
127 + -DENABLE_PURPLE="$(usex purple)"
128 + -DENABLE_SMSTOOLS3="$(usex sms)"
129 + -DENABLE_SQLITE3="$(usex sqlite)"
130 + -DENABLE_TESTS="$(usex test)"
131 + -DENABLE_TWITTER="$(usex twitter)"
132 + -DENABLE_XMPP="$(usex xmpp)"
133 + -DLIB_INSTALL_DIR="$(get_libdir)"
134 + )
135 +
136 + cmake-utils_src_configure
137 +}
138 +
139 +src_test() {
140 + cd tests/libtransport && "${EPYTHON}" ../start.py || die
141 +}
142 +
143 +src_install() {
144 + cmake-utils_src_install
145 +
146 + diropts -o spectrum -g spectrum
147 + keepdir /var/log/spectrum2 /var/lib/spectrum2
148 + diropts
149 +
150 + newinitd "${FILESDIR}"/spectrum2.initd spectrum2
151 + systemd_newunit "${FILESDIR}"/spectrum2.service spectrum2.service
152 + systemd_newtmpfilesd "${FILESDIR}"/spectrum2.tmpfiles spectrum2.conf
153 +
154 + einstalldocs
155 +}