# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-emulation/q4wine/q4wine-1.1_p2-r1.ebuild,v 1.2 2014/01/02 20:13:14 hwoarang Exp $ EAPI=5 PLOCALES="af cs de en es fa he it ru uk pl pt" 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[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=(README AUTHORS ChangeLog) remove_from_LINGUAS() { sed -i -e "/SET\s*(\s*LINGUAS / s: ${1}_\w\w::" \ src/CMakeLists.txt || die } src_prepare() { cmake-utils_src_prepare l10n_for_each_disabled_locale_do remove_from_LINGUAS } src_configure() { local mycmakeargs=( -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 }