Gentoo Archives: gentoo-commits

From: Tony Vroon <chainsaw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/ricochet/
Date: Wed, 11 Jul 2018 08:41:04
Message-Id: 1531298450.4c4794c151d6fcc3b6f3644666cb6d09dacab33d.chainsaw@gentoo
1 commit: 4c4794c151d6fcc3b6f3644666cb6d09dacab33d
2 Author: Lucian Poston <lucianposton <AT> pm <DOT> me>
3 AuthorDate: Sat Jul 7 15:41:22 2018 +0000
4 Commit: Tony Vroon <chainsaw <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 11 08:40:50 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c4794c1
7
8 net-im/ricochet: new package
9
10 Closes: https://bugs.gentoo.org/660604
11
12 Package-Manager: Portage-2.3.40, Repoman-2.3.9
13 Closes: https://github.com/gentoo/gentoo/pull/9088
14 Closes: https://bugs.gentoo.org/660604
15
16 net-im/ricochet/Manifest | 1 +
17 net-im/ricochet/metadata.xml | 12 +++++++
18 net-im/ricochet/ricochet-1.1.4.ebuild | 56 ++++++++++++++++++++++++++++++
19 net-im/ricochet/ricochet-9999.ebuild | 64 +++++++++++++++++++++++++++++++++++
20 4 files changed, 133 insertions(+)
21
22 diff --git a/net-im/ricochet/Manifest b/net-im/ricochet/Manifest
23 new file mode 100644
24 index 00000000000..5b365781363
25 --- /dev/null
26 +++ b/net-im/ricochet/Manifest
27 @@ -0,0 +1 @@
28 +DIST ricochet-1.1.4.tar.gz 1292671 BLAKE2B 15a71496b01992060fbdbedb0c73365aa250d9e6c4b5bb6223cbcd727a1cf062b1b9cd094d17ae33471e6095a071b1ea6d553a1bb2168974d45486995e204e9b SHA512 9f20fe8e34ea1d8d5b252eee1e164f0a97bf5b3818e864270ea79c0f018b229ec04b1b27acf44415bb646d48b9d1a0ada455a4f77fafdb6e4d21e62292b778a1
29
30 diff --git a/net-im/ricochet/metadata.xml b/net-im/ricochet/metadata.xml
31 new file mode 100644
32 index 00000000000..6bf484adc0d
33 --- /dev/null
34 +++ b/net-im/ricochet/metadata.xml
35 @@ -0,0 +1,12 @@
36 +<?xml version="1.0" encoding="UTF-8"?>
37 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
38 +<pkgmetadata>
39 + <maintainer type="person">
40 + <email>lucianposton@××.me</email>
41 + <name>Lucian Poston</name>
42 + </maintainer>
43 + <maintainer type="project">
44 + <email>proxy-maint@g.o</email>
45 + <name>Proxy Maintainers</name>
46 + </maintainer>
47 +</pkgmetadata>
48
49 diff --git a/net-im/ricochet/ricochet-1.1.4.ebuild b/net-im/ricochet/ricochet-1.1.4.ebuild
50 new file mode 100644
51 index 00000000000..b26be1ac4f2
52 --- /dev/null
53 +++ b/net-im/ricochet/ricochet-1.1.4.ebuild
54 @@ -0,0 +1,56 @@
55 +# Copyright 1999-2018 Gentoo Foundation
56 +# Distributed under the terms of the GNU General Public License v2
57 +
58 +EAPI=6
59 +
60 +inherit gnome2-utils qmake-utils
61 +
62 +if [[ ${PV} == "9999" ]]; then
63 + inherit git-r3
64 + EGIT_REPO_URI="https://github.com/ricochet-im/ricochet"
65 +else
66 + SRC_URI="https://github.com/ricochet-im/ricochet/archive/v${PV}.tar.gz -> ${P}.tar.gz"
67 + KEYWORDS="~amd64 ~x86"
68 +fi
69 +
70 +DESCRIPTION="Privacy-focused instant messaging through Tor hidden services"
71 +HOMEPAGE="https://ricochet.im"
72 +
73 +LICENSE="BSD"
74 +SLOT="0"
75 +IUSE="debug hardened"
76 +
77 +RDEPEND="
78 + dev-libs/openssl:0=
79 + dev-libs/protobuf:0=
80 + dev-qt/qtcore:5
81 + dev-qt/qtdeclarative:5
82 + dev-qt/qtgui:5
83 + dev-qt/qtmultimedia:5
84 + dev-qt/qtnetwork:5
85 + dev-qt/qtquickcontrols:5
86 + dev-qt/qtwidgets:5
87 + net-vpn/tor"
88 +DEPEND="${RDEPEND}
89 + dev-qt/linguist-tools:5
90 + virtual/pkgconfig"
91 +
92 +src_configure() {
93 + local qmakeargs=( 'DEFINES+=RICOCHET_NO_PORTABLE' )
94 + qmakeargs+=( $(usex debug 'CONFIG+=debug' 'CONFIG+=release') )
95 + qmakeargs+=( $(usex hardened 'CONFIG+=hardened' 'CONFIG+=no-hardened') )
96 +
97 + eqmake5 "${qmakeargs[@]}"
98 +}
99 +
100 +src_install() {
101 + emake INSTALL_ROOT="${D}" install
102 +}
103 +
104 +pkg_postinst() {
105 + gnome2_icon_cache_update
106 +}
107 +
108 +pkg_postrm() {
109 + gnome2_icon_cache_update
110 +}
111
112 diff --git a/net-im/ricochet/ricochet-9999.ebuild b/net-im/ricochet/ricochet-9999.ebuild
113 new file mode 100644
114 index 00000000000..b770332effd
115 --- /dev/null
116 +++ b/net-im/ricochet/ricochet-9999.ebuild
117 @@ -0,0 +1,64 @@
118 +# Copyright 1999-2018 Gentoo Foundation
119 +# Distributed under the terms of the GNU General Public License v2
120 +
121 +EAPI=6
122 +
123 +inherit gnome2-utils qmake-utils
124 +
125 +if [[ ${PV} == "9999" ]]; then
126 + inherit git-r3
127 + EGIT_REPO_URI="https://github.com/ricochet-im/ricochet"
128 +else
129 + SRC_URI="https://github.com/ricochet-im/ricochet/archive/v${PV}.tar.gz -> ${P}.tar.gz"
130 + KEYWORDS="~amd64 ~x86"
131 +fi
132 +
133 +DESCRIPTION="Privacy-focused instant messaging through Tor hidden services"
134 +HOMEPAGE="https://ricochet.im"
135 +
136 +LICENSE="BSD"
137 +SLOT="0"
138 +IUSE="debug hardened"
139 +
140 +RDEPEND="
141 + dev-libs/openssl:0=
142 + dev-libs/protobuf:0=
143 + dev-qt/qtcore:5
144 + dev-qt/qtdeclarative:5
145 + dev-qt/qtgui:5
146 + dev-qt/qtmultimedia:5
147 + dev-qt/qtnetwork:5
148 + dev-qt/qtquickcontrols:5
149 + dev-qt/qtwidgets:5
150 + net-vpn/tor"
151 +DEPEND="${RDEPEND}
152 + dev-qt/linguist-tools:5
153 + virtual/pkgconfig"
154 +
155 +src_prepare() {
156 + eapply_user
157 +
158 + # workaround bug https://github.com/ricochet-im/ricochet/issues/582
159 + cp contrib/usr.bin.ricochet-apparmor contrib/usr.bin.ricochet
160 +}
161 +
162 +src_configure() {
163 + local qmakeargs=( 'DEFINES+=RICOCHET_NO_PORTABLE' )
164 + qmakeargs+=( 'DEFINES+=APPARMOR' )
165 + qmakeargs+=( $(usex debug 'CONFIG+=debug' 'CONFIG+=release') )
166 + qmakeargs+=( $(usex hardened 'CONFIG+=hardened' 'CONFIG+=no-hardened') )
167 +
168 + eqmake5 "${qmakeargs[@]}"
169 +}
170 +
171 +src_install() {
172 + emake INSTALL_ROOT="${D}" install
173 +}
174 +
175 +pkg_postinst() {
176 + gnome2_icon_cache_update
177 +}
178 +
179 +pkg_postrm() {
180 + gnome2_icon_cache_update
181 +}