+++ /dev/null
-https://bugs.gentoo.org/609366
-Backported from https://github.com/fmtlib/fmt.git:
-
-commit abbefd71666055daac9e14e78262620f9e845850
-Author: Victor Zverovich <victor.zverovich@gmail.com>
-Date: Wed Oct 19 06:52:55 2016 -0700
-
- CHAR_WIDTH -> CHAR_SIZE to avoid collision with ISO/IEC TS 18661-1:2014 macro
-
---- openMittsu-0.9.2_p78-orig/3rdparty/spdlog/include/spdlog/details/format.h
-+++ openMittsu-0.9.2_p78/3rdparty/spdlog/include/spdlog/details/format.h
-@@ -2163,29 +2163,29 @@
- typedef typename BasicWriter<Char>::CharPtr CharPtr;\r
- Char fill = internal::CharTraits<Char>::cast(spec_.fill());\r
- CharPtr out = CharPtr();\r
-- const unsigned CHAR_WIDTH = 1;\r
-- if (spec_.width_ > CHAR_WIDTH)\r
-+ const unsigned CHAR_SIZE = 1;\r
-+ if (spec_.width_ > CHAR_SIZE)\r
- {\r
- out = writer_.grow_buffer(spec_.width_);\r
- if (spec_.align_ == ALIGN_RIGHT)\r
- {\r
-- std::uninitialized_fill_n(out, spec_.width_ - CHAR_WIDTH, fill);\r
-- out += spec_.width_ - CHAR_WIDTH;\r
-+ std::uninitialized_fill_n(out, spec_.width_ - CHAR_SIZE, fill);\r
-+ out += spec_.width_ - CHAR_SIZE;\r
- }\r
- else if (spec_.align_ == ALIGN_CENTER)\r
- {\r
- out = writer_.fill_padding(out, spec_.width_,\r
-- internal::check(CHAR_WIDTH), fill);\r
-+ internal::check(CHAR_SIZE), fill);\r
- }\r
- else\r
- {\r
-- std::uninitialized_fill_n(out + CHAR_WIDTH,\r
-- spec_.width_ - CHAR_WIDTH, fill);\r
-+ std::uninitialized_fill_n(out + CHAR_SIZE,\r
-+ spec_.width_ - CHAR_SIZE, fill);\r
- }\r
- }\r
- else\r
- {\r
-- out = writer_.grow_buffer(CHAR_WIDTH);\r
-+ out = writer_.grow_buffer(CHAR_SIZE);\r
- }\r
- *out = internal::CharTraits<Char>::cast(value);\r
- }\r
+++ /dev/null
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=6
-
-inherit cmake-utils eutils
-
-MY_PN="openMittsu"
-DESCRIPTION="An open source chat client for Threema-style end-to-end encrypted chat networks"
-HOMEPAGE="https://www.openmittsu.de/"
-# git-archive-all.sh snapshot of https://github.com/blizzard4591/${MY_PN}.git
-SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${MY_PN}-${PV}.tar.xz"
-
-LICENSE="GPL-2+ BitstreamVera OFL-1.1 Apache-2.0 CC0-1.0 MIT BSD-2 Boost-1.0"
-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_PN}-${PV}"
-
-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
- eapply "${FILESDIR}"/${P}-fmt.patch
- cmake-utils_src_prepare
-}
-
-src_configure() {
- local mycmakeargs=("-DOPENMITTSU_DISABLE_VERSION_UPDATE_CHECK=ON")
- cmake-utils_src_configure
-}
-
-src_install() {
- cmake-utils_src_install
- newicon resources/icon.png ${MY_PN}.png
- make_desktop_entry ${MY_PN} ${MY_PN} ${MY_PN}
-}