51 lines
1.1 KiB
Bash
51 lines
1.1 KiB
Bash
# Copyright 1999-2017 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=6
|
|
|
|
PYTHON_COMPAT=( python2_7 )
|
|
PYTHON_REQ_USE="xml"
|
|
|
|
inherit distutils-r1 eutils
|
|
|
|
DESCRIPTION="driconf is a GTK+2 GUI configurator for DRI"
|
|
HOMEPAGE="https://dri.freedesktop.org/wiki/DriConf"
|
|
SRC_URI="https://freedesktop.org/~fxkuehl/${PN}/${P}.tar.gz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ppc ppc64 ~sparc x86"
|
|
IUSE=""
|
|
|
|
RDEPEND="x11-libs/gtk+:2
|
|
dev-python/pygtk:2[${PYTHON_USEDEP}]
|
|
x11-apps/xdriinfo"
|
|
DEPEND="${RDEPEND}"
|
|
|
|
DOCS=( CHANGELOG COPYING PKG-INFO README TODO )
|
|
PATCHES=(
|
|
"${FILESDIR}"/${P}-glxinfo-unicode.patch
|
|
"${FILESDIR}"/${P}-update-toolbar-methods.patch
|
|
"${FILESDIR}"/${P}-driconf_simpleui.py.patch
|
|
"${FILESDIR}"/${P}-desktop-menu.patch
|
|
"${FILESDIR}"/${P}-drop-old-tooltips.patch
|
|
)
|
|
|
|
python_prepare_all() {
|
|
distutils-r1_python_prepare_all
|
|
|
|
# Fix install locations which breaks location policy - Josh_B
|
|
sed -i \
|
|
-e 's:/usr/local:/usr:g' \
|
|
driconf \
|
|
driconf.desktop \
|
|
driconf.py \
|
|
setup.cfg \
|
|
setup.py \
|
|
|| die "Sed failed!"
|
|
}
|
|
|
|
python_install_all() {
|
|
distutils-r1_python_install_all
|
|
domenu driconf.desktop
|
|
}
|