summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2017-01-29 18:37:27 +0100
committerUlrich Müller <ulm@gentoo.org>2017-01-29 18:38:50 +0100
commit7caf5ff3b18c10249533784103f07f5500fa24bd (patch)
tree0b1a81a8650111312e63d3d5e48d8fc99403e9ff /net-im/openmittsu
parentsys-kernel/rt-sources: version bump to {3.18.46_p50,4.1.37_p43,4.4.39_p50,4.8... (diff)
downloadgentoo-7caf5ff3b18c10249533784103f07f5500fa24bd.tar.gz
gentoo-7caf5ff3b18c10249533784103f07f5500fa24bd.tar.bz2
gentoo-7caf5ff3b18c10249533784103f07f5500fa24bd.zip
net-im/openmittsu: Initial import.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'net-im/openmittsu')
-rw-r--r--net-im/openmittsu/Manifest1
-rw-r--r--net-im/openmittsu/files/openmittsu-0.9.2_p75-libsodium-so.patch11
-rw-r--r--net-im/openmittsu/metadata.xml7
-rw-r--r--net-im/openmittsu/openmittsu-0.9.2_p75.ebuild43
4 files changed, 62 insertions, 0 deletions
diff --git a/net-im/openmittsu/Manifest b/net-im/openmittsu/Manifest
new file mode 100644
index 00000000000..d70441fde3e
--- /dev/null
+++ b/net-im/openmittsu/Manifest
@@ -0,0 +1 @@
+DIST openMittsu-0.9.2_p75.tar.xz 1304788 SHA256 60366c341f6d2d638699649dfcaef97a734f2c367987d3849986321a515e24a3 SHA512 d5ec9c942e771d51e86895c422e13893421d4a3b0adae9a9dac195f55c40064af2549bc41181b2abb2fe8b8dc0ffdf3c4c40b052e36f0eaf31fc98830b81c5f4 WHIRLPOOL e8c0909e0a46009ef892930957bc1fb6763fbcd0c662f2b2c706482781161eeb3a5c26ee584c1d3a8f5bd1415d84f307bd0b1f707da4f787b4cf7e2e5ad160c6
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
new file mode 100644
index 00000000000..3984b506888
--- /dev/null
+++ b/net-im/openmittsu/files/openmittsu-0.9.2_p75-libsodium-so.patch
@@ -0,0 +1,11 @@
+--- openMittsu-orig/cmake/FindLibsodium.cmake
++++ openMittsu/cmake/FindLibsodium.cmake
+@@ -31,7 +31,7 @@
+ ENDIF(MINGW)
+ ELSE (UNIX)
+ SET (LIB_PREFIX "lib")
+- SET (LIB_POSTFIX "a")
++ SET (LIB_POSTFIX "so")
+ ENDIF (WIN32)
+
+ find_path(SODIUM_INCLUDE_DIR
diff --git a/net-im/openmittsu/metadata.xml b/net-im/openmittsu/metadata.xml
new file mode 100644
index 00000000000..c665e48637b
--- /dev/null
+++ b/net-im/openmittsu/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>ulm@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/net-im/openmittsu/openmittsu-0.9.2_p75.ebuild b/net-im/openmittsu/openmittsu-0.9.2_p75.ebuild
new file mode 100644
index 00000000000..166cb7c1343
--- /dev/null
+++ b/net-im/openmittsu/openmittsu-0.9.2_p75.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit cmake-utils
+
+MY_P="openMittsu-${PV}"
+DESCRIPTION="An open source chat client for Threema-style end-to-end encrypted chat networks"
+HOMEPAGE="https://github.com/blizzard4591/openMittsu"
+# git-archive-all.sh snapshot of https://github.com/blizzard4591/openMittsu.git
+SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${MY_P}.tar.xz"
+
+LICENSE="GPL-2+ BitstreamVera OFL-1.1 Apache-2.0 CC0-1.0 MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND=">=dev-libs/libsodium-1.0.11:=
+ >=dev-qt/qtcore-5.7.1:5=
+ >=dev-qt/qtgui-5.7.1:5=
+ >=dev-qt/qtmultimedia-5.7.1:5=
+ >=dev-qt/qtnetwork-5.7.1:5=
+ >=dev-qt/qtwidgets-5.7.1:5=
+ >=media-gfx/qrencode-3.4.4-r1"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+PATCHES=("${FILESDIR}/${P}-libsodium-so.patch")
+MYCMAKEARGS="-DOPENMITTSU_DISABLE_VERSION_UPDATE_CHECK=ON"
+
+DOCS="README.md
+ Example-client-configuration-file.ini
+ Example-contacts-file.txt"
+
+src_prepare() {
+ # set version manually, since autodetection works only with git
+ sed -i "/git_describe_checkout/\
+ s/.*/set(OPENMITTSU_GIT_VERSION_STRING \"${PV/_p/-}-00000000\")/" \
+ CMakeLists.txt || die
+
+ default
+}