blob: 94d9740b46323efb70ddcb0e9e6d31dfc367d3af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
# CMAKE_IN_SOURCE_BUILD="1"
inherit cmake-utils eapi7-ver
DESCRIPTION="Qt blogging client"
HOMEPAGE="http://qtm.blogistan.co.uk"
SRC_URI="https://bitbucket.org/IndigoJo/${PN}-$(ver_cut 1-2)/downloads/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="dbus debug"
RESTRICT="strip"
RDEPEND="dev-lang/perl
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtnetwork:5
dev-qt/qtwidgets:5
dev-qt/qtxml:5
virtual/perl-Digest-MD5
dbus? ( dev-qt/qtdbus:5 )"
DEPEND="${RDEPEND}
x11-base/xorg-proto
virtual/pkgconfig"
DOCS=( Changelog README )
PATCHES=( "${FILESDIR}/${P}-qt-5.11.patch" ) # TODO: upstream
src_prepare() {
# bug 463810
sed -i -e '/Categories/s/Application;//' qtm-desktop.sh || die 'sed on qtm-desktop.sh failed'
cmake-utils_src_prepare
}
src_configure() {
local mycmakeargs=(
-DQt5=ON
-DDONT_USE_PTE=OFF
-DINSTALL_MARKDOWN=ON
-DNO_SSL=OFF
-DUSE_DBUS=$(usex dbus)
-DDONT_USE_DBUS=$(usex !dbus)
-DQDEBUG=$(usex debug)
)
cmake-utils_src_configure
}
|