summaryrefslogtreecommitdiff
path: root/dev-qt/qtermwidget/qtermwidget-0.7.1.ebuild
blob: f889c8f2f59789eb1989520a05b66ecc224b13a2 (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
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
PYTHON_COMPAT=( python{3_4,3_5} )

inherit eutils python-r1

DESCRIPTION="Qt terminal emulator widget"
HOMEPAGE="https://github.com/lxde/qtermwidget"
SRC_URI="https://github.com/lxde/${PN}/releases/download/${PV}/${P}.tar.xz"

LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="amd64 ~arm x86"
IUSE=""

DEPEND="
	dev-python/PyQt5[${PYTHON_USEDEP}]
	dev-python/sip[${PYTHON_USEDEP}]
	dev-qt/qtcore:5
	dev-qt/qtgui:5
	dev-qt/qtwidgets:5
	~x11-libs/qtermwidget-${PV}
"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${PN}-${PV}/pyqt"

src_prepare () {
	default
	eapply -p2 "${FILESDIR}"/${P}-pyqt5.7-compat.patch
}

src_compile () {
	python_foreach_impl python config.py
	emake || die
}

src_install () {
	default
	rm -rf ${ED}usr/share/doc
}