You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.6 KiB
64 lines
1.6 KiB
5 years ago
|
# Copyright 1999-2019 Gentoo Authors
|
||
8 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI=7
|
||
8 years ago
|
|
||
7 years ago
|
inherit cmake-utils desktop
|
||
8 years ago
|
|
||
|
DESCRIPTION="An open source chat client for Threema-style end-to-end encrypted chat networks"
|
||
|
HOMEPAGE="https://www.openmittsu.de/"
|
||
8 years ago
|
# git-archive-all.sh snapshot of https://github.com/blizzard4591/openMittsu.git
|
||
|
SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${P}.tar.xz"
|
||
8 years ago
|
|
||
7 years ago
|
LICENSE="GPL-2+ BitstreamVera OFL-1.1 Apache-2.0 CC0-1.0 MIT BSD"
|
||
8 years ago
|
SLOT="0"
|
||
|
KEYWORDS="~amd64"
|
||
7 years ago
|
IUSE="test"
|
||
5 years ago
|
RESTRICT="!test? ( test )"
|
||
8 years ago
|
|
||
7 years ago
|
RDEPEND="dev-db/qt5-sqlcipher
|
||
|
>=dev-libs/libsodium-1.0.11:=
|
||
8 years ago
|
>=dev-qt/qtcore-5.7.1:5=
|
||
|
>=dev-qt/qtgui-5.7.1:5=
|
||
5 years ago
|
>=dev-qt/qtmultimedia-5.7.1:5=[widgets]
|
||
7 years ago
|
>=dev-qt/qtnetwork-5.7.1:5=[ssl]
|
||
8 years ago
|
>=dev-qt/qtsql-5.7.1:5=[sqlite]
|
||
8 years ago
|
>=dev-qt/qtwidgets-5.7.1:5=
|
||
7 years ago
|
>=media-gfx/qrencode-3.4.4-r1:="
|
||
7 years ago
|
DEPEND="${RDEPEND}
|
||
7 years ago
|
test? ( >=dev-cpp/gtest-1.8.0 )"
|
||
8 years ago
|
|
||
5 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/${PN}-0.9.13.32-fix-tests.patch
|
||
|
)
|
||
|
|
||
8 years ago
|
DOCS=(
|
||
|
README.md
|
||
|
Example-client-configuration-file.ini
|
||
|
Example-contacts-file.txt
|
||
|
)
|
||
|
|
||
|
src_configure() {
|
||
8 years ago
|
local mycmakeargs=(
|
||
|
# set version manually, since autodetection works only with git
|
||
|
"-DOPENMITTSU_CUSTOM_VERSION_STRING=${PV%.*}-${PV##*.}-00000000"
|
||
|
"-DOPENMITTSU_DISABLE_VERSION_UPDATE_CHECK=ON"
|
||
7 years ago
|
"-DOPENMITTSU_ENABLE_TESTS=$(usex test)"
|
||
8 years ago
|
)
|
||
8 years ago
|
cmake-utils_src_configure
|
||
|
}
|
||
|
|
||
7 years ago
|
src_test() {
|
||
|
cd "${BUILD_DIR}" || die
|
||
|
./openMittsuTests || die
|
||
|
}
|
||
|
|
||
8 years ago
|
src_install() {
|
||
8 years ago
|
local my_pn="openMittsu"
|
||
8 years ago
|
cmake-utils_src_install
|
||
8 years ago
|
newicon resources/icon.png ${my_pn}.png
|
||
|
make_desktop_entry ${my_pn} ${my_pn} ${my_pn}
|
||
|
rm "${ED}"/usr/bin/${my_pn}VersionInfo || die
|
||
7 years ago
|
rm -f "${ED}"/usr/bin/${my_pn}Tests || die
|
||
8 years ago
|
}
|