diff options
Diffstat (limited to 'x11-misc/arandr/arandr-0.1.9.ebuild')
-rw-r--r-- | x11-misc/arandr/arandr-0.1.9.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/x11-misc/arandr/arandr-0.1.9.ebuild b/x11-misc/arandr/arandr-0.1.9.ebuild new file mode 100644 index 000000000000..3bd1c5f9bbac --- /dev/null +++ b/x11-misc/arandr/arandr-0.1.9.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) +inherit eutils distutils-r1 + +DESCRIPTION="Another XRandR GUI" +HOMEPAGE="http://christian.amsuess.com/tools/arandr/" +SRC_URI="http://christian.amsuess.com/tools/${PN}/files/${PN}_${PV}.orig.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="amd64 x86" + +RDEPEND=" + >=dev-python/pygtk-2[${PYTHON_USEDEP}] + x11-apps/xrandr +" +DEPEND=" + >=dev-python/docutils-0.6[${PYTHON_USEDEP}] +" + +src_prepare() { + local i p + # simulate gettext behavior: + # LINGUAS unset => install all + # LINGUAS="" => install none + # LINGUAS="de fr" => install de and fr + if [[ -n "${LINGUAS+x}" ]] ; then # if LINGUAS is set + for i in $(cd "${S}"/data/po ; for p in *.po ; do echo ${p%.po} ; done) ; do # for every supported language + if ! has ${i} ${LINGUAS} ; then # if language is disabled + rm data/po/${i}.po || die + fi + done + fi + + distutils-r1_src_prepare +} |