1 |
commit: 9ac7564f1d45119ce95ceee33a04d946ff45a08d |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 6 20:58:59 2017 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 6 20:59:30 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ac7564f |
7 |
|
8 |
net-im/openmittsu: Install icon and desktop file. |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
...2_p75.ebuild => openmittsu-0.9.2_p75-r1.ebuild} | 22 ++++++++++++++-------- |
13 |
1 file changed, 14 insertions(+), 8 deletions(-) |
14 |
|
15 |
diff --git a/net-im/openmittsu/openmittsu-0.9.2_p75.ebuild b/net-im/openmittsu/openmittsu-0.9.2_p75-r1.ebuild |
16 |
similarity index 74% |
17 |
rename from net-im/openmittsu/openmittsu-0.9.2_p75.ebuild |
18 |
rename to net-im/openmittsu/openmittsu-0.9.2_p75-r1.ebuild |
19 |
index f7ee98d..da92298 100644 |
20 |
--- a/net-im/openmittsu/openmittsu-0.9.2_p75.ebuild |
21 |
+++ b/net-im/openmittsu/openmittsu-0.9.2_p75-r1.ebuild |
22 |
@@ -4,13 +4,13 @@ |
23 |
|
24 |
EAPI=6 |
25 |
|
26 |
-inherit cmake-utils |
27 |
+inherit cmake-utils eutils |
28 |
|
29 |
-MY_P="openMittsu-${PV}" |
30 |
+MY_PN="openMittsu" |
31 |
DESCRIPTION="An open source chat client for Threema-style end-to-end encrypted chat networks" |
32 |
HOMEPAGE="https://github.com/blizzard4591/openMittsu" |
33 |
-# git-archive-all.sh snapshot of https://github.com/blizzard4591/openMittsu.git |
34 |
-SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${MY_P}.tar.xz" |
35 |
+# git-archive-all.sh snapshot of https://github.com/blizzard4591/${MY_PN}.git |
36 |
+SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${MY_PN}-${PV}.tar.xz" |
37 |
|
38 |
LICENSE="GPL-2+ BitstreamVera OFL-1.1 Apache-2.0 CC0-1.0 MIT" |
39 |
SLOT="0" |
40 |
@@ -25,12 +25,12 @@ DEPEND=">=dev-libs/libsodium-1.0.11:= |
41 |
>=media-gfx/qrencode-3.4.4-r1" |
42 |
RDEPEND="${DEPEND}" |
43 |
|
44 |
-S="${WORKDIR}/${MY_P}" |
45 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
46 |
|
47 |
DOCS=( |
48 |
- "README.md" |
49 |
- "Example-client-configuration-file.ini" |
50 |
- "Example-contacts-file.txt" |
51 |
+ README.md |
52 |
+ Example-client-configuration-file.ini |
53 |
+ Example-contacts-file.txt |
54 |
) |
55 |
|
56 |
src_prepare() { |
57 |
@@ -47,3 +47,9 @@ src_configure() { |
58 |
local mycmakeargs=("-DOPENMITTSU_DISABLE_VERSION_UPDATE_CHECK=ON") |
59 |
cmake-utils_src_configure |
60 |
} |
61 |
+ |
62 |
+src_install() { |
63 |
+ cmake-utils_src_install |
64 |
+ newicon resources/icon.png ${MY_PN}.png |
65 |
+ make_desktop_entry ${MY_PN} ${MY_PN} ${MY_PN} |
66 |
+} |