1 |
commit: 7caf5ff3b18c10249533784103f07f5500fa24bd |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 29 17:37:27 2017 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 29 17:38:50 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7caf5ff3 |
7 |
|
8 |
net-im/openmittsu: Initial import. |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
net-im/openmittsu/Manifest | 1 + |
13 |
.../files/openmittsu-0.9.2_p75-libsodium-so.patch | 11 ++++++ |
14 |
net-im/openmittsu/metadata.xml | 7 ++++ |
15 |
net-im/openmittsu/openmittsu-0.9.2_p75.ebuild | 43 ++++++++++++++++++++++ |
16 |
4 files changed, 62 insertions(+) |
17 |
|
18 |
diff --git a/net-im/openmittsu/Manifest b/net-im/openmittsu/Manifest |
19 |
new file mode 100644 |
20 |
index 00000000..d70441f |
21 |
--- /dev/null |
22 |
+++ b/net-im/openmittsu/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST openMittsu-0.9.2_p75.tar.xz 1304788 SHA256 60366c341f6d2d638699649dfcaef97a734f2c367987d3849986321a515e24a3 SHA512 d5ec9c942e771d51e86895c422e13893421d4a3b0adae9a9dac195f55c40064af2549bc41181b2abb2fe8b8dc0ffdf3c4c40b052e36f0eaf31fc98830b81c5f4 WHIRLPOOL e8c0909e0a46009ef892930957bc1fb6763fbcd0c662f2b2c706482781161eeb3a5c26ee584c1d3a8f5bd1415d84f307bd0b1f707da4f787b4cf7e2e5ad160c6 |
25 |
|
26 |
diff --git a/net-im/openmittsu/files/openmittsu-0.9.2_p75-libsodium-so.patch b/net-im/openmittsu/files/openmittsu-0.9.2_p75-libsodium-so.patch |
27 |
new file mode 100644 |
28 |
index 00000000..3984b50 |
29 |
--- /dev/null |
30 |
+++ b/net-im/openmittsu/files/openmittsu-0.9.2_p75-libsodium-so.patch |
31 |
@@ -0,0 +1,11 @@ |
32 |
+--- openMittsu-orig/cmake/FindLibsodium.cmake |
33 |
++++ openMittsu/cmake/FindLibsodium.cmake |
34 |
+@@ -31,7 +31,7 @@ |
35 |
+ ENDIF(MINGW) |
36 |
+ ELSE (UNIX) |
37 |
+ SET (LIB_PREFIX "lib") |
38 |
+- SET (LIB_POSTFIX "a") |
39 |
++ SET (LIB_POSTFIX "so") |
40 |
+ ENDIF (WIN32) |
41 |
+ |
42 |
+ find_path(SODIUM_INCLUDE_DIR |
43 |
|
44 |
diff --git a/net-im/openmittsu/metadata.xml b/net-im/openmittsu/metadata.xml |
45 |
new file mode 100644 |
46 |
index 00000000..c665e48 |
47 |
--- /dev/null |
48 |
+++ b/net-im/openmittsu/metadata.xml |
49 |
@@ -0,0 +1,7 @@ |
50 |
+<?xml version="1.0" encoding="UTF-8"?> |
51 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
52 |
+<pkgmetadata> |
53 |
+<maintainer type="person"> |
54 |
+ <email>ulm@g.o</email> |
55 |
+</maintainer> |
56 |
+</pkgmetadata> |
57 |
|
58 |
diff --git a/net-im/openmittsu/openmittsu-0.9.2_p75.ebuild b/net-im/openmittsu/openmittsu-0.9.2_p75.ebuild |
59 |
new file mode 100644 |
60 |
index 00000000..166cb7c |
61 |
--- /dev/null |
62 |
+++ b/net-im/openmittsu/openmittsu-0.9.2_p75.ebuild |
63 |
@@ -0,0 +1,43 @@ |
64 |
+# Copyright 1999-2017 Gentoo Foundation |
65 |
+# Distributed under the terms of the GNU General Public License v2 |
66 |
+# $Id$ |
67 |
+ |
68 |
+EAPI=6 |
69 |
+ |
70 |
+inherit cmake-utils |
71 |
+ |
72 |
+MY_P="openMittsu-${PV}" |
73 |
+DESCRIPTION="An open source chat client for Threema-style end-to-end encrypted chat networks" |
74 |
+HOMEPAGE="https://github.com/blizzard4591/openMittsu" |
75 |
+# git-archive-all.sh snapshot of https://github.com/blizzard4591/openMittsu.git |
76 |
+SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${MY_P}.tar.xz" |
77 |
+ |
78 |
+LICENSE="GPL-2+ BitstreamVera OFL-1.1 Apache-2.0 CC0-1.0 MIT" |
79 |
+SLOT="0" |
80 |
+KEYWORDS="~amd64" |
81 |
+ |
82 |
+DEPEND=">=dev-libs/libsodium-1.0.11:= |
83 |
+ >=dev-qt/qtcore-5.7.1:5= |
84 |
+ >=dev-qt/qtgui-5.7.1:5= |
85 |
+ >=dev-qt/qtmultimedia-5.7.1:5= |
86 |
+ >=dev-qt/qtnetwork-5.7.1:5= |
87 |
+ >=dev-qt/qtwidgets-5.7.1:5= |
88 |
+ >=media-gfx/qrencode-3.4.4-r1" |
89 |
+RDEPEND="${DEPEND}" |
90 |
+ |
91 |
+S="${WORKDIR}/${MY_P}" |
92 |
+PATCHES=("${FILESDIR}/${P}-libsodium-so.patch") |
93 |
+MYCMAKEARGS="-DOPENMITTSU_DISABLE_VERSION_UPDATE_CHECK=ON" |
94 |
+ |
95 |
+DOCS="README.md |
96 |
+ Example-client-configuration-file.ini |
97 |
+ Example-contacts-file.txt" |
98 |
+ |
99 |
+src_prepare() { |
100 |
+ # set version manually, since autodetection works only with git |
101 |
+ sed -i "/git_describe_checkout/\ |
102 |
+ s/.*/set(OPENMITTSU_GIT_VERSION_STRING \"${PV/_p/-}-00000000\")/" \ |
103 |
+ CMakeLists.txt || die |
104 |
+ |
105 |
+ default |
106 |
+} |