forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
q4wine-1.2_p2.ebuild
62 lines (52 loc) · 1.44 KB
/
q4wine-1.2_p2.ebuild
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
55
56
57
58
59
60
61
62
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PLOCALES="af_ZA cs_CZ de_DE en_US es_ES fa_IR he_IL it_IT pl_PL pt_BR ru_RU uk_UA"
PLOCALE_BACKUP="en_US"
inherit cmake-utils l10n
DESCRIPTION="Qt4 GUI configuration tool for Wine"
HOMEPAGE="http://q4wine.brezblock.org.ua/"
# Upstream names the package PV-rX. We change that to
# PV_pX so we can use portage revisions.
MY_PV="${PV/_p/-r}"
MY_P="${PN}-${MY_PV}"
SRC_URI="mirror://sourceforge/${PN}/${PN}/${PN}%20${MY_PV}/${MY_P}.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+dbus debug +icoutils +wineappdb"
DEPEND="
dev-qt/qtcore:4
dev-qt/qtgui:4
dev-qt/qtsingleapplication[qt4(+),X]
dev-qt/qtsql:4[sqlite]
dbus? ( dev-qt/qtdbus:4 )
"
RDEPEND="${DEPEND}
app-admin/sudo
app-emulation/wine
>=sys-apps/which-2.19
sys-fs/fuseiso
icoutils? ( >=media-gfx/icoutils-0.26.0 )
"
S="${WORKDIR}/${MY_P}"
DOCS=( AUTHORS ChangeLog README )
src_configure() {
local enabled_linguas
construct_LINGUAS() {
local current_locale="$(echo ${1} | tr '[:upper:]' '[:lower:]')"
enabled_linguas="${enabled_linguas};${current_locale}"
}
l10n_for_each_locale_do construct_LINGUAS
local mycmakeargs=(
-DLINGUAS="${enabled_linguas}"
-DQT5=OFF
-DWITH_SYSTEM_SINGLEAPP=ON
$(cmake-utils_use debug)
$(cmake-utils_use_with dbus)
$(cmake-utils_use_with icoutils)
$(cmake-utils_use_with wineappdb)
)
cmake-utils_src_configure
}