Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/moolticute/
Date: Tue, 29 Oct 2019 06:22:12
Message-Id: 1572329578.f3c6b535b6cec910847fad4f0029da39105057e0.juippis@gentoo
1 commit: f3c6b535b6cec910847fad4f0029da39105057e0
2 Author: Pierre-Olivier Mercier <nemunaire <AT> nemunai <DOT> re>
3 AuthorDate: Mon Oct 28 16:30:45 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 29 06:12:58 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3c6b535
7
8 app-crypt/moolticute: bump to 0.42.1
9
10 Signed-off-by: Pierre-Olivier Mercier <nemunaire <AT> nemunai.re>
11 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
12
13 app-crypt/moolticute/Manifest | 1 +
14 app-crypt/moolticute/moolticute-0.42.1.ebuild | 66 +++++++++++++++++++++++++++
15 2 files changed, 67 insertions(+)
16
17 diff --git a/app-crypt/moolticute/Manifest b/app-crypt/moolticute/Manifest
18 index 1c49058e47f..05277c44ae4 100644
19 --- a/app-crypt/moolticute/Manifest
20 +++ b/app-crypt/moolticute/Manifest
21 @@ -1,2 +1,3 @@
22 DIST moolticute-0.30.1.tar.gz 5562456 BLAKE2B 104f4bd10edf4147d205fec69ec48eddf31150f898242819be25b83fa5f8ddcd51fd016aa2331b9b94fc8c60062745f0d06e5f0b4a30222c1cc44d54eccd6521 SHA512 463b549fbcdbdff3da51a0b781e7ff2c4ca33ebd22ff355b24f13db3c77b3f3fe38d3d97ff260829517d5d93c43b7d746ff58e3fca3d838f7e32de7066c5288a
23 DIST moolticute-0.30.8.tar.gz 5587730 BLAKE2B a8ef141d7b8ed4d79a43652760626c4b608d7c92270a4d7f384bd240a5f90d6264d2714f3513acaa86f22135a1c885d6f713252ef69794e301a1b658aa1c47a3 SHA512 e5f848252d1deabfa8767284c2c34329a98f5849f8b2bdc62d454cc0e331d58fcd78e0845683931460c20be13d2f1baf3aee32a9f3244e769d5d4c222e182706
24 +DIST moolticute-0.42.1.tar.gz 5647992 BLAKE2B 0e99e16d7c09320ca5a97cc7ed16f348245efccf9c1e4755f7e6ccfb66c293b878e200ffe5148c203fae300d41e9b44d9489d8e067cd39b475215393a991d6d5 SHA512 a5a9ade4d09711030c299fcb7ba42eb351d711a351caeb663d765e394860a45179a3f3852db4f2315082e759762f7bf66c888cba90cb520169dc869ce60b8a68
25
26 diff --git a/app-crypt/moolticute/moolticute-0.42.1.ebuild b/app-crypt/moolticute/moolticute-0.42.1.ebuild
27 new file mode 100644
28 index 00000000000..08512b4847b
29 --- /dev/null
30 +++ b/app-crypt/moolticute/moolticute-0.42.1.ebuild
31 @@ -0,0 +1,66 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +if [[ ${PV} == 9999* ]]; then
38 + EGIT_REPO_URI="https://github.com/mooltipass/moolticute.git"
39 + inherit git-r3
40 +else
41 + SRC_URI="https://github.com/mooltipass/moolticute/archive/v${PV/_/-}.tar.gz -> ${P}.tar.gz"
42 + KEYWORDS="~amd64 ~arm"
43 +fi
44 +
45 +inherit xdg-utils qmake-utils udev
46 +
47 +DESCRIPTION="Mooltipass crossplatform daemon/tools"
48 +HOMEPAGE="https://github.com/mooltipass/moolticute"
49 +
50 +LICENSE="GPL-3"
51 +SLOT="0"
52 +IUSE=""
53 +
54 +RDEPEND="
55 + >=dev-libs/libusb-1.0.20
56 + dev-qt/qtdbus:5
57 + dev-qt/qtcore:5
58 + dev-qt/qtgui:5
59 + dev-qt/qtnetwork:5
60 + dev-qt/qttest:5
61 + dev-qt/qtwebsockets:5
62 + dev-qt/qtwidgets:5
63 +"
64 +BDEPEND="${RDEPEND}
65 + dev-qt/linguist-tools:5
66 +"
67 +
68 +S="${WORKDIR}/${P/_/-}"
69 +
70 +src_prepare() {
71 + default
72 +
73 + # Fill version.h with package version
74 + if [[ ${PV} != 9999* ]]; then
75 + sed -i "s/\"git\"/\"v${PV/_/-}\"/" src/version.h || die
76 + fi
77 +}
78 +
79 +src_configure() {
80 + eqmake5 PREFIX="/usr" Moolticute.pro
81 +}
82 +
83 +src_install() {
84 + emake install INSTALL_ROOT="${D}"
85 +
86 + udev_dorules "${FILESDIR}/50-mooltipass.rule"
87 + newinitd "${FILESDIR}/moolticuted.init" moolticuted
88 +}
89 +
90 +pkg_postinst() {
91 + udev_reload
92 + xdg_icon_cache_update
93 +}
94 +
95 +pkg_postrm() {
96 + xdg_icon_cache_update
97 +}